You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 5, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: deployment/apcera.md
+14-11Lines changed: 14 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,8 @@ Apcera has tested Sock Shop on the Apcera Community Edition running single-cloud
11
11
12
12
### Packaging
13
13
14
-
The Sock Shop application is packaged and configured for Apcera using a [Multi-Resource Manifest file](https://docs.apcera.com/jobs/multi-resource-manifests/) called socksshop-docker.json which is similar to a Docker Compose file. Scripts are provided to make it easy to deploy all the services and a network from the manifest, to start and stop the services, and to delete everything that was deployed.
14
+
The Sock Shop application is packaged and configured for Apcera using a [Multi-Resource Manifest file](https://docs.apcera.com/jobs/multi-resource-manifests/) called sockshop-docker.json which is similar to a Docker Compose file. Scripts are provided to make it easy to deploy all the services and a network from the manifest, to start and stop the services, and to delete everything that was deployed.
15
+
15
16
16
17
### Pre-requisites
17
18
@@ -26,7 +27,7 @@ cd microservices-demo/deploy/apcera
26
27
-*(Optional)* If you are not an admin user in your Apcera cluster, you might need an Apcera administrator to import a [policy](https://docs.apcera.com/policy/introduction/) file to give you permission to create the Sock Shop services and network in your sandbox.
27
28
28
29
```
29
-
apc import policy socksShop.pol
30
+
apc import policy sockShop.pol
30
31
```
31
32
32
33
### Networking and Security
@@ -35,7 +36,7 @@ In this demo scenario, we create a single [virtual network](https://docs.apcera.
35
36
36
37
### Deployment
37
38
38
-
All of the Sock Shop services and the network are deployed to Apcera with a single script. However, you first need to target your cluster and login to it with APC. After that, just run the deploySocksShop.sh script.
39
+
All of the Sock Shop services and the network are deployed to Apcera with a single script. However, you first need to target your cluster and login to it with APC. After that, just run the deploySockShop.sh script.
After determining your targeted cluster and default namespace, this script does the following:
56
57
57
-
- It sets your current namespace to \<your_default_namespace\>/socksshop.
58
-
- It runs the "apc manifest deploy" command against the socksshop-docker.json manifest to create the services and the socksshop-network virtual network.
58
+
- It sets your current namespace to \<your_default_namespace\>/sockshop.
59
+
- It runs the "apc manifest deploy" command against the sockshop-docker.json manifest to create the services and the sockshop-network virtual network.
59
60
- It creates [job affinity tags](https://docs.apcera.com/jobs/job-affinity/) to make sure that each service that uses a database is deployed to the same Apcera instance manager as the database.
60
-
- It then runs the startSocksShop.sh script to start all of the Sock Shop services.
61
+
- It then runs the startSockShop.sh script to start all of the Sock Shop services.
62
+
61
63
62
64
Altogether, the script should take under two minutes to run.
63
65
@@ -70,21 +72,22 @@ Altogether, the script should take under two minutes to run.
70
72
71
73
### Testing
72
74
73
-
A load testing service, *user-sim*, is provided in the socksshop-docker.json manifest file. It will run when the manifest is deployed after a delay of 60 seconds. This is a load test provided to simulate user traffic to the application. You can view the results of the test in the *user-sim* log.
75
+
A load testing service, *user-sim*, is provided in the sockshop-docker.json manifest file. It will run when the manifest is deployed after a delay of 60 seconds. This is a load test provided to simulate user traffic to the application. You can view the results of the test in the *user-sim* log.
74
76
75
77
### Tracing
76
78
[Zipkin](http://zipkin.io/) has been written into some of the services. While the system is up you can view the traces at http://zipkin.\<your_cluster\>. Currently *orders* provides the most comprehensive traces.
77
79
78
80
### Starting and Stopping
79
81
80
-
You can use the startSocksShop.sh and stopSocksShop.sh scripts to start and stop all the services.
82
+
You can use the startSockShop.sh and stopSockShop.sh scripts to start and stop all the services.
81
83
82
84
### Cleaning up
83
85
84
-
Run the deleteSocksShop.sh script to delete the Sock Shop services and network.
86
+
Run the deleteSockShop.sh script to delete the Sock Shop services and network.
0 commit comments