-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (22 loc) · 926 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ubuntu:latest
ARG FIRMWARE='firmware.bin'
ENV FIRMWARE ${FIRMWARE}
RUN apt update
RUN apt install -y \
wget \
libx11-6 \
python3
RUN cd /mnt &&\
wget https://github.com/xpack-dev-tools/qemu-arm-xpack/releases/download/v2.8.0-12/xpack-qemu-arm-2.8.0-12-linux-x64.tar.gz &&\
tar xvf ./xpack-qemu-arm-2.8.0-12-linux-x64.tar.gz &&\
chmod +x /mnt/xpack-qemu-arm-2.8.0-12/bin/qemu-system-gnuarmeclipse &&\
/mnt/xpack-qemu-arm-2.8.0-12/bin/qemu-system-gnuarmeclipse --version
COPY ./start.sh /mnt/start.sh
COPY ./init.py /mnt/init.py
RUN chmod +x /mnt/start.sh
EXPOSE 3333
ENTRYPOINT [ "/bin/bash", "-c" ,"cd /mnt && python3 init.py ${FIRMWARE}" ]
# sudo docker create -name openefi_testing_container openefi_testing
# sudo docker cp ./firmware.bin openefi_testing_container:/mnt/firmware.bin
# sudo docker container start openefi_testing_container
# sudo docker container logs openefi_testing_container