From 7c586bc47e3af70a50263a58378825e6b3642af9 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Wed, 19 Jun 2024 09:19:52 +0200 Subject: [PATCH] Add containerfile Signed-off-by: Christian Berendt --- .zuul.yaml | 10 ++++++ Containerfile | 33 +++++++++++++++++ Dockerfile | 1 + playbooks/build.yml | 86 +++++++++++++++++++++++++++++++++++++++++++++ playbooks/pre.yml | 14 ++++++++ 5 files changed, 144 insertions(+) create mode 100644 Containerfile create mode 120000 Dockerfile create mode 100644 playbooks/build.yml create mode 100644 playbooks/pre.yml diff --git a/.zuul.yaml b/.zuul.yaml index a2207bf..99ffc51 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,14 +1,24 @@ --- +- job: + name: osism-kubernetes-build + pre-run: playbooks/pre.yml + run: playbooks/build.yml + vars: + docker_namespace: osism + docker_registry: osism.harbor.regio.digital + - project: merge-mode: squash-merge default-branch: main check: jobs: - hadolint + - osism-kubernetes-build - yamllint gate: jobs: - hadolint + - osism-kubernetes-build - yamllint periodic-daily: jobs: diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..fbd6551 --- /dev/null +++ b/Containerfile @@ -0,0 +1,33 @@ +ARG PYTHON_VERSION=3.12 +FROM python:${PYTHON_VERSION}-slim-bookworm as builder + +ARG USER_ID=45000 +ARG GROUP_ID=45000 +ARG GROUP_ID_DOCKER=999 + +SHELL ["/bin/bash", "-o", "pipefail", "-c"] + +# hadolint ignore=DL3003 +RUN <