2022-01-11 11:37:23 -08:00
|
|
|
FROM ubuntu:21.04 AS builder
|
2021-11-17 11:28:25 -08:00
|
|
|
|
|
|
|
ARG RUNNER_VERSION="2.284.0"
|
|
|
|
|
2022-01-11 11:37:23 -08:00
|
|
|
WORKDIR /build
|
2021-11-17 11:28:25 -08:00
|
|
|
|
2022-01-11 11:37:23 -08:00
|
|
|
COPY start.sh /opt/start.sh
|
|
|
|
|
|
|
|
ADD https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz /build/
|
|
|
|
|
|
|
|
ADD https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 /build/
|
|
|
|
|
|
|
|
RUN apt-get update &&\
|
|
|
|
apt-get install bzip2 &&\
|
|
|
|
mkdir -p /opt/actions-runner &&\
|
|
|
|
tar -xf ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz -C /opt/actions-runner/ &&\
|
|
|
|
tar -xf gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 &&\
|
|
|
|
chmod +x /opt/start.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM ubuntu:21.04 AS actions-runer
|
|
|
|
|
|
|
|
COPY --from=builder /opt /opt
|
|
|
|
COPY --from=builder /build/gcc-arm-none-eabi-9-2020-q2-update/bin /bin
|
|
|
|
|
|
|
|
RUN useradd -m docker &&\
|
|
|
|
apt-get update -y &&\
|
|
|
|
DEBIAN_FRONTEND=noninteractive /opt/actions-runner/bin/installdependencies.sh && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
2021-11-17 11:28:25 -08:00
|
|
|
curl \
|
|
|
|
jq \
|
|
|
|
build-essential \
|
2021-11-17 11:40:55 -08:00
|
|
|
git \
|
2021-11-17 11:28:25 -08:00
|
|
|
gcc \
|
|
|
|
make \
|
|
|
|
openjdk-8-jdk-headless \
|
|
|
|
ant \
|
2021-11-17 11:42:44 -08:00
|
|
|
mtools \
|
|
|
|
dosfstools \
|
2021-11-17 16:50:55 -08:00
|
|
|
zip \
|
2021-11-23 22:28:15 -08:00
|
|
|
xxd \
|
|
|
|
usbutils \
|
2022-01-11 11:37:23 -08:00
|
|
|
openocd \
|
|
|
|
&& apt-get autoremove -y && apt-get clean -y &&\
|
|
|
|
chown -R docker /opt
|
2021-11-17 11:28:25 -08:00
|
|
|
|
2021-11-17 14:03:18 -08:00
|
|
|
WORKDIR /opt
|
2021-11-17 11:28:25 -08:00
|
|
|
|
|
|
|
USER docker
|
|
|
|
|
2021-11-17 14:03:18 -08:00
|
|
|
VOLUME /opt/actions-runner
|
2021-11-17 11:28:25 -08:00
|
|
|
|
2022-01-11 11:37:23 -08:00
|
|
|
ENTRYPOINT ["./start.sh"]
|