Skip to content

baz14/code-server-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

code-server-dev

Development environment container

Stack

File Structure

  • ./config - all configs

  • ./config/.ssh - SSH files.

    • .pub files - public ssh-key files
  • ./workspace - work directory

Update environment

Update docker-compose environment

- TZ=Europe/Berlin
- PASSWORD=12345
- GIT_USER_NAME=Your Name
- GIT_USER_EMAIL=test@test.test
- SSH_KEYS=github_prj1_20250414,bitbucket_prj2_20250414

Build container

  • update docker-compose

  • build "code-server-dev" container

    docker-compose up --build -d

Use container

  • run container

    docker start code-server-dev
  • configuring a Proxy for a WSL Server Port for Windows

    • 172.31.180.187 - ip addr WSL Server
    • 7777 - port
    netsh interface portproxy add v4tov4 listenport=7777 listenaddress=0.0.0.0 connectport=7777 connectaddress=172.31.180.187
  • open link - https://localhost:9000

  • clone a GIT repo using SSH key

    • github.com

      GIT_SSH_COMMAND="ssh -i /config/.ssh/github_prj1_20250414" \
      git clone <git@github.com>:youruser/myportfolio.git
    • bitbucket.com

      GIT_SSH_COMMAND="ssh -i /config/.ssh/bitbucket_prj2_20250414" \
      git clone <git@bitbucket.org>:youruser thebestprj.git

About

Development environment container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published