Public | Automated Build

Last pushed: 11 days ago
Short Description
Tau web application user interface
Full Description

angular-template

Installing

npm install

Running

Development

Build the web app for development and serve at http://localhost:3000 by running:

npm start

Production

Build the web app for production by running:

npm run deploy

Production-ready files will be output to the dist directory.

Serve the dist folder by running:

npm run serve <PORT>

runs node-static server, default port set to 9000 http://localhost:9000.

Docker | DC/OS Deployment

cp env.js $TARGET_ENV.js

Customize the values in $TARGET_ENV.js according to the deployment environment, then run

./build-docker-for-env.sh $TARGET_ENV

This script will build a Docker image of the web app using the settings in $TARGET_ENV.js and push a tagged image (appliedis/tau-ui:$TARGET_ENV) to Docker Hub.

The Docker image can be deployed to DC/OS using the marathon.json file at the root of this repository.

The Dockerfile uses a two-step build process to significantly reduce the size of the image. Node build steps (npm install and npm run deploy) are done in the first step. The second step copies just the dist directory into an nginx-alpine container and uses nginx to serve the app. This reduces the size of the Docker image from ~1.5 GB to ~30 MB.

Docker Pull Command
Owner
appliedis
Source Repository