diff --git a/.github/workflows/entrypoint_pr.yml b/.github/workflows/entrypoint_pr.yml index 56264bd7c..1b13eab92 100644 --- a/.github/workflows/entrypoint_pr.yml +++ b/.github/workflows/entrypoint_pr.yml @@ -19,7 +19,8 @@ env: # final image parameters IMAGE_TARGET_REGISTRY: "nwodtuhs/exegol-preprod" - DOCKERFILE: "./Dockerfile" + #DOCKERFILE: "./Dockerfile" + DOCKERFILE: "./dockerfiles/misc-forensic.dockerfile" # creating a separate concurrency group for each PR diff --git a/dockerfiles/misc-forensic.dockerfile b/dockerfiles/misc-forensic.dockerfile new file mode 100644 index 000000000..e1a9fb6c9 --- /dev/null +++ b/dockerfiles/misc-forensic.dockerfile @@ -0,0 +1,38 @@ +# Author: The Exegol Project + +ARG BASE_IMAGE_REGISTRY="nwodtuhs/exegol-misc" +ARG BASE_IMAGE_NAME="base" + +FROM ${BASE_IMAGE_REGISTRY}:${BASE_IMAGE_NAME} + +# ARGs need to be placed after the FROM instruction. As per https://docs.docker.com/engine/reference/builder/#arg. +# If they are placed before, they will be overwritten somehow, and the LABELs below will be filled with empty ARGs +ARG TAG="local" +ARG VERSION="local" +ARG BUILD_DATE="n/a" + +LABEL org.exegol.tag="${TAG}" +LABEL org.exegol.version="${VERSION}" +LABEL org.exegol.build_date="${BUILD_DATE}" +LABEL org.exegol.app="Exegol" +LABEL org.exegol.src_repository="https://github.com/ThePorgs/Exegol-images" + +COPY sources /root/sources/ + +WORKDIR /root/sources/install + +# WARNING: package_most_used can't be used with other functions other than: package_base, post_install +# ./entrypoint.sh package_most_used + +RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version +RUN chmod +x entrypoint.sh +RUN apt-get update +RUN ./entrypoint.sh package_desktop +RUN ./entrypoint.sh package_misc +RUN ./entrypoint.sh package_misc_configure +RUN ./entrypoint.sh package_forensic +RUN ./entrypoint.sh post_install + +WORKDIR /workspace + +ENTRYPOINT ["/.exegol/entrypoint.sh"]