wip: created example files with new config and implementing new config in init
This commit is contained in:
20
docker/bookworm-newconfig/Dockerfile
Normal file
20
docker/bookworm-newconfig/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM golang:1.21-bookworm as builder
|
||||
|
||||
ADD . /root/wingmate
|
||||
WORKDIR /root/wingmate/
|
||||
ARG TEST_BUILD
|
||||
RUN make all && make DESTDIR=/usr/local/bin/wingmate install
|
||||
|
||||
|
||||
|
||||
FROM debian:bookworm
|
||||
|
||||
RUN ln -sf /usr/share/zoneinfo/Australia/Sydney /etc/localtime && \
|
||||
apt update && apt install -y procps && \
|
||||
useradd -m -s /bin/bash user1
|
||||
COPY --from=builder /usr/local/bin/wingmate/ /usr/local/bin/
|
||||
ADD --chmod=755 docker/bookworm/entry.sh /usr/local/bin/entry.sh
|
||||
ADD --chmod=755 docker/bookworm/etc /etc
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/entry.sh" ]
|
||||
CMD [ "/usr/local/bin/wingmate" ]
|
||||
7
docker/bookworm-newconfig/entry.sh
Normal file
7
docker/bookworm-newconfig/entry.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
exec "$@"
|
||||
else
|
||||
exec /usr/local/bin/wingmate
|
||||
fi
|
||||
5
docker/bookworm-newconfig/etc/wingmate/wingmate.yaml
Normal file
5
docker/bookworm-newconfig/etc/wingmate/wingmate.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
service:
|
||||
one:
|
||||
command: [ "/workspace/wingmate/cmd/experiment/starter/starter" ]
|
||||
environ: [ "DUMMY_PATH=/workspace/wingmate/cmd/experiment/dummy/dummy" ]
|
||||
|
||||
Reference in New Issue
Block a user