Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Jakub Čajka
05caf0bcdf Fix FROM statement 2019-01-18 15:43:55 +01:00
Jakub Čajka
0b75396435 Initial commit 2019-01-18 15:28:00 +01:00

39
Dockerfile Normal file
View file

@ -0,0 +1,39 @@
#
# This is the image that executes a Docker build inside Origin. It expects the
# following environment variables:
#
# BUILD - JSON string containing the openshift build object
#
# This image expects to have the Docker socket bind-mounted into the container.
# If "/root/.dockercfg" is bind mounted in, it will use that as authorization to a
# Docker registry. It depends on bsdtar for extraction of binaries over STDIN.
#
# The standard name for this image is openshift/origin-docker-builder
#
FROM registry.fedoraproject.org/f29/origin-cli:latest
ENV NAME=origin-docker-builder \
VERSION=3.11 \
ARCH=x86_64
RUN INSTALL_PKGS=" \
which tar wget hostname util-linux \
socat tree findutils lsof bind-utils \
git tar bsdtar \
" && \
dnf install -y ${INSTALL_PKGS} && \
dnf clean all
LABEL io.k8s.display-name="OpenShift Origin Builder" \
io.k8s.description="This is a component of OpenShift Origin and is responsible for executing image builds." \
io.openshift.tags="openshift,builder" \
summary="This is a component of OpenShift Origin and is responsible for executing image builds." \
maintainer="Jakub Cajka <jcajka@fedoraproject.org>" \
License="GPLv2+" \
name="$FGC/$NAME" \
com.redhat.component="$NAME" \
version="$VERSION" \
architecture="$ARCH" \
usage="This is a component of OpenShift Origin and is responsible for executing image builds."
ENTRYPOINT ["/usr/bin/openshift-docker-build"]