gofractally / psibase-contributor Goto Github PK
View Code? Open in Web Editor NEWUsed to run a full psibase core development environment
License: MIT License
Used to run a full psibase core development environment
License: MIT License
Currently if I create a git worktree within psibase-contributor, there are several "gotchas" that confuse development.
.gdbinit
at /root/
.vscode/*.json
files that are automatically created for you in the default workspace are not created in the worktree workspace, so you need to manually copy/rename them/root/psibase.worktrees
(the default worktree location), so rebuilding the container will wipe out worktrees.Probably other issues as well. If worktrees are intended to be supported, it should be relatively simple to create and use one.
Better docs on how to:
This happens when trying to reopen in devcontainer on arm-chip MacOS. Works fine on Windows with WSL.
[257 ms] Dev Containers 0.309.0 in VS Code 1.77.0 (7f329fe6c66b0f86ae1574c2911b681ad5a45d63).
[257 ms] Start: Run: git rev-parse --abbrev-ref --symbolic-full-name @{u}
[398 ms] Start: Run: git remote get-url origin
[607 ms] Start: Run: git remote show origin
[879 ms] Start: Run: git rev-parse --show-cdup
[909 ms] Start: Run: git rev-parse --abbrev-ref --symbolic-full-name @{u}
[918 ms] Start: Run: git cat-file -e origin/main:.devcontainer/devcontainer.json
[925 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/tseyt/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/tseyt/Desktop/Code/gofractally/psibase-contributor --log-level debug --log-format json --config /Users/tseyt/Desktop/Code/gofractally/psibase-contributor/.devcontainer/devcontainer.json --mount-workspace-git-root true
[1082 ms] @devcontainers/cli 0.51.1. Node.js v16.14.2. darwin 21.2.0 arm64.
[1082 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/tseyt/Desktop/Code/gofractally/psibase-contributor --filter label=devcontainer.config_file=/Users/tseyt/Desktop/Code/gofractally/psibase-contributor/.devcontainer/devcontainer.json
[1222 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/tseyt/Desktop/Code/gofractally/psibase-contributor
[23529 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[23680 ms] 1.41
[23692 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/tseyt/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/tseyt/Desktop/Code/gofractally/psibase-contributor --log-level debug --log-format json --config /Users/tseyt/Desktop/Code/gofractally/psibase-contributor/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[23826 ms] @devcontainers/cli 0.51.1. Node.js v16.14.2. darwin 21.2.0 arm64.
[23826 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/tseyt/Desktop/Code/gofractally/psibase-contributor --filter label=devcontainer.config_file=/Users/tseyt/Desktop/Code/gofractally/psibase-contributor/.devcontainer/devcontainer.json
[23939 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/tseyt/Desktop/Code/gofractally/psibase-contributor
[24066 ms] Start: Run: docker-compose version --short
[24376 ms] Docker Compose version: 1.29.2
[24376 ms] Start: Run: docker-compose -f /Users/tseyt/Desktop/Code/gofractally/psibase-contributor/.devcontainer/docker-compose.yml config
[24698 ms] services:
mkcert:
command:
- /bin/sh
- -c
- mkcert -install && mkcert psibase.127.0.0.1.sslip.io '*.psibase.127.0.0.1.sslip.io'
&& cp /root/.local/share/mkcert/rootCA.pem /root/.local/share/mkcert/rootCA.pem.crt
&& tail -f -n0 /etc/hosts
container_name: mkcert
image: vishnunair/docker-mkcert:latest
volumes:
- source: /Users/tseyt/Desktop/Code/gofractally/psibase-contributor/local-certs
target: /root/.local/share/mkcert
type: bind
psibase:
command: sleep infinity
container_name: psibase-contributor
environment:
VITE_SECURE_LOCAL_DEV: "true"
VITE_SECURE_PATH_TO_CERTS: /root/certs/
image: ghcr.io/gofractally/psibase-contributor:latest
platform: linux/arm64/v8
ports:
- published: 8080
target: 8080
volumes:
- source: psibase-contributor
target: /root/psibase
type: volume
- source: /Users/tseyt/Desktop/Code/gofractally/psibase-contributor/artifacts
target: /root/psibase/rust/psibase/boot-image
type: bind
- source: /Users/tseyt/Desktop/Code/gofractally/psibase-contributor/local-certs
target: /root/certs
type: bind
version: '3'
volumes:
psibase-contributor: {}
[24701 ms] Start: Run: docker inspect --type image ghcr.io/gofractally/psibase-contributor:latest
[24964 ms] Start: Run: docker-credential-desktop get
[25313 ms] Error fetching image details: No manifest found for ghcr.io/gofractally/psibase-contributor:latest.
[25314 ms] Start: Run: docker pull ghcr.io/gofractally/psibase-contributor:latest
latest: Pulling from gofractally/psibase-contributor
no matching manifest for linux/arm64/v8 in the manifest list entries
[26245 ms] []
[26245 ms] Error: No such image: ghcr.io/gofractally/psibase-contributor:latest
[26245 ms] Command failed: docker inspect --type image ghcr.io/gofractally/psibase-contributor:latest
[26248 ms] Exit code 1
[28519 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[28675 ms] 1.41
[28684 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/tseyt/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/tseyt/Desktop/Code/gofractally/psibase-contributor --log-level debug --log-format json --config /Users/tseyt/Desktop/Code/gofractally/psibase-contributor/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[28819 ms] @devcontainers/cli 0.51.1. Node.js v16.14.2. darwin 21.2.0 arm64.
[28819 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/tseyt/Desktop/Code/gofractally/psibase-contributor --filter label=devcontainer.config_file=/Users/tseyt/Desktop/Code/gofractally/psibase-contributor/.devcontainer/devcontainer.json
[28939 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/tseyt/Desktop/Code/gofractally/psibase-contributor
[29063 ms] Start: Run: docker-compose version --short
[29362 ms] Docker Compose version: 1.29.2
[29363 ms] Start: Run: docker-compose -f /Users/tseyt/Desktop/Code/gofractally/psibase-contributor/.devcontainer/docker-compose.yml config
[29675 ms] services:
mkcert:
command:
- /bin/sh
- -c
- mkcert -install && mkcert psibase.127.0.0.1.sslip.io '*.psibase.127.0.0.1.sslip.io'
&& cp /root/.local/share/mkcert/rootCA.pem /root/.local/share/mkcert/rootCA.pem.crt
&& tail -f -n0 /etc/hosts
container_name: mkcert
image: vishnunair/docker-mkcert:latest
volumes:
- source: /Users/tseyt/Desktop/Code/gofractally/psibase-contributor/local-certs
target: /root/.local/share/mkcert
type: bind
psibase:
command: sleep infinity
container_name: psibase-contributor
environment:
VITE_SECURE_LOCAL_DEV: "true"
VITE_SECURE_PATH_TO_CERTS: /root/certs/
image: ghcr.io/gofractally/psibase-contributor:latest
platform: linux/arm64/v8
ports:
- published: 8080
target: 8080
volumes:
- source: psibase-contributor
target: /root/psibase
type: volume
- source: /Users/tseyt/Desktop/Code/gofractally/psibase-contributor/artifacts
target: /root/psibase/rust/psibase/boot-image
type: bind
- source: /Users/tseyt/Desktop/Code/gofractally/psibase-contributor/local-certs
target: /root/certs
type: bind
version: '3'
volumes:
psibase-contributor: {}
[29677 ms] Start: Run: docker inspect --type image ghcr.io/gofractally/psibase-contributor:latest
[29883 ms] Start: Run: docker-credential-desktop get
[30226 ms] Error fetching image details: No manifest found for ghcr.io/gofractally/psibase-contributor:latest.
[30227 ms] Start: Run: docker pull ghcr.io/gofractally/psibase-contributor:latest
latest: Pulling from gofractally/psibase-contributor
no matching manifest for linux/arm64/v8 in the manifest list entries
[31107 ms] []
[31107 ms] Error: No such image: ghcr.io/gofractally/psibase-contributor:latest
[31107 ms] Command failed: docker inspect --type image ghcr.io/gofractally/psibase-contributor:latest
[31109 ms] Exit code 1
I want to be able to test this locally in dev, not only in the production image.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.