Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dev environment for vscode/docker/gitpod #971

Merged
merged 13 commits into from
Jul 19, 2022
Merged

Added dev environment for vscode/docker/gitpod #971

merged 13 commits into from
Jul 19, 2022

Conversation

Cashmaney
Copy link
Member

@Cashmaney Cashmaney commented Jul 19, 2022

The dev environment sets up rust, go, sgx and clones the Secret Network repo. Also sets up enviroment variables so you can use make build-linux and just run ./secretd check-enclave or make go-test without any other set up. Available via ghcr.io/scrtlabs/secretnetwork-dev:latest.

Questions/thoughts:

  • Maybe the .devenviroment stuff should go in a different repo?

  • If you go docker-desktop -> vscode the IDE won't recognize the /home/vscode/SecretNetwork workdir by default (since that is specified in devcontainer.json). Is there a way via env var or something?

  • We can use this as a template for a docker for secret contract dev environment as well

  • Gitpod works, but different usernames for vscode/gitpod make this a bit hacky (couldn't find an elegant way to do it)

  • We could set up a self-hosted github on SGX machines to allow for hardware support, which could be cool

@Cashmaney Cashmaney changed the title Added dev environment for vscode/docker Added dev environment for vscode/docker/gitpod Jul 19, 2022
@Cashmaney Cashmaney merged commit ec89dd8 into master Jul 19, 2022
@Cashmaney Cashmaney deleted the devenv branch July 20, 2022 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant