diff --git a/Makefile b/Makefile index 0f8e015c4..74d788c51 100644 --- a/Makefile +++ b/Makefile @@ -145,13 +145,16 @@ ps: docker ps --format "table {{.Names}}\t{{.RunningFor}}\t{{.Status}}\t{{.Ports}}" sandbox-images: - docker-compose -f docker-compose.sandbox.yml build + $(MAKE) stable-images + +sandbox: + TAG=$$(cat version.json | grep version | awk -F\" '{ print $$4 }' | cut -d '.' -f1-2) COMPOSE_PROJECT_NAME=bcdbox docker-compose -f docker-compose.sandbox.yml up -d sandbox-up: - COMPOSE_PROJECT_NAME=bcdbox docker-compose -f docker-compose.sandbox.yml up -d + TAG=$$(cat version.json | grep version | awk -F\" '{ print $$4 }' | cut -d '.' -f1-2) COMPOSE_PROJECT_NAME=bcdbox docker-compose -f docker-compose.sandbox.yml up -d elastic mq db api indexer metrics gui sandbox-dev: - COMPOSE_PROJECT_NAME=bcdbox BCD_ENV=you docker-compose -f docker-compose.sandbox.yml up -d elastic mq db api indexer metrics + TAG=$$(cat version.json | grep version | awk -F\" '{ print $$4 }' | cut -d '.' -f1-2) COMPOSE_PROJECT_NAME=bcdbox BCD_ENV=you docker-compose -f docker-compose.sandbox.yml up -d elastic mq db api indexer metrics gui sandbox-down: COMPOSE_PROJECT_NAME=bcdbox docker-compose -f docker-compose.sandbox.yml down diff --git a/configs/development.yml b/configs/development.yml index 7f9b25832..cbce4f093 100644 --- a/configs/development.yml +++ b/configs/development.yml @@ -64,9 +64,9 @@ share_path: ${HOME}/.bcd base_url: http://localhost:8080 ipfs: + - https://ipfs.baking-bad.org - https://ipfs.io - https://dweb.link - - https://ipfs.baking-bad.org domains: delphinet: KT1CR6vXJ1qeY4ALDQfUaLFi3FcJJZ8WDygo diff --git a/configs/production.yml b/configs/production.yml index 7b7d96a68..8422768e8 100644 --- a/configs/production.yml +++ b/configs/production.yml @@ -65,9 +65,9 @@ share_path: /etc/bcd base_url: https://better-call.dev ipfs: + - https://ipfs.baking-bad.org - https://ipfs.io - https://dweb.link - - https://ipfs.baking-bad.org domains: delphinet: KT1CR6vXJ1qeY4ALDQfUaLFi3FcJJZ8WDygo diff --git a/configs/sandbox.yml b/configs/sandbox.yml index 01c1a6ffc..8a1b0d5d4 100644 --- a/configs/sandbox.yml +++ b/configs/sandbox.yml @@ -21,14 +21,13 @@ share_path: ${HOME}/.bcd base_url: http://localhost:8000 ipfs: - - https://ipfs.io - - https://dweb.link + - ${SANDBOX_IPFS_GATEWAY} api: project_name: api bind: ":14000" swagger_host: "localhost:8000" - cors_enabled: false + cors_enabled: true oauth_enabled: false sentry_enabled: false seed_enabled: true diff --git a/configs/you.yml b/configs/you.yml index ff74010b1..2aa8b67db 100644 --- a/configs/you.yml +++ b/configs/you.yml @@ -64,9 +64,9 @@ share_path: /etc/bcd base_url: https://you.better-call.dev ipfs: + - https://ipfs.baking-bad.org - https://ipfs.io - https://dweb.link - - https://ipfs.baking-bad.org domains: delphinet: KT1CR6vXJ1qeY4ALDQfUaLFi3FcJJZ8WDygo diff --git a/docker-compose.sandbox.yml b/docker-compose.sandbox.yml index 389212030..154280dda 100644 --- a/docker-compose.sandbox.yml +++ b/docker-compose.sandbox.yml @@ -1,7 +1,7 @@ version: "3.6" services: elastic: - image: bakingbad/bcdhub-elastic:${TAG:-latest} + image: bakingbad/bcdhub-elastic:${TAG} restart: always volumes: - esdata:/usr/share/elasticsearch/data @@ -37,10 +37,7 @@ services: api: restart: always - image: bakingbad/bcdhub-api:${TAG:-latest} - build: - context: . - dockerfile: build/api/Dockerfile + image: bakingbad/bcdhub-api:${TAG} environment: - BCD_ENV=${BCD_ENV:-sandbox} - GIN_MODE=debug @@ -50,6 +47,7 @@ services: - RABBITMQ_DEFAULT_USER=guest - RABBITMQ_DEFAULT_PASS=guest - SANDBOX_NODE_URI=http://sandbox:8732 + - SANDBOX_IPFS_GATEWAY=https://ipfs.io depends_on: - elastic - db @@ -62,15 +60,13 @@ services: indexer: restart: always - image: bakingbad/bcdhub-indexer:${TAG:-latest} - build: - context: . - dockerfile: build/indexer/Dockerfile + image: bakingbad/bcdhub-indexer:${TAG} environment: - BCD_ENV=${BCD_ENV:-sandbox} - RABBITMQ_DEFAULT_USER=guest - RABBITMQ_DEFAULT_PASS=guest - SANDBOX_NODE_URI=http://sandbox:8732 + - SANDBOX_IPFS_GATEWAY=https://ipfs.io depends_on: - elastic - mq @@ -81,10 +77,7 @@ services: metrics: restart: always - image: bakingbad/bcdhub-metrics:${TAG:-latest} - build: - context: . - dockerfile: build/metrics/Dockerfile + image: bakingbad/bcdhub-metrics:${TAG} environment: - BCD_ENV=${BCD_ENV:-sandbox} - POSTGRES_USER=root @@ -93,6 +86,7 @@ services: - RABBITMQ_DEFAULT_USER=guest - RABBITMQ_DEFAULT_PASS=guest - SANDBOX_NODE_URI=http://sandbox:8732 + - SANDBOX_IPFS_GATEWAY=https://ipfs.io depends_on: - elastic - mq @@ -128,8 +122,7 @@ services: gui: container_name: sandbox-gui restart: always - image: bakingbad/bcdhub-gui:${TAG:-latest} - entrypoint: /bin/bash + image: bakingbad/bcdhub-gui:${TAG} depends_on: - api ports: