Giter VIP home page Giter VIP logo

nodede's Introduction

NodeDE

A Dockerfile for my own setup of NodeJS on an Ubuntu base.

Motivation

NodeJS is a little bit of a pain on Windows, and I wanted a dev environment that was consistent across multiple machines.

Typical Usage

$ docker pull lewisgj/nodede

or inside a fresh copy of this repo:

$ docker build . -t "lewisgj/NodeDE"

Then run:

$ docker run -v /some/local/dir:/home/developer/projects -it lewisgj/NodeDE 

to mount /some/local/dir inside the default user's home directory with everything set up.

Troubleshooting On Windows (10)

Getting this to work on Windows as I'd like is a pain as Powershell and CMD always use Windows line endings, but Bash running inside the container won't accept them.

As a workaround, it's possible to use the Windows Subsystem for Linux on Windows 10.

Instructions

  1. Install Docker For Windows (not Docker Toolbox)
  2. Install Windows Subsystem For Linux (*a.k.a BASH for Windows 10)
  3. Restart, Run bash, then apt-get install docker.io
  4. Modify ~/.bashrc, adding: export DOCKER_HOST=127.0.0.1:2375
  5. source ~/.bashrc
  6. Then just use your Bash session to do anything docker-related.

I assume this works because the Windows Subsystem sends different line-endings to Bash.

nodede's People

Contributors

lewisgj 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.