From bcc2df97a8177f9774b835fbae013fb5fe821c28 Mon Sep 17 00:00:00 2001 From: Samuel Stokes Date: Wed, 13 Sep 2023 14:27:40 -0400 Subject: [PATCH 1/4] Fix host:container port mappings in 'docker run' command --- .github/workflows/deploy-cloud-nodes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-cloud-nodes.yml b/.github/workflows/deploy-cloud-nodes.yml index e6bbf8a2c..a032059b2 100644 --- a/.github/workflows/deploy-cloud-nodes.yml +++ b/.github/workflows/deploy-cloud-nodes.yml @@ -91,7 +91,7 @@ jobs: docker pull registry.digitalocean.com/magmo/go-nitro:latest docker stop $NODE_NAME || true docker rm $NODE_NAME || true - docker run --restart=unless-stopped -it -d --name $NODE_NAME -p 3005:3005 -p 4005:4005 -p 5005:80 -e NITRO_CONFIG_PATH=$NITRO_CONFIG_PATH -e SC_PK=$SC_PK -e CHAIN_PK=$CHAIN_PK -v /var/nitro_store:/app/data registry.digitalocean.com/magmo/go-nitro:latest + docker run --restart=unless-stopped -it -d --name $NODE_NAME -p 3005:3005 -p 4005:4005 -p 80:5005 -e NITRO_CONFIG_PATH=$NITRO_CONFIG_PATH -e SC_PK=$SC_PK -e CHAIN_PK=$CHAIN_PK -v /var/nitro_store:/app/data registry.digitalocean.com/magmo/go-nitro:latest ENDSSH rm private_key.pem From d76c992882e100857d743d0da92736777985af1c Mon Sep 17 00:00:00 2001 From: Samuel Stokes Date: Wed, 13 Sep 2023 14:30:15 -0400 Subject: [PATCH 2/4] Change UI port in cloud from 80 --> 5005 --- .github/workflows/deploy-cloud-nodes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-cloud-nodes.yml b/.github/workflows/deploy-cloud-nodes.yml index a032059b2..7fe93e3f5 100644 --- a/.github/workflows/deploy-cloud-nodes.yml +++ b/.github/workflows/deploy-cloud-nodes.yml @@ -91,7 +91,7 @@ jobs: docker pull registry.digitalocean.com/magmo/go-nitro:latest docker stop $NODE_NAME || true docker rm $NODE_NAME || true - docker run --restart=unless-stopped -it -d --name $NODE_NAME -p 3005:3005 -p 4005:4005 -p 80:5005 -e NITRO_CONFIG_PATH=$NITRO_CONFIG_PATH -e SC_PK=$SC_PK -e CHAIN_PK=$CHAIN_PK -v /var/nitro_store:/app/data registry.digitalocean.com/magmo/go-nitro:latest + docker run --restart=unless-stopped -it -d --name $NODE_NAME -p 3005:3005 -p 4005:4005 -p 5005:5005 -e NITRO_CONFIG_PATH=$NITRO_CONFIG_PATH -e SC_PK=$SC_PK -e CHAIN_PK=$CHAIN_PK -v /var/nitro_store:/app/data registry.digitalocean.com/magmo/go-nitro:latest ENDSSH rm private_key.pem From 2b9ddb30a2be77c4f44f29693f34dbc8de4d05f2 Mon Sep 17 00:00:00 2001 From: Samuel Stokes Date: Wed, 13 Sep 2023 14:48:45 -0400 Subject: [PATCH 3/4] Use port mapping 80:5005 for all cloud nodes --- .github/workflows/deploy-cloud-nodes.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-cloud-nodes.yml b/.github/workflows/deploy-cloud-nodes.yml index 7fe93e3f5..425031e61 100644 --- a/.github/workflows/deploy-cloud-nodes.yml +++ b/.github/workflows/deploy-cloud-nodes.yml @@ -64,7 +64,7 @@ jobs: docker pull registry.digitalocean.com/magmo/go-nitro:latest docker stop $NODE_NAME || true docker rm $NODE_NAME || true - docker run --restart=unless-stopped -it -d --name $NODE_NAME -p 3005:3005 -p 4005:4005 -p 5005:80 -e NITRO_CONFIG_PATH=$NITRO_CONFIG_PATH -e SC_PK=$SC_PK -e CHAIN_PK=$CHAIN_PK -v /var/nitro_store:/app/data registry.digitalocean.com/magmo/go-nitro:latest + docker run --restart=unless-stopped -it -d --name $NODE_NAME -p 3005:3005 -p 4005:4005 -p 80:5005 -e NITRO_CONFIG_PATH=$NITRO_CONFIG_PATH -e SC_PK=$SC_PK -e CHAIN_PK=$CHAIN_PK -v /var/nitro_store:/app/data registry.digitalocean.com/magmo/go-nitro:latest ENDSSH rm private_key.pem @@ -91,7 +91,7 @@ jobs: docker pull registry.digitalocean.com/magmo/go-nitro:latest docker stop $NODE_NAME || true docker rm $NODE_NAME || true - docker run --restart=unless-stopped -it -d --name $NODE_NAME -p 3005:3005 -p 4005:4005 -p 5005:5005 -e NITRO_CONFIG_PATH=$NITRO_CONFIG_PATH -e SC_PK=$SC_PK -e CHAIN_PK=$CHAIN_PK -v /var/nitro_store:/app/data registry.digitalocean.com/magmo/go-nitro:latest + docker run --restart=unless-stopped -it -d --name $NODE_NAME -p 3005:3005 -p 4005:4005 -p 80:5005 -e NITRO_CONFIG_PATH=$NITRO_CONFIG_PATH -e SC_PK=$SC_PK -e CHAIN_PK=$CHAIN_PK -v /var/nitro_store:/app/data registry.digitalocean.com/magmo/go-nitro:latest ENDSSH rm private_key.pem @@ -118,6 +118,6 @@ jobs: docker pull registry.digitalocean.com/magmo/go-nitro:latest docker stop $NODE_NAME || true docker rm $NODE_NAME || true - docker run --restart=unless-stopped -it -d --name $NODE_NAME -p 3005:3005 -p 4005:4005 -p 5005:80 -e NITRO_CONFIG_PATH=$NITRO_CONFIG_PATH -e SC_PK=$SC_PK -e CHAIN_PK=$CHAIN_PK -v /var/nitro_store:/app/data registry.digitalocean.com/magmo/go-nitro:latest + docker run --restart=unless-stopped -it -d --name $NODE_NAME -p 3005:3005 -p 4005:4005 -p 80:5005 -e NITRO_CONFIG_PATH=$NITRO_CONFIG_PATH -e SC_PK=$SC_PK -e CHAIN_PK=$CHAIN_PK -v /var/nitro_store:/app/data registry.digitalocean.com/magmo/go-nitro:latest ENDSSH rm private_key.pem From eaa6be905c941b6e9bb124441732865d1c9be3ce Mon Sep 17 00:00:00 2001 From: Samuel Stokes Date: Wed, 13 Sep 2023 14:49:02 -0400 Subject: [PATCH 4/4] Update 'make docker/cloud/start' command --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 78566dbbc..0be98f96b 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ docker/cloud/build: docker build -f docker/cloud/Dockerfile -t go-nitro-cloud . docker/cloud/start: docker remove go-nitro-cloud || true - docker run -it -d --name go-nitro-cloud -p 3005:3005 -p 4005:4005 -p 5005:5005 go-nitro-cloud + docker run -it -d --name go-nitro-cloud -p 3005:3005 -p 4005:4005 -p 5005:5005 -e NITRO_CONFIG_PATH="./nitro_config/iris.toml" go-nitro-cloud docker/cloud/push: docker tag go-nitro-cloud:latest registry.digitalocean.com/magmo/go-nitro:latest