Skip to content

Commit

Permalink
Waiter Base Image
Browse files Browse the repository at this point in the history
Base image with `tar` installed.
  • Loading branch information
otaviof committed Nov 11, 2021
1 parent 23f6f4d commit 9405356
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/base-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@ jobs:
pushd images/git
IMAGE=ghcr.io/${{ github.repository_owner }}/base-git docker buildx bake --push -f ../docker-bake.hcl
popd
- name: Build Waiter
run: |
pushd images/waiter
IMAGE=quay.io/shipwright/base-waiter docker buildx bake --push -f ../docker-bake.hcl
popd
1 change: 1 addition & 0 deletions .ko.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ defaultBaseImage: registry.access.redhat.com/ubi8/ubi-minimal

baseImageOverrides:
github.com/shipwright-io/build/cmd/git: ghcr.io/shipwright-io/base-git:latest
github.com/shipwright-io/build/cmd/waiter: quay.io/shipwright/base-waiter:latest
13 changes: 13 additions & 0 deletions images/waiter/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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

0 comments on commit 9405356

Please sign in to comment.