Maintains base image for gitlab-ci runners
Switch branches/tags
Nothing to show
Clone or download
Latest commit e44f8f1 Oct 18, 2018



This builds a docker image suitable as a base image for ploneintranet projects. It installs all system dependencies and primes buildout caches in /var/tmp.

The intented use case is, as a base image for gitlab-ci runners, which will benefit from the caches provided in this image to accelerate test builds.

This image does not actually install or run ploneintranet. While it runs a buildout, the results are discarded, only the caches are kept. This image does not require access to the private quaive/ploneintranet repo.


Use the image as a base for your project image's Dockerfile:

FROM quaive/ploneintranet-base:latest

gitlab-ci runner

When registering a gitlab-ci runner, use quaive/ploneintranet-base as the docker image for test executors.

Start a runner:

docker run -d --name gitlab-runner-01 --restart always \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /srv/gitlab-runner-01/config:/etc/gitlab-runner \

Register the runner:

docker exec -it gitlab-runner-01 gitlab-runner register

Please enter the gitlab-ci coordinator URL (e.g. )
Please enter the gitlab-ci token for this runner
Please enter the gitlab-ci description for this runner
INFO[0034] fcf5c619 Registering runner... succeeded
Please enter the executor: shell, docker, docker-ssh, ssh?
Please enter the Docker image (eg. ruby:2.1):
INFO[0037] Runner registered successfully.

You can set up multiple runners by repeating the commands above, replacing "runner-01" with "runner-02" etc.

You can find the gitlab-ci token "xxx" in your project under "Settings" > "Runners".

For more info, see the docs at:

Caveat Emptor

To enable cache re-use from arbitrary user ids under which you may want to run your buildout, the buildout caches are configured to be read/write for any user within the docker host:

chmod -R a+rwX /var/tmp/eggs /var/tmp/downloads /var/tmp/extends

Depending on your threat model and level of paranoia you may wish to lock that down for your specific install.

Development notes

To upgrade the Plone version:

  • cp ../ploneintranet/buildout.d/* buildout.d/
  • git clean -f
  • sed -i -e 's/Plone-5.0.4/Plone-5.0.6/g' Dockerfile
  • docker pull quaive/ploneintranet-base
  • make docker-build
  • git commit -am 'mars.2: upgrade to Plone 5.0.6'
  • make docker-push
  • git push

Update the docker cache:

  • docker pull quaive/ploneintranet-base:latest
  • ssh docker pull quaive/ploneintranet-base:latest

Normally not needed: upgrading the runners themselves: