Skip to content

Commit

Permalink
Merge pull request #977 from otaviof/ship-0021-waiter-base-image
Browse files Browse the repository at this point in the history
[BUILD-372] SHIP-0021: Waiter's Base Image
  • Loading branch information
openshift-merge-robot authored Jan 8, 2022
2 parents a62a313 + 85d7f66 commit aeea9d8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
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

0 comments on commit aeea9d8

Please sign in to comment.