Added sass support to dev container

This commit is contained in:
Philippe Pepos Petitclerc 2015-01-23 14:01:37 -05:00
parent 737cbb2a5f
commit 16c6c1d773
3 changed files with 17 additions and 4 deletions

View File

@ -1,7 +1,19 @@
all: build run
clean: kill remove
build:
sudo docker build -t adg-fe container
run:
sudo docker run -p 80:80 -p 8000:8000 -v ${PWD}:/opt/adagios-frontend -d -t adg-fe bash
interactive:
sudo docker run -p 80:80 -p 8000:8000 -v ${PWD}:/opt/adagios-frontend -i -t --name adg-fe adg-fe bash
daemon:
sudo docker run -p 80:80 -p 8000:8000 -v ${PWD}:/opt/adagios-frontend -d -t --name adg-fe adg-fe
kill:
sudo docker kill adg-fe
remove:
sudo docker rm adg-fe

View File

@ -2,8 +2,9 @@ FROM ubuntu:trusty
MAINTAINER Philippe Pepos Petitclerc <philippe.pepos-petitclerc@savoirfairelinux.com>
RUN apt-get update
RUN apt-get install -yq apache2 npm nodejs-legacy supervisor
RUN apt-get install -yq apache2 npm nodejs-legacy supervisor ruby
RUN npm install -g grunt-cli
RUN gem install sass
RUN mkdir -p /var/lock/apache2 /var/run/apache2 /var/run/sshd /var/log/supervisor
# Add supervisor config files

View File

@ -8,5 +8,5 @@ command=/bin/bash -c "source /etc/apache2/envvars && exec /usr/sbin/apache2 -DFO
command=/bin/bash -c "cd /opt/adagios-frontend && npm start"
[program:grunt]
command=/bin/bash -c "cd /opt/adagios-frontend && grunt"
command=/bin/bash -c "cd /opt/adagios-frontend && grunt sass && grunt"