Skip to content

user-separated develop environment with docker in SNUH CMI

License

Notifications You must be signed in to change notification settings

ryul99/DevEnv-with-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Make development environment on linux

making user-based development environment on linux with docker

Features

  1. Mounting user home folder (if using host_script)
    • User can use their home folder in container
  2. PID 1 is init process (if using host_script)
  3. Handling user with gosu
    • file in container home folder have same owner as host (initial password in container is snip)
    • you can read/write file as same user of host
  4. You just build gosu docker file after your develop environment docker image

How to run

for Normal Users

  1. Change base image of gosu/Dockerfile which you need
  2. Build gosu directory with docker build -t gosu ./gosu
  3. run container with script (user_script/docker_run.sh)

Script

  • docker_run: sudo docker_run.sh "image" "container-name-you-want'
  • docker_exec: sudo docker_exec.sh "container" "command"

for Server Admin

  1. add user or group to sudoers (Make this users only able to run docker_* with sudo)
    • This is for limit permission of added user.
  2. Build gosu directory with docker build -t gosu ./gosu for default image
  3. Use base directory for install essential packages if you need

About

user-separated develop environment with docker in SNUH CMI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published