-
Notifications
You must be signed in to change notification settings - Fork 51
/
Dockerfile.dev
30 lines (28 loc) · 1.43 KB
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM registry.fedoraproject.org/fedora:34
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"
RUN INSTALL_PKGS=" \
bind-utils bsdtar findutils fuse-overlayfs git hostname lsof \
procps-ng runc socat tar tree util-linux wget which glibc\
" && \
yum install -y --setopt=skip_missing_names_on_install=False ${INSTALL_PKGS} && \
yum clean all
RUN rpm --setcaps shadow-utils
COPY imagecontent/bin /usr/bin
COPY imagecontent/etc/containers /etc/containers
COPY imagecontent/usr/share/containers /usr/share/containers
RUN mkdir -p /var/cache/blobs \
/var/lib/shared/overlay-images \
/var/lib/shared/overlay-layers \
/etc/pki/tls/certs /etc/docker/certs.d && \
chmod g+w /etc/pki/tls/certs /etc/docker/certs.d && \
touch /var/lib/shared/overlay-images/images.lock \
/var/lib/shared/overlay-layers/layers.lock
COPY openshift-builder /usr/bin
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
ENTRYPOINT [ "/usr/bin/entrypoint.sh" ]