Giter Club home page Giter Club logo

dev-in-a-box's Introduction

Dev in a box

This is my personal dev environment. It is based on ubuntu 20.04 and uses:

How to use this image

docker run --rm -it elafo/dev-in-a-box

Mounting workspaces

If you want to bind mount your workspace you can bind it to /workspace

docker run --rm -it -v $(PWD):/workspace elafo/dev-in-a-box

Supported languages via asdf

Versions are automatically installed if a .tool-versions file is in the root of the project like described here

Legacy files are supported when available

languaje legacy file
ruby .ruby-version
python .python-version
node .node-version
php N/A

You might want to use a volume to persist different versions between sessions:

docker run --rm -it -v asdf:/root/.asdf -v $(PWD):/workspace elafo/dev-in-a-box

Sharing your ssh credentials

You need to bind mount your ssh directory:

docker run --rm -it -v ~/.ssh:/root/.ssh elafo/dev-in-a-box

Using docker with host socket

You need to mount your host socket as usual:

docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock elafo/dev-in-a-box

Volumes

Path Description
/workspace main folder for developing
/root/.asdf asdf folder where shims are installed
/var/run/docker.sock docker socket
/root/.ssh ssh keys

Building the image

Args

Build arg Description Default value
ruby_version ruby version to be installed globally using rbenv none
node_version node version to be installed and used by default using nvm none
python_version python version to be installed and used globally using pyenv none
php_version php version to be installed and used globally using asf-php none

Example

docker build --build-arg ruby_version=2.6.0 --build-arg=node_version="lts" --build-arg python_version=3.8.0 --build-arg php_version=7.4.1 -t dev:local .

dev-in-a-box's People

Contributors

elafo avatar

Watchers

 avatar

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.