From 85d7f663bde89e356e62d73c2faf16490b26f15c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ot=C3=A1vio=20Fernandes?= Date: Fri, 7 Jan 2022 12:29:13 +0100 Subject: [PATCH] Waiter's Base Image Prepration step for the Local Source Upload SHIP. --- .github/workflows/base-images.yaml | 8 +++++++- images/waiter/Dockerfile | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 images/waiter/Dockerfile diff --git a/.github/workflows/base-images.yaml b/.github/workflows/base-images.yaml index 12607d714d..29575d33e1 100644 --- a/.github/workflows/base-images.yaml +++ b/.github/workflows/base-images.yaml @@ -27,8 +27,14 @@ jobs: REGISTRY_USERNAME: ${{ github.repository_owner }} run: echo "${REGISTRY_PASSWORD}" | docker login -u "${REGISTRY_USERNAME}" --password-stdin ghcr.io - - name: Build Git + - name: Build Git Base Image run: | pushd images/git IMAGE=ghcr.io/${{ github.repository_owner }}/base-git docker buildx bake --push -f ../docker-bake.hcl popd + + - name: Build Waiter Base Image + run: | + pushd images/waiter + IMAGE=ghcr.io/${{ github.repository_owner }}/base-waiter docker buildx bake --push -f ../docker-bake.hcl + popd diff --git a/images/waiter/Dockerfile b/images/waiter/Dockerfile new file mode 100644 index 0000000000..e40c77075a --- /dev/null +++ b/images/waiter/Dockerfile @@ -0,0 +1,16 @@ +# Copyright The Shipwright Contributors +# +# SPDX-License-Identifier: Apache-2.0 +FROM registry.access.redhat.com/ubi8-minimal:latest + +RUN \ + microdnf --nodocs update && \ + microdnf --nodocs install tar && \ + microdnf clean all && \ + rm -rf /var/cache/yum && \ + echo 'nonroot:x:1000:1000:nonroot:/:/sbin/nologin' > /etc/passwd && \ + echo 'nonroot:x:1000:' > /etc/group && \ + mkdir /.docker && \ + chown 1000:1000 /.docker + +USER 1000:1000