Skip to content

Commit

Permalink
feat(Docker): make shell
Browse files Browse the repository at this point in the history
Co-authored-by: Ikenna Omekam <ikenna@agoric.com>
  • Loading branch information
turadg committed Sep 27, 2023
1 parent a97528a commit 0ecffd2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/deployment/upgrade-test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ run_test:
run_bash:
$(RUN) --entrypoint /bin/bash $(REPOSITORY):$(dockerLabel)

shell:
docker exec -it `docker ps --latest --format json | jq -r .Names` bash

.PHONY: local_sdk agoric-upgrade-7-2 agoric-upgrade-8 agoric-upgrade-8-1 agoric-upgrade-9 agoric-upgrade-10 agoric-upgrade-11 agoric-upgrade-12 build build_test run
9 changes: 8 additions & 1 deletion packages/deployment/upgrade-test/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ make run

This will start a container with the output of chain start.

To get a shell use `docker exec -it`. For more info: https://phase2.github.io/devtools/common-tasks/ssh-into-a-container/
To get a shell: `make shell`

For more info: https://phase2.github.io/devtools/common-tasks/ssh-into-a-container/

The container and chain will halt once you detach from the session.

Expand Down Expand Up @@ -88,6 +90,11 @@ If when reattaching you get a log tail, you need to start a new TTY (with the co
docker exec -it sweet_edison bash
```

or just use this helper,
```
make shell
```


**To test GUI**

Expand Down

0 comments on commit 0ecffd2

Please sign in to comment.