Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

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 <[email protected]>
now, files from the host system will show up in the docker container's /home/yeoman

Signed-off-by: Ajay Ganapathy <[email protected]>
gave non-root user "yeoman" the correct BASH shell and set permissions on the work directory.

Signed-off-by: Ajay Ganapathy <[email protected]>
generator-mcfly-ng2 uses port 5000 to serve the web app, not port 3000

Signed-off-by: Ajay Ganapathy <[email protected]>
/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 <[email protected]>
generator-mcfly-ng2 does NOT use gulp. It uses webpack, so I removed gulp from the dockerfile

Signed-off-by: Ajay Ganapathy <[email protected]>
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 <[email protected]>
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 <[email protected]>
the container now comes with modernizr pre-installed

Signed-off-by: Ajay Ganapathy <[email protected]>
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