aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <max@magorsch.de>2020-02-05 14:39:39 +0100
committerMax Magorsch <max@magorsch.de>2020-02-05 14:39:39 +0100
commit17def0f9988e0b5bfb04c84861b597692b72d5c9 (patch)
treeeb43bc71b3bbdd098e1356c90a3ec444e9381f32 /Dockerfile
parentRemove outdated Gemfile.ci file to fix the tests (diff)
downloadpackages-5-17def0f9988e0b5bfb04c84861b597692b72d5c9.tar.gz
packages-5-17def0f9988e0b5bfb04c84861b597692b72d5c9.tar.bz2
packages-5-17def0f9988e0b5bfb04c84861b597692b72d5c9.zip
Migrate to gitlab-ci instead of travis
Build and store the container images using gitlab. Signed-off-by: Max Magorsch <max@magorsch.de>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile23
1 files changed, 22 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 55e6cb0..13d4f94 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,24 @@
-FROM gentoo/rails:latest
+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 --quiet-build \
+ net-libs/nodejs \
+ dev-lang/ruby \
+ dev-vcs/git
+RUN ACCEPT_KEYWORDS="~amd64" emerge --quiet-build sys-apps/yarn
+
+RUN eselect ruby set ruby25
+
+# Bundler is how we install the ruby stuff.
+RUN gem install bundler -v 1.17.3
# Needed for changelogs.
RUN git clone https://anongit.gentoo.org/git/repo/gentoo.git /mnt/packages-tree/gentoo/
@@ -17,3 +37,4 @@ RUN cp /var/www/packages.gentoo.org/htdocs/config/initializers/kkuleomi_config.r
# Precompile our assets.
RUN bundle exec rake webpacker:compile
CMD ["bundler", "exec", "thin", "start"]
+