sungyism/fpm

By sungyism

Updated 2 months ago

This Docker image is based on Rocky Linux 9 for easily creating packages with FPM.

Image
Developer Tools
0

25

FPM Docker Image

Maintained by: the FPM Docker Maintainers

About

Effing Package Management (FPM) is a tool that simplifies the process of building packages for multiple platforms, including Debian (deb), Red Hat (rpm), and others, with ease and sanity. This Docker image is based on Rocky Linux 9 and provides a convenient environment for using FPM to create packages.

For more information on FPM and its usage, visit the official documentation: FPM Documentation

Quick Start

Build the Docker Image

Build the Docker image locally:

docker build -t sungyism/fpm:latest .
Run the Container

You can run the FPM container using the following command, which will output the FPM version by default.

docker run --rm -it sungyism/fpm:latest
Example Usage

To customize the RPM package creation, you can mount your own source files and specify an output directory for the generated RPM. Here’s how to run the Docker container with FPM:

docker run --rm -it \
    -v /your/src/path:/src  \
    -v /your/rpm/path:/output \
    sungyism/fpm:latest \
    fpm \
    -f \
    -s dir \
    -t rpm \
    -n appname \
    --epoch 0 \
    -v 1.0.0 \
    --iteration 1 \
    --rpm-dist el9 \
    -a 'x86_64' \
    -m 'iYism' \
    --vendor 'iyism inc.' \
    --category 'System Environment/Daemons' \
    --license 'MIT License' \
    --rpm-summary 'A simple application' \
    --description 'A simple hello world application.' \
    --url 'https://github.com/IYism' \
    --verbose \
    -C /src \
    --package /output
Contributing

Feel free to submit issues or pull requests to enhance the functionality of this Docker image.

License

This project is licensed under the MIT License.

Docker Pull Command

docker pull sungyism/fpm