Skip to content

Commit

Permalink
make miner runner able to accept updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mpnowacki-reef committed Mar 22, 2024
1 parent 6ec1cb2 commit 79ffb4d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
4 changes: 3 additions & 1 deletion miner/envs/runner-staging/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ EXPOSE 80
RUN apt-get update && apt-get install -y docker.io docker-compose
WORKDIR /root
COPY data/docker-compose.yml docker-compose.yml
ENTRYPOINT ["docker-compose", "up"]
COPY entrypoint.sh /entrypoint.sh
RUN chmod u+x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
11 changes: 11 additions & 0 deletions miner/envs/runner-staging/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu

docker-compose up -d --force-recreate

while true
do
docker-compose logs -f
echo 'All containers died'
sleep 10
done
4 changes: 3 additions & 1 deletion miner/envs/runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ EXPOSE 80
RUN apt-get update && apt-get install -y docker.io docker-compose
WORKDIR /root
COPY data/docker-compose.yml docker-compose.yml
ENTRYPOINT ["docker-compose", "up"]
COPY entrypoint.sh /entrypoint.sh
RUN chmod u+x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
11 changes: 11 additions & 0 deletions miner/envs/runner/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu

docker-compose up -d --force-recreate

while true
do
docker-compose logs -f
echo 'All containers died'
sleep 10
done

0 comments on commit 79ffb4d

Please sign in to comment.