Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from multi-arch/master
Add Dockerfile.rhel8
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.13 AS builder | ||
WORKDIR /go/src/github.com/openshift/builder | ||
COPY . . | ||
RUN hack/build.sh | ||
|
||
FROM registry.svc.ci.openshift.org/ocp/4.0:base-8 | ||
RUN INSTALL_PKGS=" \ | ||
bind-utils bsdtar findutils fuse-overlayfs git hostname lsof \ | ||
procps-ng socat tar tree util-linux wget which \ | ||
" && \ | ||
yum install -y --setopt=skip_missing_names_on_install=False $INSTALL_PKGS && \ | ||
yum clean all | ||
COPY --from=builder /go/src/github.com/openshift/builder/openshift-builder /usr/bin/ | ||
COPY imagecontent/bin /usr/bin | ||
COPY imagecontent/etc/containers /etc/containers | ||
RUN mkdir -p /var/cache/blobs \ | ||
/var/lib/shared/overlay-images \ | ||
/var/lib/shared/overlay-layers && \ | ||
touch /var/lib/shared/overlay-images/images.lock \ | ||
/var/lib/shared/overlay-layers/layers.lock | ||
|
||
RUN ln -s /usr/bin/openshift-builder /usr/bin/openshift-sti-build && \ | ||
ln -s /usr/bin/openshift-builder /usr/bin/openshift-docker-build && \ | ||
ln -s /usr/bin/openshift-builder /usr/bin/openshift-git-clone && \ | ||
ln -s /usr/bin/openshift-builder /usr/bin/openshift-manage-dockerfile && \ | ||
ln -s /usr/bin/openshift-builder /usr/bin/openshift-extract-image-content | ||
LABEL io.k8s.display-name="OpenShift Builder" \ | ||
io.k8s.description="This is a component of OpenShift and is responsible for executing image builds." \ | ||
io.openshift.tags="openshift,builder" | ||
ENTRYPOINT [ "/usr/bin/entrypoint.sh" ] |