Code Monkey home page Code Monkey logo

psibase-contributor's People

Contributors

james-mart avatar

Watchers

 avatar  avatar  avatar

psibase-contributor's Issues

Support worktree development

Currently if I create a git worktree within psibase-contributor, there are several "gotchas" that confuse development.

  1. If you want debugging support, you need to update the default .gdbinit at /root/
  2. All the default .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
  3. Environment variables are still the same so running "psitest," "psinode," or "psibase" from the worktree can default to running the tools from the default workspace if they have already been built there
  4. There is no docker volume mounted to /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.

Docs

Better docs on how to:

  • Turn off https
  • Customize external tools

MacOS: "Error: No such image: ghcr.io/gofractally/psibase-contributor:latest"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.