diff --git a/camkes-vm/Dockerfile b/camkes-vm/Dockerfile index 013a78e2..3347f711 100644 --- a/camkes-vm/Dockerfile +++ b/camkes-vm/Dockerfile @@ -2,39 +2,25 @@ # # SPDX-License-Identifier: BSD-2-Clause -# The context of this Dockerfiles is the repo root (../) - ARG WORKSPACE=/workspace ARG SCRIPTS=/ci-scripts -ARG ACTION=camkes-vm - -FROM trustworthysystems/camkes:latest -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - libffi-dev \ - && apt-get clean autoclean \ - && apt-get autoremove --yes \ - && rm -rf /var/lib/{apt,dpkg,cache,log}/ -RUN pip3 install junitparser PyGithub +FROM sel4/camkes-vm:latest -ARG ACTION ARG SCRIPTS -RUN mkdir ${SCRIPTS} -COPY ${ACTION}/steps.sh scripts/* ${SCRIPTS}/ -RUN chmod a+rx ${SCRIPTS}/* -ENV PATH "${SCRIPTS}:${PATH}" +WORKDIR ${SCRIPTS} +COPY steps.sh ./ +RUN chmod a+rx ./* -RUN mkdir /builds -COPY ${ACTION}/builds.yml \ - ${ACTION}/build.py \ +WORKDIR /builds +COPY builds.yml \ + build.py \ seL4-platforms/platforms.yml \ seL4-platforms/platforms.py \ seL4-platforms/builds.py \ - /builds/ + ./ ARG WORKSPACE -RUN mkdir -p ${WORKSPACE} WORKDIR ${WORKSPACE} -ENTRYPOINT steps.sh +ENTRYPOINT /${SCRIPTS}/steps.sh diff --git a/camkes-vm/action.yml b/camkes-vm/action.yml index 4c069fab..3b705f15 100644 --- a/camkes-vm/action.yml +++ b/camkes-vm/action.yml @@ -20,4 +20,4 @@ inputs: runs: using: 'docker' - image: 'docker://sel4/camkes-vm:latest' + image: 'Dockerfile' diff --git a/camkes-vm/seL4-platforms b/camkes-vm/seL4-platforms new file mode 120000 index 00000000..f24c9c72 --- /dev/null +++ b/camkes-vm/seL4-platforms @@ -0,0 +1 @@ +../seL4-platforms \ No newline at end of file diff --git a/sel4test-hw/Dockerfile b/sel4test-hw/Dockerfile index 42092bac..92297418 100644 --- a/sel4test-hw/Dockerfile +++ b/sel4test-hw/Dockerfile @@ -2,39 +2,25 @@ # # SPDX-License-Identifier: BSD-2-Clause -# The context of this Dockerfiles is the repo root (../) - ARG WORKSPACE=/workspace ARG SCRIPTS=/ci-scripts -ARG ACTION=sel4test-hw - -FROM trustworthysystems/sel4:latest -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - libffi-dev \ - && apt-get clean autoclean \ - && apt-get autoremove --yes \ - && rm -rf /var/lib/{apt,dpkg,cache,log}/ -RUN pip3 install junitparser PyGithub +FROM sel4/sel4test-hw:latest ARG SCRIPTS -ARG ACTION -RUN mkdir ${SCRIPTS} -COPY ${ACTION}/steps.sh scripts/* ${SCRIPTS}/ -RUN chmod a+rx ${SCRIPTS}/* -ENV PATH "${SCRIPTS}:${PATH}" +WORKDIR ${SCRIPTS} +COPY steps.sh ./ +RUN chmod a+rx ./* -RUN mkdir /builds -COPY ${ACTION}/builds.yml \ - ${ACTION}/build.py \ +WORKDIR /builds +COPY builds.yml \ + build.py \ seL4-platforms/platforms.yml \ seL4-platforms/platforms.py \ seL4-platforms/builds.py \ - /builds/ + ./ ARG WORKSPACE -RUN mkdir -p ${WORKSPACE} WORKDIR ${WORKSPACE} -ENTRYPOINT steps.sh +ENTRYPOINT /${SCRIPTS}/steps.sh diff --git a/sel4test-hw/action.yml b/sel4test-hw/action.yml index 1b63d27e..c1bad0af 100644 --- a/sel4test-hw/action.yml +++ b/sel4test-hw/action.yml @@ -38,4 +38,4 @@ inputs: runs: using: 'docker' - image: 'docker://sel4/sel4test-hw:latest' + image: 'Dockerfile' diff --git a/sel4test-hw/seL4-platforms b/sel4test-hw/seL4-platforms new file mode 120000 index 00000000..f24c9c72 --- /dev/null +++ b/sel4test-hw/seL4-platforms @@ -0,0 +1 @@ +../seL4-platforms \ No newline at end of file diff --git a/sel4test-sim/Dockerfile b/sel4test-sim/Dockerfile index a67e0990..07fee011 100644 --- a/sel4test-sim/Dockerfile +++ b/sel4test-sim/Dockerfile @@ -2,39 +2,24 @@ # # SPDX-License-Identifier: BSD-2-Clause -# The context of this Dockerfiles is the repo root (../) - ARG WORKSPACE=/workspace ARG SCRIPTS=/ci-scripts -ARG ACTION=sel4test-sim - -FROM trustworthysystems/sel4:latest -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - libffi-dev \ - && apt-get clean autoclean \ - && apt-get autoremove --yes \ - && rm -rf /var/lib/{apt,dpkg,cache,log}/ -RUN pip3 install junitparser PyGithub +FROM sel4/sel4test-sim:latest ARG SCRIPTS -ARG ACTION -RUN mkdir ${SCRIPTS} -COPY ${ACTION}/steps.sh scripts/* ${SCRIPTS}/ -RUN chmod a+rx ${SCRIPTS}/* -ENV PATH "${SCRIPTS}:${PATH}" +WORKDIR ${SCRIPTS} +COPY steps.sh ./ +RUN chmod a+rx ./* -RUN mkdir /builds -COPY ${ACTION}/builds.yml \ - ${ACTION}/build.py \ - seL4-platforms/platforms.yml \ +WORKDIR /builds +COPY builds.yml \ + build.py \ seL4-platforms/platforms.py \ seL4-platforms/builds.py \ - /builds/ + ./ ARG WORKSPACE -RUN mkdir -p ${WORKSPACE} WORKDIR ${WORKSPACE} -ENTRYPOINT steps.sh +ENTRYPOINT /${SCRIPTS}/steps.sh diff --git a/sel4test-sim/action.yml b/sel4test-sim/action.yml index 0dd325b9..270aa844 100644 --- a/sel4test-sim/action.yml +++ b/sel4test-sim/action.yml @@ -36,4 +36,4 @@ inputs: runs: using: 'docker' - image: 'docker://sel4/sel4test-sim:latest' + image: 'Dockerfile' diff --git a/sel4test-sim/seL4-platforms b/sel4test-sim/seL4-platforms new file mode 120000 index 00000000..f24c9c72 --- /dev/null +++ b/sel4test-sim/seL4-platforms @@ -0,0 +1 @@ +../seL4-platforms \ No newline at end of file