From e1b6277a646898c5e67aeea00efeeb4fd64342d9 Mon Sep 17 00:00:00 2001 From: Marc Doerflinger Date: Wed, 12 Jun 2024 13:12:44 +0000 Subject: [PATCH] fix build and docs --- .github/workflows/docker.yml | 2 +- README.md | 34 +++++++++++++++++----------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 83443009..785474fe 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -18,6 +18,6 @@ jobs: - uses: actions/checkout@v4 # - run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u doerfli --password-stdin - uses: rlespinasse/github-slug-action@v2.x - - run: docker build --build-arg INSTANCE=mumbai -t ghcr.io/etherisc/staking-ui/staking-ui:${{ env.GITHUB_REF_SLUG }} . + - run: docker build --build-arg INSTANCE=amoy -t ghcr.io/etherisc/staking-ui/staking-ui:${{ env.GITHUB_REF_SLUG }} . # no push to ghcr.io for now # - run: docker push ghcr.io/etherisc/staking-ui/staking-ui:${{ env.GITHUB_REF_SLUG }} diff --git a/README.md b/README.md index 729bd87f..1b932476 100644 --- a/README.md +++ b/README.md @@ -105,49 +105,49 @@ git push dokku :main #### Initial instance setup -Replace application name (`goerli-setup`) with whatever fits your need. DNS is expected to be prepared in advance. +Replace application name (`amoy-setup`) with whatever fits your need. DNS is expected to be prepared in advance. ``` # create dokku application -dokku apps:create goerli-staking +dokku apps:create amoy-staking # add new domain and remove default domain -dokku domains:add goerli-staking staking.goerli.etherisc.com -dokku domains:remove goerli-staking goerli-staking.depeg-test.etherisc.com +dokku domains:add amoy-staking staking.amoy.etherisc.com +dokku domains:remove amoy-staking amoy-staking.depeg-test.etherisc.com # configure dokku docker build to load correct instance environment during build -dokku docker-options:add goerli-staking build --build-arg INSTANCE=goerli +dokku docker-options:add amoy-staking build --build-arg INSTANCE=amoy # set correct proxy ports for http and https -dokku proxy:ports-add goerli-staking http:80:3000 -dokku proxy:ports-add goerli-staking https:443:3000 -dokku proxy:ports-remove goerli-staking http:80:5000 +dokku ports:add amoy-staking http:80:3000 +dokku ports:add amoy-staking https:443:3000 +dokku ports:remove amoy-staking http:80:5000 # create redis service -dokku redis:create staking-mumbai-redis -i redis/redis-stack-server -I 7.2.0-v0 +dokku redis:create staking-amoy-redis -i redis/redis-stack-server -I 7.2.0-v0 -# now you need to manually enable redissearch and redisjson modules in the redis config (replace 'sstaking-mumbai-redis' below with correct service name) +# now you need to manually enable redissearch and redisjson modules in the redis config (replace 'staking-amoy-redis' below with correct service name) vi /var/lib/dokku/services/redis/staking-mumbai-redis/config/redis.conf # scroll down to the section 'MODULES' and paste the following two lines (remove the # in front of the lines) # loadmodule /opt/redis-stack/lib/redisearch.so # loadmodule /opt/redis-stack/lib/rejson.so # restart redis service -dokku redis:restart staking-mumbai-redis +dokku redis:restart staking-amoy-redis # link the redis service to the app -dokku redis:link staking-mumbai-redis mumbai-staking +dokku redis:link staking-amoy-redis amoy-staking # now push deployment via git -# 1. add new git remote 'git remote add dokku-goerli dokku@:goerli-staking' -# 2. 'git push dokku-goerli develop:main' +# 1. add new git remote 'git remote add dokku-amoy dokku@:amoy-staking' +# 2. 'git push dokku-amoy develop:main' # enable let's encrypt for https certificates -dokku letsencrypt:enable goerli-staking +dokku letsencrypt:enable amoy-staking # configure backend chain rpc url -dokku config:set goerli-depeg BACKEND_CHAIN_RPC_URL= -dokku config:set goerli-depeg HOSTNAME=0.0.0.0 +dokku config:set amoy-staking BACKEND_CHAIN_RPC_URL= +dokku config:set amoy-staking HOSTNAME=0.0.0.0 # app should be ready now - open in browser ```