test: add DOMAIN_NAME to Caddyfile
This commit is contained in:
parent
4ae36a910c
commit
e4ae77f8de
|
@ -1,3 +1,7 @@
|
|||
# A hello-world example.
|
||||
|
||||
ARG DOMAIN_NAME
|
||||
|
||||
FROM stagex/pallet-rust:sx2025.06.1 AS pallet-rust
|
||||
FROM stagex/user-eif_build:sx2025.06.1 AS eif_build
|
||||
FROM stagex/user-gen_initramfs:sx2025.06.1 AS gen_initramfs
|
||||
|
@ -23,11 +27,22 @@ WORKDIR /build_cpio
|
|||
RUN cp /src/target/${TARGET}/release/nit init
|
||||
RUN cp /src/target/${TARGET}/release/hello hello
|
||||
ENV KBUILD_BUILD_TIMESTAMP=1
|
||||
|
||||
COPY <<-EOF Caddyfile
|
||||
${DOMAIN_NAME} {
|
||||
respond "HTTPS, World!"
|
||||
}
|
||||
EOF
|
||||
|
||||
RUN cat Caddyfile; exit 1
|
||||
|
||||
COPY <<-EOF initramfs.list
|
||||
file /init init 0755 0 0
|
||||
dir /run 0755 0 0
|
||||
dir /tmp 0755 0 0
|
||||
dir /etc 0755 0 0
|
||||
dir /etc/caddy 0755 0 0
|
||||
file /etc/caddy/Caddyfile Caddyfile 0755 0 0
|
||||
dir /bin 0755 0 0
|
||||
dir /sbin 0755 0 0
|
||||
dir /proc 0755 0 0
|
||||
|
|
Loading…
Reference in New Issue