Public Repository

Last pushed: a year ago
Short Description
Angular image for as-grails team
Full Description

This image is for as-grails team which contains angular frontend code.

Docker Pull Command
Owner
assupport

Comments (1)
assupport
2 years ago

Image v2.1 :
startUp.sh

#!/bin/bash
set -x
exec &2> /tmp/startup.log
export NODE_HOME=/opt/nodejs
export PATH=$PATH:$NODE_HOME/bin
GITREPO="git@gitlab.intelligrape.net:intelligrape/american-swan.git"
GIT="/usr/bin/git"
BRANCH="uat"
BOWER="/opt/nodejs/bin/bower"
NODE="/opt/nodejs/bin/node"
NPM="/opt/nodejs/bin/npm"
GULP="/opt/nodejs/bin/gulp"
cd /root/code/
rm -rf /root/code/*
$GIT clone $GITREPO
cd /root/code/american-swan/modules/as-frontend
rm -rf node_modules
$GIT checkout $BRANCH
$GIT pull origin $BRANCH
$NPM install
$BOWER install --allow-root
$GULP build
$NODE app.js &
tail -f /tmp/startup.log

Dockerfile
FROM assupport/angular:v1.0
MAINTAINER AS-Support <as-support[at]intelligrape[DOT]com>
ADD startUp.sh /root/startUp.sh
RUN chmod +x /root/startUp.sh
EXPOSE 7766
CMD ["/root/startUp.sh"]