From 711d72a2ab089d1ca9f15d6546c298c931ad79cd Mon Sep 17 00:00:00 2001 From: anthorob Date: Wed, 18 Jun 2025 11:30:40 -0400 Subject: [PATCH] initial commit --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ Dockerfile.base | 18 ++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 Dockerfile.base diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4f7c5dd --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +image: quay.io/buildah/stable + +variables: + STORAGE_DRIVER: vfs + BUILDAH_FORMAT: docker + FQ_IMAGE_NAME: "$CI_REGISTRY_IMAGE" + BUILDAH_NO_PROMPT: "1" + +stages: + - base +# - build + +build_base: + stage: base + script: + - buildah bud --storage-driver=${STORAGE_DRIVER} -t ${FQ_IMAGE_NAME}:base -f Dockerfile.base . + - echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY" + - buildah push ${FQ_IMAGE_NAME}:base + +#include: +# - "java/.gitlab-ci.yml" +# - "php/.gitlab-ci.yml" \ No newline at end of file diff --git a/Dockerfile.base b/Dockerfile.base new file mode 100644 index 0000000..206ed63 --- /dev/null +++ b/Dockerfile.base @@ -0,0 +1,18 @@ +FROM docker.io/codercom/enterprise-base:ubuntu + +USER root + +# Shared base utilities only +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + curl \ + unzip \ + git \ + ca-certificates \ + software-properties-common \ + lsb-release \ + gnupg \ + && apt-get clean && rm -rf /var/lib/apt/lists/* + +USER coder +WORKDIR /home/coder \ No newline at end of file