mirror of
https://github.com/gunchev/docker-fpm.git
synced 2025-11-20 12:15:50 +00:00
added readme and fixed some builds
This commit is contained in:
parent
4c9db8c028
commit
9d61c5b26c
5 changed files with 49 additions and 6 deletions
43
README.md
Normal file
43
README.md
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# FPM (effing package manager) Docker Images
|
||||
|
||||
**cdrx/fpm-{$distro}** are a series of Docker images to quickly get packages building in fpm on different Linux distributions.
|
||||
|
||||
Each distro has fpm installed and all the required dependencies to build packages for that platform. All images are 64bit.
|
||||
|
||||
fpm is the entrypoint for the container, so you just need to supply your build options as commands to the container (see examples below). You should mount the files you want to put into your package into `/src/`.
|
||||
|
||||
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
|
||||
* `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`
|
||||
|
||||
* CentOS w/ fpm
|
||||
* `cdrx/fpm-centos:7`
|
||||
* `cdrx/fpm-centos:6`
|
||||
* `cdrx/fpm-centos:5`
|
||||
|
||||
The `:latest` tag will always point to the most recent release of the distro.
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
docker run -v "$(pwd):/src/" cdrx/fpm-ubuntu:16.04 -s dir -t deb ..
|
||||
```
|
||||
|
||||
```
|
||||
docker run -v "$(pwd):/src/" cdrx/fpm-fedora:24 -s dir -t rpm ..
|
||||
```
|
||||
|
|
@ -6,7 +6,7 @@ RUN chmod +x /tini
|
|||
|
||||
RUN set -x \
|
||||
&& yum install -y ruby-devel rubygems gcc make rpmdevtools \
|
||||
&& gem install fpm \
|
||||
&& gem install fpm -v 1.4.0 \
|
||||
&& yum clean all \
|
||||
&& mkdir /src
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ RUN chmod +x /tini
|
|||
|
||||
RUN set -x \
|
||||
&& yum install -y ruby-devel rubygems gcc make rpmdevtools \
|
||||
&& gem install fpm \
|
||||
&& gem install fpm -v 1.4.0 \
|
||||
&& yum clean all \
|
||||
&& mkdir /src
|
||||
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
|
|||
RUN chmod +x /tini
|
||||
|
||||
RUN set -x \
|
||||
&& dnf install -y ruby-devel gcc make rpmdevtools \
|
||||
&& yum install -y ruby-devel gcc make rpmdevtools \
|
||||
&& gem install fpm \
|
||||
&& dnf clean all \
|
||||
&& yum clean all \
|
||||
&& mkdir /src
|
||||
|
||||
WORKDIR /src/
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
|
|||
RUN chmod +x /tini
|
||||
|
||||
RUN set -x \
|
||||
&& dnf install -y ruby-devel gcc make rpmdevtools \
|
||||
&& yum install -y ruby-devel gcc make rpmdevtools \
|
||||
&& gem install fpm \
|
||||
&& dnf clean all \
|
||||
&& yum clean all \
|
||||
&& mkdir /src
|
||||
|
||||
WORKDIR /src/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue