From f957019710a4252eb29ff1af0150bd2e82f81669 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 21 Feb 2021 13:15:27 +1300 Subject: [PATCH] deploy: docker compose file --- .gitignore | 1 + docker-compose.yaml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..adbb97d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +data/ \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 356f800..5cd8ede 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -15,6 +15,11 @@ services: piston_fs_repo: #Temporary solution until CI works build: repo + command: > + bash -c '/repo/make.sh && + curl http://piston_api:6969/repos -XPOST -d "slug=local&url=file:///repo/index.yaml"; + echo -e "\nAn error here is fine, it just means its already added it. Perhaps you restarted this container" + ' volumes: - ./repo:/repo - ./packages:/packages \ No newline at end of file