Skip to content

Commit

Permalink
Setting up gitpod username with proper permissions on github
Browse files Browse the repository at this point in the history
Also, fuck you wavy lines logo
  • Loading branch information
Cashmaney committed Jul 19, 2022
1 parent 616c7bb commit a8ffdde
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
13 changes: 11 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Secret Network](logo.png)
![Secret Network](sn-logo.png)

<p align="center">
Secret Network secures the decentralized web
Expand All @@ -12,6 +12,13 @@ Mainnet is out! Get the latest release at [https://github.com/scrtlabs/SecretNet

[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)

# Getting Started (gitpod)

Click the button below to start a new development environment:

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/scrtlabs/SecretNetwork)


# Community

- Homepage: [https://scrt.network](https://scrt.network)
Expand Down
Binary file removed logo.png
Binary file not shown.
Binary file added sn-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a8ffdde

Please sign in to comment.