brew-fpm is a Homebrew external command that builds an OS installer package from a formula using FPM
231
This tap is based on timsutton/brew-pkg brew-fpm is a Homebrew external command that builds an OS installer package from a formula using Jordan Sissel's excellent FPM
The formula must first already be installed on the system via brew install <pkg> before you can brew fpm <package>.
Assuming nginx is already installed:
brew fpm nginx
==> Creating package staging root using Homebrew prefix /usr/local
==> Staging formula nginx
==> Building package nginx-1.2.6.debIt can also automatically include the formula's dependencies:
brew fpm --with-deps --without-kegs ffmpeg
==> Creating package staging root using Homebrew prefix /usr/local
==> Staging formula ffmpeg
==> Staging formula texi2html
==> Staging formula yasm
==> Staging formula x264
==> Staging formula faac
==> Staging formula lame
==> Staging formula xvid
==> Building package ffmpeg-1.1.debBy default behaviour brew fpm include all package kegs located in /usr/local/Cellar/packagename. If you need to exclude it, specify option --without-kegs
brew-fpm is available from my formulae tap. Add the tap:
brew tap ambakshi/formulae
Then install as any other formula:
brew install brew-fpm
You can set any custom fpm argument with the --fpm-arg option which is just literally passed through to the fpm command.
For more information refer to man fpm.
The included Makefile builds an EL7 image with linuxbrew, brew and brew-fpm
make image
make run
make exec
This gives you a persistent $HOME inside the container. After the make exec you'll be inside the EL7 container. Do a
brew install curl and brew fpm curl to get a curl el7 rpm, linked statically. The first time the build will take a
bit longer, because many low level dependencies (such as autoconf, m4, etc) are missing. Subsequent packages build
much faster. Your host directory is mounted to /host. Run the brew fpm command in that directory to have your packages
available on the host. You can use this technique to build other containers for EL6, Ubuntu, etc. Patches welcome :)
brew-fpm is MIT-licensed.
Content type
Image
Digest
Size
238.4 MB
Last updated
almost 9 years ago
docker pull ambakshi/brew-fpm:el7