mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Keep the build images DRY
This commit is contained in:
parent
2e43cb6259
commit
81d80aa564
17 changed files with 260 additions and 178 deletions
49
Dockerfile.custom
Normal file
49
Dockerfile.custom
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
#
|
||||
# The arguments in this file are configured in
|
||||
# /scripts/custom-docker-build
|
||||
#
|
||||
|
||||
ARG CUSTOM_IMAGE_NAME
|
||||
ARG CUSTOM_IMAGE_VERSION
|
||||
FROM ${CUSTOM_IMAGE_NAME}:${CUSTOM_IMAGE_VERSION}
|
||||
|
||||
ADD / /
|
||||
|
||||
RUN /scripts/install-essentials
|
||||
|
||||
ENV PATH $PATH:/usr/local/go/bin
|
||||
|
||||
# Git
|
||||
ARG GIT_VERSION
|
||||
ARG GIT_DOWNLOAD_URL=https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz
|
||||
ARG GIT_DOWNLOAD_SHA256
|
||||
RUN if [ -n "$GIT_VERSION" ]; then /scripts/install-git && git --version; fi
|
||||
|
||||
# Chrome
|
||||
ARG CHROME_VERSION
|
||||
RUN if [ -n "$CHROME_VERSION" ]; then /scripts/install-chrome $CHROME_VERSION; fi
|
||||
|
||||
# PhantomJS
|
||||
ARG PHANTOMJS_VERSION
|
||||
RUN if [ -n "$PHANTOMJS_VERSION" ] ; then /scripts/install-phantomjs $PHANTOMJS_VERSION; fi
|
||||
|
||||
# NodeJS
|
||||
ARG NODE_VERSION
|
||||
RUN if [ -n "$NODE_VERSION" ] ; then /scripts/install-node $NODE_VERSION && node --version; fi
|
||||
|
||||
# Golang
|
||||
ARG GOLANG_VERSION
|
||||
ARG GOLANG_DOWNLOAD_SHA256
|
||||
RUN if [ -n "$GOLANG_VERSION" ] ; then /scripts/install-golang && go version; fi
|
||||
|
||||
# Postgres
|
||||
# Codedebt: currently this will only install the default version of postgres,
|
||||
# not the stipulated version
|
||||
ARG POSTGRES_VERSION
|
||||
RUN if [ -n "$POSTGRES_VERSION" ] ; then /scripts/install-postgresql; fi
|
||||
|
||||
|
||||
RUN locale-gen en_US.UTF-8
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US:en
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
Loading…
Add table
Add a link
Reference in a new issue