Public | Automated Build

Last pushed: 3 years ago
Short Description
Docker image for the tektronix-metacatalog web-app
Full Description

#Tektronix Metacatalog SANE project
This is a SANE project for a web-app that allows to link tektroniks oscillators models to their appearances in the annual tektroniks catalogs.

This project is the container for a Ember client and a Sails server and it's used to speed up development. Release and deploy is managed by the projects themselves.



If you haven't read or then go and do it. This project heavily depends on it.

You will need the following things properly installed on your computer.

Install sane and sails if they are not already on your machine:
npm install -g sails sane-cli

Clone SANE repo:
git clone

Clone server repo:
git clone server

Clone client repo:
git clone client

Install bower and npm dependencies, run this commands from the client folder:

cd client
npm install
bower install
cd ..


The server can be configured to either run on your local machine without any need to install mongodb or any other sql/nosql database on your system or in a docker container.

###Server local
To start sane on your local machine:

cd server
npm install
cd ..
sane up

Visit app at: http://localhost:4200/
Server API is served at: http://localhost:1337/api/v1/

The server can be debugged with node-debug:

cd server
node-debug app.js --save-live-edit
cd client
ember serve --proxy

Debug server at: `

###Server Docker
Make shure you have Docker and Docker Compose installed on your machine.

If the server is started with the --docker option it will launch three containers to simulate a production environment:

  • server is where sails gets executed and the local server directory gets mounted into it.
  • mongodb used to store the models
  • redis used to store sessions and ember-build index-files

It's important that the server/node_modules directory is empty before we start, so that docker will build the npm modules from scratch.

rm -r server/node_modules
sane up --docker

#Deploy a client locally to docker

Make shure your docker container are running.
Redirect to REDIS docker container:
boot2docker ssh -L 6379:localhost:6379

To deploy to your docker container (not yet thought through:):
Read this for more information:

cd client
ember deploy --environment=docker

Ignore the errors
ember deploy:index --environment docker

Search for * in the output console Uploaded revision: tektronix-metacatalog-client:<sha>*

Activate version:

ember deploy:activate --revision tektronix-metacatalog-client:<sha> --environment=docker
cp -R tmp/deploy-dist/ ../server/assets


cd ..
sane up --docker --skip-ember

Visit you app at: http://localhost:1337

Docker Pull Command