From bf025b4977543a371df9dbdddfe9cc2f02f2a8d0 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 9 Feb 2025 23:56:38 +0100 Subject: First integration test Sets up a whole slew of docker instances, all started from clean slate for test. --- docker/integration_test/web/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docker/integration_test/web/Dockerfile (limited to 'docker/integration_test/web/Dockerfile') diff --git a/docker/integration_test/web/Dockerfile b/docker/integration_test/web/Dockerfile new file mode 100644 index 0000000..2ba7a5d --- /dev/null +++ b/docker/integration_test/web/Dockerfile @@ -0,0 +1,15 @@ +FROM archlinux:base + +RUN pacman -Suy --noconfirm && pacman -S openssl git --noconfirm + +# Docker still have this really stupied idea that all files must be relative "context", +# so context is set to ../.. relative the docker-compose.yaml +COPY server/target/x86_64-unknown-linux-musl/debug/eyeballs-githook /app/eyeballs-githook +COPY server/target/debug/eyeballs /app/eyeballs +COPY docker/integration_test/web/setup.sh /app/setup.sh + +RUN mkdir -p -m 0700 /app/.ssh +COPY docker/integration_test/web/gitkey /app/.ssh/id_rsa + +WORKDIR /app +ENTRYPOINT /app/setup.sh -- cgit v1.2.3-70-g09d2