Sign inSign up

stayfi/zsh-nodejs

By stayfi

•Updated over 9 years ago

Docker container for Javascript Dev with ZSH, Nodejs, Angular-cli, Bower, Grunt, Gulp and Yeoman

Image
0

954

stayfi/zsh-nodejs repository overview

⁠ZSH-NodeJS

Node-Development container.

This Node-Development environment is a ZSH shell with Yeoman, Bower, Gulp, Grunt-cli, Angular-cli.

Ports exposed:

  • 8000 : for Node server

⁠Installation

ZSH-NodeJS require docker.

First, run your docker terminal.

Then you will need to clone this repo :

$ git clone [email protected]:stayfi/zsh-nodejs.git
$ cd zsh-nodejs

You have to add shared folders to your docker virtual machine, in Oracle VM Virtual Box :

  • shared vm name "www" -> To your "www" root

You have to add the "bootlocal.sh" file to your virtual machine in this folder "/var/lib/boot2docker/" :

$ docker-machine ssh default
* "(assuming 'default' is your docker virtual machine name)"
$ sudo vi /var/lib/boot2docker/bootlocal.sh
* "paste those lines into this new file:"
mkdir -p /home/docker/zsh-nodejs/www
mount -t vboxsf www /home/docker/zsh-nodejs/www

$ sudo chmod +x /var/lib/boot2docker/bootlocal.sh

Restart your docker machine (assuming "default" is your docker virtual machine name):

$ docker-machine restart default

Build zsh-nodejs container :

$ docker build -t stayfi/zsh-nodejs zsh-nodejs

⁠Usage

Run zsh-nodejs by :

$ docker run -ti -p 8000:8000 -v /home/docker/zsh-nodejs/www:/var/www stayfi/zsh-nodejs /bin/zsh

You will have your zsh prompt.

⁠Yeoman
$ yo --version
⁠Angular cli
$ ng --version
⁠Bower
$ bower --version
⁠Gulp
$ gulp --version
⁠Grunt cli
$ grunt --version

⁠Credits

Stayfi B. - [email protected]⁠

⁠Versions

(Major.Minor[.Fix])

⁠1.0

First version, working.

⁠License

MIT license

Tag summary

Content type

Image

Digest

Size

181.2 MB

Last updated

over 9 years ago

docker pull stayfi/zsh-nodejs