Skip to content
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
23 changes: 18 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
FROM sbo-cicd-docker-release-local.usw1.packages.broadcom.com/broadcom-custom-images/redhat/ubi/buildah:1.23.2
FROM quay.io/podman/stable
USER root
RUN dnf install -y podman-docker && dnf install -y go
RUN dnf -y update; yum -y reinstall shadow-utils;
RUN echo "[jfrog-cli]" > jfrog-cli.repo && echo "name=jfrog-cli" >> jfrog-cli.repo && echo "baseurl=https://releases.jfrog.io/artifactory/jfrog-rpms" >> jfrog-cli.repo && echo "enabled=1" >> jfrog-cli.repo && rpm --import https://releases.jfrog.io/artifactory/jfrog-gpg-public/jfrog_public_gpg.key && mv jfrog-cli.repo /etc/yum.repos.d/
RUN dnf -y install buildah slirp4netns iputils podman-docker python3.11 go maven-openjdk11.noarch jfrog-cli git fuse-overlayfs --exclude container-selinux

RUN curl -L https://mirror.openshift.com/pub/openshift-v4/clients/helm/latest/helm-linux-amd64 -o /usr/bin/helm && chmod +x /usr/bin/helm
RUN userdel podman && useradd buildah && usermod -u 1000 buildah; \
echo buildah:10000:65536 > /etc/subuid; \
echo buildah:10000:65536 > /etc/subgid;
COPY --chown=buildah:buildah ../../bin/linux-amd64/gotpl /usr/bin/gotpl

COPY podman-containers.conf /home/buildah/.config/containers/containers.conf

RUN chown -R buildah:buildah /home/buildah

USER buildah
RUN go install github.com/brendanjryan/k8split@latest
RUN curl -SL https://github.com/docker/compose/releases/download/v2.23.1/docker-compose-linux-x86_64 -o /usr/bin/docker-compose && chmod +x /usr/bin/docker-compose
COPY --chown=default:default bin/linux-amd64/gotpl /usr/bin/gotpl
USER buildah
ENV PATH="${PATH}:/home/buildah/go/bin:/home/buildah/.local/bin"
RUN python3.11 -m ensurepip
RUN pip3.11 install podman-compose --user
5 changes: 5 additions & 0 deletions podman-containers.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[containers]
volumes = [
"/proc:/proc",
]
default_sysctls = []