Public Repository

Last pushed: 2 years ago
Short Description
Google Web Starter Kit with Gulp, Node.JS, Python, git, Ruby and SASS on Ubuntu 14.04. In addition openssh-server is added to this container. The container is build with support for supervisord.
Full Description

General information

This repository is serving the Google Web Starter Kit with all necessary software (like gulp, node.js, ruby, SASS gem) as described on the Getting Started page.

It is set-up utilizing supervisord, so you can easily add additional services

Starting the container

To start the container, run

docker run -p 3000:3000 -p 23:22 -d svenseiler/googlewebstarterkit:v3

This will expose the port of the gulp server to port 3000 and add SSH connection to port 23.

For a more detailed description please take a look at my webpage

You can login with login root and the password “webstarterkit” and please note, that the SSH port is exposed to port 23 in the example above.

Versions

  • v1 / v2: Development versions, without SSH support
  • v3: Added SSH support and supervisord

Current issues - Please check

Currently there is an error with "gulp-uncss", but the general build is running through and working.

Full Dockerfile

# Dockerfile for setting up the Google Web Starter Kit
# Current version: v3
FROM ubuntu:14.04
MAINTAINER Sven Seiler <docker@seiler.it>
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:chris-lea/node.js
RUN apt-get update
RUN apt-get install -y nodejs
RUN npm install -g npm

RUN apt-get install -y ruby
RUN apt-get install -y git

## needed for GULP
RUN apt-get install -y libfreetype6 libfreetype6-dev
RUN apt-get install -y libfontconfig
RUN apt-get install -y python-pip
RUN pip install --user freetype-py==1.0

RUN gem install sass
RUN npm install gulp-uncss --save-dev
RUN npm install --global gulp
RUN mkdir /data
RUN cd /data && git clone https://github.com/google/web-starter-kit.git
RUN cd /data/web-starter-kit && npm install
#RUN cd /data/web-starter-kit/app && gulp
RUN apt-get update
RUN apt-get install -y openssh-server
RUN mkdir -p /var/run/sshd
RUN mkdir -p /var/log/supervisor
RUN echo 'root:webstarterkit' |chpasswd
#RUN /usr/sbin/sshd -D

RUN apt-get install -y supervisor
RUN touch /etc/supervisor/conf.d/supervisord.conf

RUN echo "[supervisord]" > /etc/supervisor/conf.d/supervisord.conf
RUN echo "nodaemon=true" >> /etc/supervisor/conf.d/supervisord.conf
RUN echo "" >> /etc/supervisor/conf.d/supervisord.conf
RUN echo "[program:sshd]" >> /etc/supervisor/conf.d/supervisord.conf
RUN echo "command=/usr/sbin/sshd -D" >> /etc/supervisor/conf.d/supervisord.conf
RUN echo "" >> /etc/supervisor/conf.d/supervisord.conf
RUN echo "[program:gulp]" >> /etc/supervisor/conf.d/supervisord.conf
RUN echo "directory = /data/web-starter-kit" >> /etc/supervisor/conf.d/supervisord.conf
RUN echo "command=/usr/bin/gulp serve" >> /etc/supervisor/conf.d/supervisord.conf

EXPOSE 22 80 3000

CMD ["/usr/bin/supervisord"]
Docker Pull Command
Owner
svenseiler

Comments (0)