Skip to content

Commit

Permalink
Merge patch-axel-5'
Browse files Browse the repository at this point in the history
  • Loading branch information
axel-h committed Jan 25, 2024
2 parents 6617178 + d37d7e2 commit 859e878
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 73 deletions.
32 changes: 9 additions & 23 deletions camkes-vm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion camkes-vm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ inputs:

runs:
using: 'docker'
image: 'docker://sel4/camkes-vm:latest'
image: 'Dockerfile'
1 change: 1 addition & 0 deletions camkes-vm/seL4-platforms
32 changes: 9 additions & 23 deletions sel4test-hw/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion sel4test-hw/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ inputs:

runs:
using: 'docker'
image: 'docker://sel4/sel4test-hw:latest'
image: 'Dockerfile'
1 change: 1 addition & 0 deletions sel4test-hw/seL4-platforms
33 changes: 9 additions & 24 deletions sel4test-sim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion sel4test-sim/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ inputs:

runs:
using: 'docker'
image: 'docker://sel4/sel4test-sim:latest'
image: 'Dockerfile'
1 change: 1 addition & 0 deletions sel4test-sim/seL4-platforms

0 comments on commit 859e878

Please sign in to comment.