Skip to content

Commit

Permalink
Docker Hub
Browse files Browse the repository at this point in the history
Publish images on Docker Hub
  • Loading branch information
dmirgaleev committed Jul 15, 2020
1 parent fbdf185 commit ac2cfa7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
init:
docker build -t tzkt-snapshot-dl -f Dockerfile-snapshot .
docker run --name tzkt-snapshot tzkt-snapshot-dl
docker run --name tzkt-snapshot bakingbad/tzkt-snapshot:latest
docker cp tzkt-snapshot:/tzkt_db.backup .
docker rm tzkt-snapshot
docker rmi tzkt-snapshot-dl
docker rmi bakingbad/tzkt-snapshot
docker-compose up -d db
docker-compose exec -T db psql -U tzkt postgres -c '\l'
docker-compose exec -T db dropdb -U tzkt --if-exists tzkt_db
Expand Down
8 changes: 2 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ services:
api:
container_name: tzkt-api
restart: always
build:
context: .
dockerfile: Tzkt.Api/Dockerfile
image: bakingbad/tzkt-api:latest
depends_on:
- db
expose:
Expand All @@ -32,9 +30,7 @@ services:
sync:
container_name: tzkt-sync
restart: always
build:
context: .
dockerfile: Tzkt.Sync/Dockerfile
image: bakingbad/tzkt-sync:latest
depends_on:
- db

Expand Down

0 comments on commit ac2cfa7

Please sign in to comment.