Skip to content

Updated script to work with node 5.x.x, ubuntu trusty#3

Open
designbyajay wants to merge 15 commits intosilarsis:masterfrom
designbyajay:master
Open

Updated script to work with node 5.x.x, ubuntu trusty#3
designbyajay wants to merge 15 commits intosilarsis:masterfrom
designbyajay:master

Conversation

@designbyajay
Copy link

Hey there, first off thanks so much for making this docker file for yeoman! I was running into some serious permission issues getting it to work before this.

I updated this docker file so that the container runs the latest ubuntu and downloads the latest node. I also changed the generator to generator-mcfly-ng2. Try it out! It works great for my portable dev environment.

designbyajay and others added 15 commits February 16, 2016 19:59
changed the generator that gets installed from webapp and angular to mcfly-ng2, exposed port 3000 instead of 9000, and also added gulp and bower to installed tools

Signed-off-by: Ajay Ganapathy <lets.talk@designbyajay.com>
now, files from the host system will show up in the docker container's /home/yeoman

Signed-off-by: Ajay Ganapathy <lets.talk@designbyajay.com>
gave non-root user "yeoman" the correct BASH shell and set permissions on the work directory.

Signed-off-by: Ajay Ganapathy <lets.talk@designbyajay.com>
generator-mcfly-ng2 uses port 5000 to serve the web app, not port 3000

Signed-off-by: Ajay Ganapathy <lets.talk@designbyajay.com>
/usr directory now has RWX permissions for all users. This isn't a very secure solution, but it's a stopgap for now. Yeoman user can now run npm and install packages to /usr

Signed-off-by: Ajay Ganapathy <lets.talk@designbyajay.com>
generator-mcfly-ng2 does NOT use gulp. It uses webpack, so I removed gulp from the dockerfile

Signed-off-by: Ajay Ganapathy <Ajay@ajay-mbp.attlocal.net>
browsersync UI runs on port 3001, so I exposed the port to make it easy to configure it while it's running
installed generator-gulp-angular, gulp, and bower. Then, exposed ports 3000 and 3001 for browsersync
/usr is no longer accessible by any user. Instead, npm now installs global packages to the yeoman user's home directory
un-exposed port 9000, and exposed ports 3000 and 3001 since that's where the generator set up browsersync to serve
the README for this generator now includes all of the instructions you will need to set up this docker box.
# Conflicts:
#	Dockerfile
the readme was missing instructions for mapping the ports on the docker container to the host, so I added those instructions in, and included a helpful .gif

Signed-off-by: Ajay Ganapathy <lets.talk@designbyajay.com>
Source image ubuntu:latest failed upon building, so I changed the image to ubuntu:trusty. ubuntu:trusty is officially supported by node js

Signed-off-by: Ajay Ganapathy <lets.talk@designbyajay.com>
the container now comes with modernizr pre-installed

Signed-off-by: Ajay Ganapathy <lets.talk@designbyajay.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant