Skip to content
Open
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
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
FROM registry.access.redhat.com/ubi8
FROM registry.access.redhat.com/ubi9
LABEL Description="Builder for JWS operator"
VOLUME /tmp

USER root

RUN yum install buildah maven git -y
# for redhat_jws_download.py: python3-requests python3-lxml unzip gcc-c++ pip3 python3-dev -y
# RUN yum install python3-requests python3-lxml unzip gcc-c++ python3-pip python3-devel -y
# RUN pip3 install ujson

#RUN rm -rf /var/lib/containers

# For openshift (a bit hacky)
RUN echo "1000:100000:65536" > /etc/subuid
RUN echo "1000:100000:65536" > /etc/subgid
RUN chmod a+w /etc/subuid
RUN chmod a+w /etc/subgid
#RUN echo "1000:100000:65536" > /etc/subuid
#RUN echo "1000:100000:65536" > /etc/subgid
#RUN chmod a+w /etc/subuid
#RUN chmod a+w /etc/subgid

ADD build.sh /usr/bin/build.sh
# ADD redhat_jws_download.py /usr/bin/redhat_jws_download.py
Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ fi
# ${webAppSourceImage} is what we use in FROM of the Dockerfile
#
echo "Use buildah to build and push to ${webAppWarImage}"
echo "Running STORAGE_DRIVER=vfs buildah bud -f /Dockerfile.JWS -t ${webAppWarImage} --authfile /auth/.dockerconfigjson --build-arg webAppSourceImage=${webAppSourceImage}"
cd /tmp
HOME=/tmp
STORAGE_DRIVER=vfs buildah bud -f /Dockerfile.JWS -t ${webAppWarImage} --authfile /auth/.dockerconfigjson --build-arg webAppSourceImage=${webAppSourceImage}
Expand Down