Last active
February 27, 2021 16:25
-
-
Save guilhermerodrigues680/2aa330cc99a0802096b7206896a640a8 to your computer and use it in GitHub Desktop.
Passos para subir o codercom/code-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl req \ | |
-newkey rsa:2048 -nodes -keyout cert.key \ | |
-x509 -days 365 -out cert.crt \ | |
-subj "/C=BR/ST=MG/L=BH/O=Global Security/OU=IT Department/CN=example.com" | |
mkdir -p ~/.config | |
docker run -it \ | |
-p 8080:8080 \ | |
-p 8081:8081 \ | |
-p 8082:8082 \ | |
-p 8083:8083 \ | |
-p 8084:8084 \ | |
-p 8085:8085 \ | |
-v "$HOME/.config:/home/coder/.config" \ | |
-v "$PWD:/home/coder/project" \ | |
-u "$(id -u):$(id -g)" \ | |
-e "DOCKER_USER=$USER" \ | |
-e "PASSWORD=password" \ | |
codercom/code-server:latest --cert /home/coder/project/cert.crt --cert-key /home/coder/project/cert.key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JAVASCRIPT
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
nvm install 14.16.0