-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathDockerfile.in
More file actions
37 lines (30 loc) · 795 Bytes
/
Dockerfile.in
File metadata and controls
37 lines (30 loc) · 795 Bytes
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
29
30
31
32
33
34
35
36
37
#syntax=docker/dockerfile:1.4
#insert=rm-docker/Dockerfile
FROM qemu-toltec as qemu-toltec-codexctl
RUN <<EOT
set -ex
export DEBIAN_FRONTEND="noninteractive"
apt-get update
apt-get install -y rsync
rm -rf /var/lib/apt/lists/*
EOT
ADD scripts/install_build_tools.sh /opt/install_build_tools.sh
RUN <<EOT
set -ex
run_vm.sh -serial null -daemonize
wait_ssh.sh
scp /opt/install_build_tools.sh root@localhost:/opt/bin
ssh root@localhost 'bash -l -c install_build_tools.sh'
save_vm.sh
EOT
ADD scripts/build.sh /opt/build.sh
RUN <<EOT
set -ex
run_vm.sh -serial null -daemonize
wait_ssh.sh
scp /opt/build.sh root@localhost:/opt/bin
rm /opt/build.sh
save_vm.sh
EOT
ADD scripts/run_build.sh /opt/bin/run_build.sh
CMD run_build.sh