-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: sync portal loop machine and
gnolang/gno
repo (#3173)
## Description This PR updates the outdated repo portal loop Dockerfile to align with the Dockerfile on the actual machine, that is more up to date. It also allows the portal loop to be able to pull and be loaded from state on `tx-exports`, using `make pull-exports`. <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests </details> --------- Co-authored-by: Sergio Maria Matone <[email protected]>
- Loading branch information
1 parent
db1d699
commit 139ba06
Showing
21 changed files
with
264 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FAUCET_MNEMONIC= | ||
|
||
COUNTER_MNEMONIC= | ||
|
||
CAPTCHA_SITE_KEY= | ||
CAPTCHA_SECRET_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/portalloopd | ||
/backups | ||
/traefik/letsencrypt | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,31 @@ | ||
all: docker.start | ||
PULL_GH_SCRIPT := ./scripts/pull-gh.sh | ||
|
||
all: docker.start.prod | ||
|
||
docker.start.prod: # Start the production portal loop | ||
docker compose -f docker-compose.yml -f docker-compose.override.prod.yml up -d | ||
|
||
docker.start: # Start the portal loop | ||
docker compose up -d | ||
|
||
docker.ci: # Start the portal loop for CI | ||
docker compose up -d portalloopd traefik | ||
|
||
docker.stop: # Stop the portal loop | ||
docker compose down | ||
docker rm -f $(docker ps -aq --filter "label=the-portal-loop") | ||
|
||
docker.build: # (re)Build snapshotter image | ||
docker compose build | ||
|
||
docker.pull: # Pull new images to update versions | ||
docker compose pull | ||
|
||
portalloopd.bash: # Get a bash command inside of the portalloopd container | ||
docker compose exec portalloopd bash | ||
|
||
switch: portalloopd.switch | ||
|
||
portalloopd.switch: # Force switch the portal loop with latest image | ||
docker compose exec portalloopd switch | ||
|
||
prepare-exports: | ||
chmod +x $(PULL_GH_SCRIPT) && ./$(PULL_GH_SCRIPT) | ||
|
||
pull-exports: docker.stop prepare-exports | ||
docker.start.prod | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
services: | ||
|
||
portalloopd: | ||
image: ghcr.io/gnolang/gno/portalloopd:latest | ||
ports: | ||
- 127.0.0.1:9090:9090 |
Oops, something went wrong.