-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathContainerfile.suse
More file actions
29 lines (22 loc) · 990 Bytes
/
Containerfile.suse
File metadata and controls
29 lines (22 loc) · 990 Bytes
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
FROM opensuse/leap
LABEL maintainer="Michael Adam <obnox@samba.org>"
ARG BUILD_LANG=""
ARG INSTALL_SCRIPT=""
ARG VERIFY_SCRIPT=""
LABEL org.opencontainers.image.title="${BUILD_LANG} Build Container"
LABEL org.opencontainers.image.description="OpenSUSE Container for building ${BUILD_LANG} projects"
LABEL org.opencontainers.image.vendor="buildbox"
LABEL org.opencontainers.image.url="https://github.com/TheBuildBox/buildbox"
COPY "${VERIFY_SCRIPT}" /usr/local/bin/verify.sh
COPY common.sh /usr/local/bin/common.sh
RUN chmod +x /usr/local/bin/verify.sh
COPY "${INSTALL_SCRIPT}" /usr/local/bin/install-packages.sh
RUN chmod +x /usr/local/bin/install-packages.sh
# Set a sane PATH during installation:
ENV PATH="/usr/local/bin:/usr/bin:/bin:/sbin:/usr/local/sbin:/usr/sbin"
# install and verify in one ATOMIC STEP:
RUN true && \
/usr/local/bin/install-packages.sh && \
echo "Verifying binaries before layer commit..." && \
/usr/local/bin/verify.sh && \
echo "your buildbox is ready."