benve / docker-yeoman

Docker file for base yeoman install

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yeoman

Docker image with base yeoman install, with a few generators pre-installed.

Usage

Scaffold web application using yeoman

docker run -it --rm -v $(pwd):/src cthulhu666/yeoman yo webapp [your-app-name]

See Asciicast

As a base image

Let's say we want a to run an angular app.

docker run -it --rm -v $(pwd):/src cthulhu666/yeoman yo angular [your-app-name]

Create Dockerfile inside your source directory:

FROM cthulhu666/yeoman

# Install compass
RUN sudo apt-get -yq update && \
    sudo apt-get -yq install ruby-compass

Find this snippet in your Gruntfile:

connect: {
  options: {
    port: 9000,
    // Change this to '0.0.0.0' to access the server from outside.
    hostname: 'localhost',
    livereload: 35729
  },

... and change 'localhost' to '0.0.0.0'

Build your image:

docker build -t [your-image-tag] .

Run it:

docker run -it -p 9000:9000 -p 35729:35729 --rm -v $(pwd):/src [your-image-tag] grunt serve

About

Docker file for base yeoman install

License:MIT License


Languages

Language:Shell 100.0%