From 54cc993fa427175f5f7daa880800c6f99f919f03 Mon Sep 17 00:00:00 2001 From: zramsay Date: Mon, 6 Nov 2023 16:00:05 +0000 Subject: [PATCH 1/7] osmosis FE stack --- app/data/container-build/cerc-osmosis-front-end/build.sh | 4 ++++ app/data/stacks/osmosis-front-end/README.md | 7 +++++++ app/data/stacks/osmosis-front-end/stack.yml | 8 ++++++++ .../data/compose/docker-compose-osmosis-front-end.yml | 8 ++++++++ 4 files changed, 27 insertions(+) create mode 100644 app/data/container-build/cerc-osmosis-front-end/build.sh create mode 100644 app/data/stacks/osmosis-front-end/README.md create mode 100644 app/data/stacks/osmosis-front-end/stack.yml create mode 100644 stack_orchestrator/data/compose/docker-compose-osmosis-front-end.yml diff --git a/app/data/container-build/cerc-osmosis-front-end/build.sh b/app/data/container-build/cerc-osmosis-front-end/build.sh new file mode 100644 index 00000000..22f2c346 --- /dev/null +++ b/app/data/container-build/cerc-osmosis-front-end/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# Build the osmosis front end image +source ${CERC_CONTAINER_BASE_DIR}/build-base.sh +docker build -t cerc/osmosis-front-end:local -f ${CERC_REPO_BASE_DIR}/osmosis-frontend/docker/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/osmosis-frontend diff --git a/app/data/stacks/osmosis-front-end/README.md b/app/data/stacks/osmosis-front-end/README.md new file mode 100644 index 00000000..199dda68 --- /dev/null +++ b/app/data/stacks/osmosis-front-end/README.md @@ -0,0 +1,7 @@ +# self-hosted osmosis front-end + +``` +laconic-so --stack osmosis-front-end setup-repositories +laconic-so --stack osmosis-front-end build-containers +laconic-so --stack osmosis-front-end deploy up +``` diff --git a/app/data/stacks/osmosis-front-end/stack.yml b/app/data/stacks/osmosis-front-end/stack.yml new file mode 100644 index 00000000..d4601c19 --- /dev/null +++ b/app/data/stacks/osmosis-front-end/stack.yml @@ -0,0 +1,8 @@ +version: "0.1" +name: osmosis-front-end +repos: + - github.com/osmosis-labs/osmosis-frontend +containers: + - cerc/osmosis-front-end +pods: + - osmosis-front-end diff --git a/stack_orchestrator/data/compose/docker-compose-osmosis-front-end.yml b/stack_orchestrator/data/compose/docker-compose-osmosis-front-end.yml new file mode 100644 index 00000000..32392882 --- /dev/null +++ b/stack_orchestrator/data/compose/docker-compose-osmosis-front-end.yml @@ -0,0 +1,8 @@ +version: "3.2" + +services: + osmosis-front-end: + image: cerc/osmosis-front-end:local + restart: always + ports: + - "3000:3000" #TODO make `3000` when using the deployment feature -- 2.45.2 From 8ad2b692eccdedc8121990177c2111c7954294fb Mon Sep 17 00:00:00 2001 From: zramsay Date: Mon, 6 Nov 2023 16:01:37 +0000 Subject: [PATCH 2/7] chmod --- app/data/container-build/cerc-osmosis-front-end/build.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 app/data/container-build/cerc-osmosis-front-end/build.sh diff --git a/app/data/container-build/cerc-osmosis-front-end/build.sh b/app/data/container-build/cerc-osmosis-front-end/build.sh old mode 100644 new mode 100755 -- 2.45.2 From 7d27eaef0fe4d8e83f1fae6cdb4b1c9c5f4c18d9 Mon Sep 17 00:00:00 2001 From: zramsay Date: Wed, 8 Nov 2023 16:19:52 +0000 Subject: [PATCH 3/7] dont use 3000 --- .../data/compose/docker-compose-osmosis-front-end.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack_orchestrator/data/compose/docker-compose-osmosis-front-end.yml b/stack_orchestrator/data/compose/docker-compose-osmosis-front-end.yml index 32392882..bcdc48e2 100644 --- a/stack_orchestrator/data/compose/docker-compose-osmosis-front-end.yml +++ b/stack_orchestrator/data/compose/docker-compose-osmosis-front-end.yml @@ -5,4 +5,4 @@ services: image: cerc/osmosis-front-end:local restart: always ports: - - "3000:3000" #TODO make `3000` when using the deployment feature + - "3002:3002" #TODO make `3000` when using the deployment feature -- 2.45.2 From 0d91a62f841b06289b8f9d2b35a3d4d00fd95c9f Mon Sep 17 00:00:00 2001 From: zramsay Date: Tue, 14 Nov 2023 19:57:22 +0000 Subject: [PATCH 4/7] fix for neww stack format --- .../data/container-build/cerc-osmosis-front-end/build.sh | 0 .../data/stacks/osmosis}/README.md | 2 +- .../data/stacks/osmosis}/stack.yml | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename {app => stack_orchestrator}/data/container-build/cerc-osmosis-front-end/build.sh (100%) rename {app/data/stacks/osmosis-front-end => stack_orchestrator/data/stacks/osmosis}/README.md (83%) rename {app/data/stacks/osmosis-front-end => stack_orchestrator/data/stacks/osmosis}/stack.yml (84%) diff --git a/app/data/container-build/cerc-osmosis-front-end/build.sh b/stack_orchestrator/data/container-build/cerc-osmosis-front-end/build.sh similarity index 100% rename from app/data/container-build/cerc-osmosis-front-end/build.sh rename to stack_orchestrator/data/container-build/cerc-osmosis-front-end/build.sh diff --git a/app/data/stacks/osmosis-front-end/README.md b/stack_orchestrator/data/stacks/osmosis/README.md similarity index 83% rename from app/data/stacks/osmosis-front-end/README.md rename to stack_orchestrator/data/stacks/osmosis/README.md index 199dda68..8ea6c195 100644 --- a/app/data/stacks/osmosis-front-end/README.md +++ b/stack_orchestrator/data/stacks/osmosis/README.md @@ -1,4 +1,4 @@ -# self-hosted osmosis front-end +# self-hosted osmosis ``` laconic-so --stack osmosis-front-end setup-repositories diff --git a/app/data/stacks/osmosis-front-end/stack.yml b/stack_orchestrator/data/stacks/osmosis/stack.yml similarity index 84% rename from app/data/stacks/osmosis-front-end/stack.yml rename to stack_orchestrator/data/stacks/osmosis/stack.yml index d4601c19..5b8b744d 100644 --- a/app/data/stacks/osmosis-front-end/stack.yml +++ b/stack_orchestrator/data/stacks/osmosis/stack.yml @@ -1,5 +1,5 @@ version: "0.1" -name: osmosis-front-end +name: osmosis repos: - github.com/osmosis-labs/osmosis-frontend containers: -- 2.45.2 From 926997b21c13f06a946ce49abaac913b8a8766d6 Mon Sep 17 00:00:00 2001 From: zramsay Date: Tue, 14 Nov 2023 20:26:26 +0000 Subject: [PATCH 5/7] updates --- .../data/compose/docker-compose-kubo.yml | 2 +- .../data/stacks/osmosis/stack.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/stack_orchestrator/data/compose/docker-compose-kubo.yml b/stack_orchestrator/data/compose/docker-compose-kubo.yml index f5f8b06e..b04aa631 100644 --- a/stack_orchestrator/data/compose/docker-compose-kubo.yml +++ b/stack_orchestrator/data/compose/docker-compose-kubo.yml @@ -2,7 +2,7 @@ version: "3.2" # See: https://docs.ipfs.tech/install/run-ipfs-inside-docker/#set-up services: ipfs: - image: ipfs/kubo:master-2023-02-20-714a968 + image: ipfs/kubo:v0.24.0 restart: always volumes: - ./ipfs/import:/import diff --git a/stack_orchestrator/data/stacks/osmosis/stack.yml b/stack_orchestrator/data/stacks/osmosis/stack.yml index 5b8b744d..76b6a4fe 100644 --- a/stack_orchestrator/data/stacks/osmosis/stack.yml +++ b/stack_orchestrator/data/stacks/osmosis/stack.yml @@ -1,8 +1,27 @@ version: "0.1" name: osmosis repos: + # these are for gitea + - git.vdb.to/cerc-io/hosting@names-for-so + - gitea.com/gitea/act_runner + # add the osmosis FE - github.com/osmosis-labs/osmosis-frontend containers: + - cerc/act-runner + - cerc/act-runner-task-executor + # note: osmosis builds but doesn't run - cerc/osmosis-front-end pods: + - name: gitea + repository: cerc-io/hosting + path: gitea + pre_start_command: "run-this-first.sh" + post_start_command: "initialize-gitea.sh" + # todo, e.g., include cloning all of osmosis + - name: act-runner + repository: cerc-io/hosting + path: act-runner + pre_start_command: "pre_start.sh" + post_start_command: "post_start.sh" - osmosis-front-end + - kubo -- 2.45.2 From 5f556e127adaa7f4bdc5af0e0e282dee49f91158 Mon Sep 17 00:00:00 2001 From: zramsay Date: Wed, 15 Nov 2023 13:24:52 -0500 Subject: [PATCH 6/7] update osmosis readme --- .../data/stacks/osmosis/README.md | 34 +++++++++++++++++-- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/stack_orchestrator/data/stacks/osmosis/README.md b/stack_orchestrator/data/stacks/osmosis/README.md index 8ea6c195..d98909ed 100644 --- a/stack_orchestrator/data/stacks/osmosis/README.md +++ b/stack_orchestrator/data/stacks/osmosis/README.md @@ -1,7 +1,35 @@ # self-hosted osmosis +Build and deploy: +- 1) self-hosted gitea, +- 2) an ipfs node, +- 3) the osmosis front end, +- 4) a laconicd chain + + ``` -laconic-so --stack osmosis-front-end setup-repositories -laconic-so --stack osmosis-front-end build-containers -laconic-so --stack osmosis-front-end deploy up +# support image for the gitea package registry +laconic-so --stack build-support build-containers + +# todo: pre-run clone + +# clones and builds several things +laconic-so --stack osmosis setup-repositories +laconic-so --stack osmosis build-containers +laconic-so --stack osmosis deploy up ``` + +Setup a test chain: +``` +export CERC_NPM_REGISTRY_URL=https://git.vdb.to/api/packages/cerc-io/npm/ + +laconic-so --stack fixturenet-laconic-loaded setup-repositories --include git.vdb.to/cerc-io/laconicd,git.vdb.to/cerc-io/laconic-sdk,git.vdb.to/cerc-io/laconic-registry-cli,git.vdb.to/cerc-io/laconic-console + +laconic-so --stack fixturenet-laconic-loaded build-containers + +export LACONIC_HOSTED_ENDPOINT=http:// + +laconic-so --stack fixturenet-laconic-loaded deploy up +``` + +then `docker exec` into the `laconicd` container and either export the private key or create a new one and send funds to it. Use that private key for `LACONIC_HOTWALLET_KEY`. -- 2.45.2 From 88db2ff76626055869d0dfdaefd6f2489ca23913 Mon Sep 17 00:00:00 2001 From: Zach Date: Tue, 28 Nov 2023 12:10:03 -0500 Subject: [PATCH 7/7] Update stack.yml --- stack_orchestrator/data/stacks/osmosis/stack.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack_orchestrator/data/stacks/osmosis/stack.yml b/stack_orchestrator/data/stacks/osmosis/stack.yml index 76b6a4fe..b57d74ab 100644 --- a/stack_orchestrator/data/stacks/osmosis/stack.yml +++ b/stack_orchestrator/data/stacks/osmosis/stack.yml @@ -17,7 +17,7 @@ pods: path: gitea pre_start_command: "run-this-first.sh" post_start_command: "initialize-gitea.sh" - # todo, e.g., include cloning all of osmosis + # todo, e.g., mirroring all of osmosis repos: https://git.vdb.to/cerc-io/hosting/pulls/42 - name: act-runner repository: cerc-io/hosting path: act-runner -- 2.45.2