-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.all
76 lines (58 loc) · 2.21 KB
/
Dockerfile.all
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM ssst0n3/docker_archive:build_basic_ubuntu-22.04-20220414 AS ubuntu-22.04-20220414-step0-init
# cloud_init config
COPY step0-init.txt cloud.txt
RUN cloud-localds /cloud.img cloud.txt
# COPY start_vm.sh /start_vm.sh
COPY init_qemu.expect /init_qemu.expect
RUN /init_qemu.expect
COPY shrunk.sh /
RUN /shrunk.sh /ubuntu-server-cloudimg.img
FROM ubuntu-22.04-20220414-step0-init AS ubuntu-22.04-20220414-step1-kernel
# cloud_init config
COPY step1-kernel.txt cloud.txt
RUN cloud-localds /cloud.img cloud.txt
# COPY start_vm.sh /start_vm.sh
COPY init_qemu.expect /init_qemu.expect
RUN /init_qemu.expect
COPY shrunk.sh /
RUN /shrunk.sh /ubuntu-server-cloudimg.img
# FROM ssst0n3/docker_archive:build_basic_ubuntu-22.04-20220414
# COPY --from=0 /ubuntu-server-cloudimg.img /
FROM ubuntu-22.04-20220414-step1-kernel AS ubuntu-22.04-20220414-step2-containerd
# cloud_init config
COPY step2-containerd.txt cloud.txt
RUN cloud-localds /cloud.img cloud.txt
# COPY start_vm.sh /start_vm.sh
COPY init_qemu.expect /init_qemu.expect
RUN /init_qemu.expect
COPY shrunk.sh /
RUN /shrunk.sh /ubuntu-server-cloudimg.img
FROM ubuntu-22.04-20220414-step2-containerd AS ubuntu-22.04-20220414-step3-k8s
# cloud_init config
COPY step3-k8s.txt cloud.txt
RUN cloud-localds /cloud.img cloud.txt
# COPY start_vm.sh /start_vm.sh
COPY init_qemu.expect /init_qemu.expect
RUN /init_qemu.expect
COPY shrunk.sh /
RUN /shrunk.sh /ubuntu-server-cloudimg.img
FROM ubuntu-22.04-20220414-step3-k8s AS ubuntu-22.04-20220414-step4-deployment
# cloud_init config
COPY step4-deployment.txt cloud.txt
RUN cloud-localds /cloud.img cloud.txt
# COPY start_vm.sh /start_vm.sh
COPY init_qemu.expect /init_qemu.expect
RUN /init_qemu.expect
COPY shrunk.sh /
RUN /shrunk.sh /ubuntu-server-cloudimg.img
FROM ubuntu-22.04-20220414-step4-deployment AS ubuntu-22.04-20220414-step5-secret
# cloud_init config
COPY step5-secret.txt cloud.txt
RUN cloud-localds /cloud.img cloud.txt
# COPY start_vm.sh /start_vm.sh
COPY init_qemu.expect /init_qemu.expect
RUN /init_qemu.expect
COPY shrunk.sh /
RUN /shrunk.sh /ubuntu-server-cloudimg.img
FROM ssst0n3/docker_archive:release_basic_ubuntu-20.04 AS ctf_dirty-pipe-escape-rw
COPY --from=ubuntu-22.04-20220414-step5-secret /ubuntu-server-cloudimg.img /