- ng update
docker network create recipes-network
sudo mkdir -p /opt/mongodb/data
sudo chmod 777 /opt/mongodb/data
docker run -d --name mongodb -p 27017:27017 --network recipes-network -v /opt/mongodb/data:/data/db mongo:latest
- populate mongodb using Mongo Compass
docker run -d --name rest.recipes -p 9000:9000 --network recipes-network -v /opt/rest.recipes/logs:/opt/rest.recipes/logs -t craigfoote/rest.recipes:latest
curl -v -u craig -i 'http://localhost:9000/recipes?pageNumber=0&pageSize=10'
- change app version number in
package.json
ng build
ng serve
- http://localhost:4200
docker build -t ng.recipes .
docker run -d --name ng.recipes -p 9001:9001 --network recipes-network -t ng.recipes
- http://localhost:9001
- commit changes to git and create tag [version]
docker tag ng.recipes craigfoote/ng.recipes:[version]
docker tag ng.recipes craigfoote/ng.recipes:latest
docker push craigfoote/ng.recipes:[version]
docker push craigfoote/ng.recipes:latest