diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 722627be5..e1fa4b9cd 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -172,4 +172,11 @@ WORKDIR ${USER_HOME}/SecretNetwork RUN rustup target add wasm32-unknown-unknown && rustup component add rust-src USER root # fuck you permissions -RUN chown $USERNAME:$USERNAME /go -R \ No newline at end of file +RUN chown $USERNAME:$USERNAME /go -R + +# '-l': see https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user +RUN useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod \ + # passwordless sudo for users in the 'sudo' group + && sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers \ + # To emulate the workspace-session behavior within dazzle build env + && mkdir /workspace && chown -hR gitpod:gitpod /workspace \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml index c37fec337..7f591cdbb 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,11 +1,20 @@ image: ghcr.io/scrtlabs/secretnetwork-dev:latest +tasks: + - name: set up permissions + command: | + sudo chown gitpod:gitpod /go -R + sudo chown gitpod:gitpod /usr/local/cargo -R + vscode: extensions: - - rust-lang.rust-analyzer + - rust-lang.rust - vadimcn.vscode-lldb - - mutantdino.resourcemonitor - serayuzgur.crates - bungcip.better-toml - golang.Go +jetbrains: + goland: + prebuilds: + version: stable \ No newline at end of file diff --git a/README.md b/README.md index e80c4248d..cdefdae36 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - +
Secret Network secures the decentralized web @@ -12,6 +12,13 @@ Mainnet is out! Get the latest release at [https://github.com/scrtlabs/SecretNet [](https://www.gnu.org/licenses/agpl-3.0) [](CODE_OF_CONDUCT.md) +# Getting Started (gitpod) + +Click the button below to start a new development environment: + +[](https://gitpod.io/#https://github.com/scrtlabs/SecretNetwork) + + # Community - Homepage: [https://scrt.network](https://scrt.network) diff --git a/logo.png b/logo.png deleted file mode 100644 index f1d85453e..000000000 Binary files a/logo.png and /dev/null differ diff --git a/sn-logo.png b/sn-logo.png new file mode 100644 index 000000000..64b0be806 Binary files /dev/null and b/sn-logo.png differ