Git Product home page Git Product logo

devenv-with-docker's Introduction

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

devenv-with-docker's People

Contributors

ryul99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

devenv-with-docker's Issues

Handling user

  • file in container home folder must have same owner as host
  • link
    • Above link make user is added every time when container is started
  • User has root permission in container, so they can read or write to their home folder as root but they can't do that in host

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.