diff options
author | 2020-01-01 02:31:27 +0100 | |
---|---|---|
committer | 2020-01-01 02:31:27 +0100 | |
commit | e7e14b050ace9de98e33efa42fef5bf513d1f9c9 (patch) | |
tree | 377fd288536fd4615983ea5d2dd15834794a4ed5 /Dockerfile | |
parent | Enable travis to build the container images (diff) | |
download | packages-5-e7e14b050ace9de98e33efa42fef5bf513d1f9c9.tar.gz packages-5-e7e14b050ace9de98e33efa42fef5bf513d1f9c9.tar.bz2 packages-5-e7e14b050ace9de98e33efa42fef5bf513d1f9c9.zip |
Split up the Dockerfiles into two seperate files
The Dockerfiles have been split up into two files. The first file
contains all prerequisites to run a ruby / rails application including
nodejs. The second Dockerfile contains all the gpackages specific code
and extends the gentoo-rails image.
This way travis can build just the second image as the first image
takes too much time to build it with travis.
Signed-off-by: Max Magorsch <max@magorsch.de>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 23 |
1 files changed, 1 insertions, 22 deletions
@@ -1,25 +1,4 @@ -FROM gentoo/portage:latest as portage -FROM gentoo/stage3-amd64 - -# Need a portage tree to build, use last nights. -COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo -# Sandbox doesn't work well in docker. - -ENV FEATURES="-userpriv -usersandbox -sandbox" -ENV USE="-bindist" - -RUN emerge -C openssh -RUN emerge net-libs/nodejs -RUN emerge sys-process/cronie -# Bundler is how we install the ruby stuff. -RUN mkdir -p /etc/portage/package.accept_keywords/ -RUN echo "=dev-ruby/rdoc-6.2.0 ~amd64" >> /etc/portage/package.accept_keywords/ruby -RUN echo "=dev-lang/ruby-2.5.6 ~amd64" >> /etc/portage/package.accept_keywords/ruby - -RUN emerge =dev-lang/ruby-2.5.6 -RUN gem install bundler - -RUN emerge dev-vcs/git +FROM gentoo/rails:latest # Needed for changelogs. RUN git clone https://anongit.gentoo.org/git/repo/gentoo.git /mnt/packages-tree/gentoo/ |