feat(docker): add trace output to determine install path for package

!15
This commit is contained in:
2024-02-26 13:32:19 +09:30
parent 089a0ed11c
commit 47a1d93547

View File

@ -92,16 +92,18 @@ COPY includes/ /
RUN mkdir -p /tmp/collection; \ RUN mkdir -p /tmp/collection; \
if [ "$COLLECTION_PACKAGE" != "dev" ]; then \ if [ "$COLLECTION_PACKAGE" != "dev" ]; then \
echo "specified"; \ echo "[TRACE] Package Specified"; \
ansible-galaxy collection install --force-with-deps --pre \ ansible-galaxy collection install --force-with-deps --pre \
$COLLECTION_PACKAGE; \ $COLLECTION_PACKAGE; \
elif [ "$COLLECTION_PACKAGE" == "dev" ]; then \ elif [ "$COLLECTION_PACKAGE" == "dev" ]; then \
echo "[TRACE] Development Build"; \
git clone \ git clone \
--depth=1 \ --depth=1 \
-b $COLLECTION_BRANCH \ -b $COLLECTION_BRANCH \
https://gitlab.com/nofusscomputing/projects/ansible/collections/phpipam_scan_agent.git \ https://gitlab.com/nofusscomputing/projects/ansible/collections/phpipam_scan_agent.git \
/tmp/collection; \ /tmp/collection; \
if [ "${COLLECTION_COMMIT}" != "none" ]; then git switch $COLLECTION_COMMIT; fi; \ if [ "${COLLECTION_COMMIT}" != "none" ]; then git switch $COLLECTION_COMMIT; fi; \
echo "[TRACE] Installing Development Build"; \
ansible-galaxy collection install --force-with-deps --pre \ ansible-galaxy collection install --force-with-deps --pre \
/tmp/collection/.; \ /tmp/collection/.; \
rm -Rf /tmp/collection; \ rm -Rf /tmp/collection; \