2016-09-22 14:58:37 +01:00
# FPM (effing package manager) Docker Images
2017-10-25 12:40:45 +01:00
**cdrx/fpm-{$distro}** are a series of Docker images to quickly get packages building in fpm on different Linux distributions.
2016-09-22 14:58:37 +01:00
2017-10-25 12:40:45 +01:00
Each distro has fpm installed and all the required dependencies to build packages for that platform. All images are 64bit.
2016-09-22 14:58:37 +01:00
2017-10-25 12:40:45 +01:00
You should mount the files you want to put into your package into `/src/` .
2016-09-22 14:58:37 +01:00
If you need to do any complicated setup in the environment before running `fpm` then it would be best to write a bash script, mount it into `/src/` and override the containers entrypoint when you run it. `fpm` is available to run in the system path.
## Images
* Ubuntu w/ fpm
2018-01-18 15:51:27 +00:00
* `cdrx/fpm-ubuntu:18.04` - bionic
2016-09-22 14:58:37 +01:00
* `cdrx/fpm-ubuntu:16.04` - xenial
* `cdrx/fpm-ubuntu:14.04` - trusty
* Debian w/ fpm
* `cdrx/fpm-debian:8`
* `cdrx/fpm-debian:7`
* Fedora w/ fpm
* `cdrx/fpm-fedora:24`
* `cdrx/fpm-fedora:23`
* `cdrx/fpm-fedora:22`
* `cdrx/fpm-fedora:21`
* `cdrx/fpm-fedora:20`
2023-01-29 00:10:25 +02:00
* `cdrx/fpm-fedora:37`
2016-09-22 14:58:37 +01:00
* CentOS w/ fpm
* `cdrx/fpm-centos:7`
* `cdrx/fpm-centos:6`
* `cdrx/fpm-centos:5`
2023-01-29 00:10:25 +02:00
* Rocky Linux w/ fpm
* `cdrx/fpm-rockylinux:9`
2023-01-29 00:29:48 +02:00
* Alpine w/ fpm
* `cdrx/fpm-alpine:3.17.1`
2016-09-22 14:58:37 +01:00
The `:latest` tag will always point to the most recent release of the distro.
## Usage
```
2017-10-25 12:40:45 +01:00
docker run -v "$(pwd):/src/" cdrx/fpm-ubuntu:16.04 fpm -s dir -t deb ..
2016-09-22 14:58:37 +01:00
```
```
2017-10-25 12:40:45 +01:00
docker run -v "$(pwd):/src/" cdrx/fpm-fedora:24 fpm -s dir -t rpm ..
2016-09-22 14:58:37 +01:00
```