Skip to content

Commit

Permalink
Make sure the container is run in a supported envorinment for other a…
Browse files Browse the repository at this point in the history
…rchitectures
  • Loading branch information
tishun committed Mar 19, 2024
1 parent 66ef8c5 commit 9f8c992
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
export DOCKER_DEFAULT_PLATFORM=linux/amd64

if [[ -n "${DOCKER_ACCESS_TOKEN}" ]]; then
echo $DOCKER_ACCESS_TOKEN | docker login --username=$DOCKER_USERNAME --password-stdin
Expand All @@ -15,4 +16,4 @@ docker-compose exec -T node-1 "/opt/join_node.sh"
docker-compose exec -T node-2 "/opt/join_node.sh"

## Create DB ##
docker-compose exec -T master-node "/opt/create_db.sh"
docker-compose exec -T master-node "/opt/create_db.sh"

0 comments on commit 9f8c992

Please sign in to comment.