Docker image files with pre-installed Racket dependencies

This should speed up building and testing jobs in Gitlab CI for Linux.
This commit is contained in:
Paulo Matos 2019-10-09 14:49:07 +02:00
parent f160661d45
commit f6d7e6fa65
4 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,10 @@
FROM debian:buster-slim
LABEL maintainer="pmatos@linki.tools"
LABEL description="Debian Stable Slim image with Racket build dependencies pre-installed. Mostly used for Racket CI."
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y unzip python libxml2-dev libfindbin-libs-perl make gcc g++ uuid-dev git && \
apt-get clean
CMD ["bash"]

View File

@ -0,0 +1,10 @@
FROM debian:buster-slim
LABEL maintainer="pmatos@linki.tools"
LABEL description="Debian Stable Slim image with Racket test dependencies pre-installed. Mostly used for Racket CI."
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y openssl ca-certificates libfontconfig1-dev libpango1.0-dev libcairo2-dev libjpeg-dev libturbojpeg0-dev gcc sqlite && \
apt-get clean
CMD ["bash"]

View File

@ -0,0 +1,16 @@
all: push-builddeps push-testdeps
.PHONY: push-builddeps push-testdeps build-testdeps build-testdeps
push-builddeps: build-builddeps
docker push pmatos/racket-ci:builddeps
build-builddeps: Dockerfile.builddeps
docker build --file Dockerfile.builddeps --tag pmatos/racket-ci:builddeps .
push-testdeps: build-testdeps
docker push pmatos/racket-ci:testdeps
build-testdeps: Dockerfile.testdeps
docker build --file Dockerfile.testdeps --tag pmatos/racket-ci:testdeps .

View File

@ -0,0 +1,11 @@
# Docker images for Gitlab CI
In order to speed up building and testing of Racket, we have prepared some Docker images.
Currently pushed to DockerHub under the pmatos/racket-ci repo. This is then used in the CI
configuration with:
image: "pmatos/racket-ci:testdeps" # for testing jobs
or:
image: "pmatos/racket-ci:builddeps" # for build jobs
The Makefile does the build/push automatically but you need to be logged in - use `docker login`.