origin-sti-builder/Dockerfile
2018-09-21 15:46:13 +02:00

33 lines
1.3 KiB
Docker

#
# This is the image that executes a S2I 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.
#
# The standard name for this image is openshift/origin-sti-builder
#
FROM registry.fedoraproject.org/f28/origin-base:latest
ENV NAME=origin-sti-builder \
VERSION=3.9 \
ARCH=x86_64
LABEL io.k8s.display-name="OpenShift Origin S2I Builder" \
io.k8s.description="This is a component of OpenShift Origin and is responsible for executing source-to-image (s2i) image builds." \
io.openshift.tags="openshift,sti,builder" \
summary="This is a component of OpenShift Origin and is responsible for executing source-to-image (s2i) 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 source-to-image (s2i) image builds."
COPY README.md README.md
ENTRYPOINT ["/usr/bin/openshift-sti-build"]