From 2d764fc7d0b15ffc3e3b78ae884c8f7825966703 Mon Sep 17 00:00:00 2001 From: zramsay Date: Mon, 29 Jan 2024 16:00:58 +0000 Subject: [PATCH 1/3] basic mars stack --- stack_orchestrator/data/compose/docker-compose-mars.yml | 8 ++++++++ .../data/container-build/cerc-mars/build.sh | 4 ++++ stack_orchestrator/data/stacks/mars/stack.yml | 8 ++++++++ 3 files changed, 20 insertions(+) create mode 100644 stack_orchestrator/data/compose/docker-compose-mars.yml create mode 100755 stack_orchestrator/data/container-build/cerc-mars/build.sh create mode 100644 stack_orchestrator/data/stacks/mars/stack.yml diff --git a/stack_orchestrator/data/compose/docker-compose-mars.yml b/stack_orchestrator/data/compose/docker-compose-mars.yml new file mode 100644 index 00000000..5b1a44e0 --- /dev/null +++ b/stack_orchestrator/data/compose/docker-compose-mars.yml @@ -0,0 +1,8 @@ +version: "3.2" + +services: + mars: + image: cerc/mars:local + restart: always + ports: + - "3000:3000" diff --git a/stack_orchestrator/data/container-build/cerc-mars/build.sh b/stack_orchestrator/data/container-build/cerc-mars/build.sh new file mode 100755 index 00000000..28ebf417 --- /dev/null +++ b/stack_orchestrator/data/container-build/cerc-mars/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# Build the mars image +source ${CERC_CONTAINER_BASE_DIR}/build-base.sh +docker build -t cerc/mars:local -f ${CERC_REPO_BASE_DIR}/mars-interface/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/mars-interface diff --git a/stack_orchestrator/data/stacks/mars/stack.yml b/stack_orchestrator/data/stacks/mars/stack.yml new file mode 100644 index 00000000..314afa36 --- /dev/null +++ b/stack_orchestrator/data/stacks/mars/stack.yml @@ -0,0 +1,8 @@ +version: "0.1" +name: mars +repos: + - github.com/cerc-io/mars-interface +containers: + - cerc/mars +pods: + - mars From 23ee3e19b71e2cd51b50bf56e300478792fb2552 Mon Sep 17 00:00:00 2001 From: zramsay Date: Mon, 29 Jan 2024 22:44:55 +0000 Subject: [PATCH 2/3] mars: add env vars to docker-compose --- .../data/compose/docker-compose-mars.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/stack_orchestrator/data/compose/docker-compose-mars.yml b/stack_orchestrator/data/compose/docker-compose-mars.yml index 5b1a44e0..193a90af 100644 --- a/stack_orchestrator/data/compose/docker-compose-mars.yml +++ b/stack_orchestrator/data/compose/docker-compose-mars.yml @@ -6,3 +6,15 @@ services: restart: always ports: - "3000:3000" + environment: + - URL_OSMOSIS_GQL=https://osmosis-node.marsprotocol.io/GGSFGSFGFG34/osmosis-hive-front/graphql + - URL_OSMOSIS_REST=https://lcd-osmosis.blockapsis.com + - URL_OSMOSIS_RPC=https://rpc-osmosis.blockapsis.com + - URL_NEUTRON_GQL=https://neutron.rpc.p2p.world/qgrnU6PsQZA8F9S5Fb8Fn3tV3kXmMBl2M9bcc9jWLjQy8p/hive/graphql + - URL_NEUTRON_REST=https://rest-kralum.neutron-1.neutron.org + - URL_NEUTRON_RPC=https://rpc-kralum.neutron-1.neutron.org + - URL_NEUTRON_TEST_GQL=https://testnet-neutron-gql.marsprotocol.io/graphql + - URL_NEUTRON_TEST_REST=https://rest-palvus.pion-1.ntrn.tech + - URL_NEUTRON_TEST_RPC=https://rpc-palvus.pion-1.ntrn.tech + - WALLET_CONNECT_ID=0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x + From 098567625a0591942b7d5226cd40c48d3f2df150 Mon Sep 17 00:00:00 2001 From: Zach Date: Tue, 30 Jan 2024 17:47:56 -0500 Subject: [PATCH 3/3] Create README.md --- stack_orchestrator/data/stacks/mars/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 stack_orchestrator/data/stacks/mars/README.md diff --git a/stack_orchestrator/data/stacks/mars/README.md b/stack_orchestrator/data/stacks/mars/README.md new file mode 100644 index 00000000..fb1eff41 --- /dev/null +++ b/stack_orchestrator/data/stacks/mars/README.md @@ -0,0 +1,16 @@ +# mars + +On a fresh Digital Ocean droplet with Ubuntu: + +``` +git clone https://github.com/cerc-io/stack-orchestrator +cd stack-orchestrator +./scripts/quick-install-linux.sh +``` +Read and follow the instructions output from the above output to complete installation, then: + +``` +laconic-so --stack mars setup-repositories +laconic-so --stack mars build-containers +laconic-so --stack mars deploy up +```