1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

only link if the paths exist

This commit is contained in:
Jason N. 2024-03-07 12:14:04 -05:00
parent 1ec2b525f7
commit 3af14ee4b7
2 changed files with 10 additions and 1 deletions

View file

@ -19,7 +19,6 @@ VOLUME /build-container-installer/repos
VOLUME /cache VOLUME /cache
RUN dnf install -y make && make install-deps RUN dnf install -y make && make install-deps
RUN ln -s /cache/skopeo /build-container-installer/container && mkdir /cache/dnf
ENTRYPOINT ["/bin/bash", "/build-container-installer/entrypoint.sh"] ENTRYPOINT ["/bin/bash", "/build-container-installer/entrypoint.sh"]

View file

@ -7,6 +7,16 @@ do
export $entry export $entry
done done
if [[ -d /cache/skopeo ]]
then
ln -s /cache/skopeo /build-container-installer/container
fi
if [[ ! -d /cache/dnf ]]
then
mkdir /cache/dnf
fi
# Pull container # Pull container
make container/${IMAGE_NAME}-${IMAGE_TAG} $@ make container/${IMAGE_NAME}-${IMAGE_TAG} $@