OpsRockin / omnibus_base_centos7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

omnibus_base_centos7

https://hub.docker.com/r/opsrock/omnibus_base_centos7/

Omnibus by Docker Bros.

Auto build policies

build via IFTTT.

  • gem omnibus master branch updated.
  • gem omnibus-software master branch updated.
  • cookbook omnibus new version released.

Usage

First, create empty Dockerfile for your omnibus-project.

for *.deb, Dockerfile.ubuntu1604.

FROM opsrock/omnibus_base_ubuntu18
MAINTAINER you

for *.rpm, Dockerfile.centos7.

FROM opsrock/omnibus_base_centos7
MAINTAINER you

Build once to execute ONBUILD

## DEB
$ docker build -t omnibus_myproject-ubuntu1604 -f Dockerfile.ubuntu1604 .

## RPM
$ docker build -t omnibus_myproject-centos7 -f Dockerfile.centos7 .

Run to create package!

Run with passing your project name via env OMNIBUS_PROJECT.

## DEB
$ docker run -e OMNIBUS_PROJECT=serverspec -v pkg:/home/omnibus/omnibus-project/pkg omnibus_myproject-ubuntu1604

## RPM
$ docker run -e OMNIBUS_PROJECT=serverspec -v pkg:/home/omnibus/omnibus-project/pkg omnibus_myproject-centos7

Packages will be created in ./pkg/ directory.

Tips

Recycle build cache

mount cache volume and pass path of cache via env.

-e BUILD_CACHE_PATH=YOUR_CACHE_PATH

About


Languages

Language:Dockerfile 62.1%Language:Shell 22.2%Language:Ruby 15.7%