Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/david-yu/docker-node-app
Containerized NodeJS example for Docker EE Standard and Advanced
https://github.com/david-yu/docker-node-app
dtr ucp
Last synced: 9 days ago
JSON representation
Containerized NodeJS example for Docker EE Standard and Advanced
- Host: GitHub
- URL: https://github.com/david-yu/docker-node-app
- Owner: david-yu
- License: mit
- Created: 2016-06-10T22:46:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-29T06:12:44.000Z (almost 4 years ago)
- Last Synced: 2024-05-28T16:37:28.457Z (6 months ago)
- Topics: dtr, ucp
- Language: CSS
- Homepage:
- Size: 726 KB
- Stars: 0
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker NodeJS Example with Docker EE 2.0
### Prerequisites
* Docker EE 2.0
* 17.06.3-ee-8 Docker Enterprise Engine
* UCP 3.0.0
* DTR 2.5.0### Setup UCP and DTR
Set up UCP and DTR per instructions found here: https://github.com/yongshin/vagrant-docker-ee-ubuntu.
### Create DTR repo
```
engineering/docker-node-app
```### Build Docker Image
```
export DTR_IPADDR=dtr.localgit clone [email protected]:yongshin/docker-node-app.git
cd ~/docker-node-app
docker build -t $DTR_IPADDR/engineering/docker-node-app .
docker push $DTR_IPADDR/engineering/docker-node-app
```### Start Example Application
#### Swarm Mode
The following stack command brings up two Swarm mode services and deploys it with Interlock enabled. Make sure you have the Routing Mesh enabled inside of UCP before deploying.```
# Source client bundle
docker stack deploy -c deploy/swarm/docker-compose.yml nodeapp
```#### Kubernetes
```
# Source client bundle
kubectl apply -f deploy/k8s/nodeapp-demo.yaml
```### Stop all
#### Swarm Mode
This removes the entire stack including services
```
docker stack rm nodeapp
```#### Kubernetes
This removes all of the K8S resources
```
kubectl delete -f deploy/k8s/nodeapp-demo.yaml
```### Run app locally for development purposes on Docker CE
This does not utilize Interlock and mainly leverages the internal Swarm Routing Mesh.
```
docker build -t yongshin/docker-node-app .
docker stack deploy -c deploy/swarm/docker-compose-local.yml nodeapp
```