Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUILD-372] SHIP-0021: Waiter's Base Image #977

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/base-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 16 additions & 0 deletions images/waiter/Dockerfile
Original file line number Diff line number Diff line change
@@ -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