Skip to content

Commit 36f2960

Browse files
committed
Add support to build release containers
Signed-off-by: Tobias Wolf <wolf@b1-systems.de> On-behalf-of: SAP <tobias.wolf@sap.com>
1 parent 276314f commit 36f2960

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/Containerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ARG GL_VERSION=2150.0.0
2+
ARG PY_GL_VERSION=0.10.20
3+
4+
FROM ghcr.io/gardenlinux/gardenlinux:${GL_VERSION} as installer
5+
6+
ARG PY_GL_VERSION
7+
ENV PY_GL_VERSION=${PY_GL_VERSION}
8+
9+
RUN apt-get update
10+
RUN apt-get install -y ca-certificates git python3 python3-pip
11+
RUN mkdir -p /opt/app
12+
RUN python3 -m venv --system-site-packages --without-pip /opt/app
13+
RUN /opt/app/bin/python -m pip install --break-system-packages git+https://github.com/gardenlinux/python-gardenlinux-lib.git@${PY_GL_VERSION}
14+
15+
FROM ghcr.io/gardenlinux/gardenlinux:${GL_VERSION} as base
16+
LABEL org.opencontainers.image.source="https://github.com/gardenlinux/python-gardenlinux-lib"
17+
18+
RUN apt-get update
19+
RUN apt-get install -y podman python3
20+
21+
COPY --from=installer /opt/app /opt/app
22+
23+
WORKDIR /opt/app
24+
ENTRYPOINT ["/opt/app/bin/gl-oci"]

0 commit comments

Comments
 (0)