From 3af3915f158d61e9a8c9fc5f19ac991ecab6d83a Mon Sep 17 00:00:00 2001 From: zramsay Date: Thu, 15 Feb 2024 20:48:01 -0500 Subject: [PATCH 1/2] mars v2 --- .../data/compose/docker-compose-mars-v2.yml | 20 +++++++++++++++++++ .../container-build/cerc-mars-v2/build.sh | 4 ++++ .../data/stacks/mars-v2/README.md | 16 +++++++++++++++ .../data/stacks/mars-v2/stack.yml | 8 ++++++++ 4 files changed, 48 insertions(+) create mode 100644 stack_orchestrator/data/compose/docker-compose-mars-v2.yml create mode 100755 stack_orchestrator/data/container-build/cerc-mars-v2/build.sh create mode 100644 stack_orchestrator/data/stacks/mars-v2/README.md create mode 100644 stack_orchestrator/data/stacks/mars-v2/stack.yml diff --git a/stack_orchestrator/data/compose/docker-compose-mars-v2.yml b/stack_orchestrator/data/compose/docker-compose-mars-v2.yml new file mode 100644 index 00000000..2d312b51 --- /dev/null +++ b/stack_orchestrator/data/compose/docker-compose-mars-v2.yml @@ -0,0 +1,20 @@ +version: "3.2" + +services: + mars: + image: cerc/mars-v2:local + 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 + diff --git a/stack_orchestrator/data/container-build/cerc-mars-v2/build.sh b/stack_orchestrator/data/container-build/cerc-mars-v2/build.sh new file mode 100755 index 00000000..42852438 --- /dev/null +++ b/stack_orchestrator/data/container-build/cerc-mars-v2/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# Build the mars-v2 image +source ${CERC_CONTAINER_BASE_DIR}/build-base.sh +docker build -t cerc/mars-v2:local -f ${CERC_REPO_BASE_DIR}/mars-v2-frontend/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/mars-v2-frontend diff --git a/stack_orchestrator/data/stacks/mars-v2/README.md b/stack_orchestrator/data/stacks/mars-v2/README.md new file mode 100644 index 00000000..308c4cd7 --- /dev/null +++ b/stack_orchestrator/data/stacks/mars-v2/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-v2 setup-repositories +laconic-so --stack mars-v2 build-containers +laconic-so --stack mars-v2 deploy up +``` diff --git a/stack_orchestrator/data/stacks/mars-v2/stack.yml b/stack_orchestrator/data/stacks/mars-v2/stack.yml new file mode 100644 index 00000000..42d1fc00 --- /dev/null +++ b/stack_orchestrator/data/stacks/mars-v2/stack.yml @@ -0,0 +1,8 @@ +version: "0.1" +name: mars-v2 +repos: + - github.com/mars-protocol/mars-v2-frontend +containers: + - cerc/mars-v2 +pods: + - mars-v2 -- 2.45.2 From 1fa67db0251e63f4185327fe9360b88fc8d24065 Mon Sep 17 00:00:00 2001 From: zramsay Date: Thu, 15 Feb 2024 20:51:17 -0500 Subject: [PATCH 2/2] rm old envs --- .../data/compose/docker-compose-mars-v2.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/stack_orchestrator/data/compose/docker-compose-mars-v2.yml b/stack_orchestrator/data/compose/docker-compose-mars-v2.yml index 2d312b51..162ae3ba 100644 --- a/stack_orchestrator/data/compose/docker-compose-mars-v2.yml +++ b/stack_orchestrator/data/compose/docker-compose-mars-v2.yml @@ -7,14 +7,6 @@ services: 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 - -- 2.45.2