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
Copy file name to clipboardExpand all lines: documentation/docker_examples.md
+15-8
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,22 @@ To run the container based examples you will need the following requirements:
15
15
3. realpath (brew install coreutils on mac)
16
16
4. 16GB memory, 24GB+ for XL and XL-DR architectures
17
17
5. CPU with many cores (Tested with Core i7 6700)
18
+
6. If using docker desktop ensure resources are set (the default of 2GB ram and 1GB swap on mac are inadequate)
19
+
- As a reference, we tested with the below settings:
20
+
- Resources -> Advanced
21
+
- CPUs: 6
22
+
- Memory: 16 GB
23
+
- Swap: 2 GB
24
+

18
25
19
26
### Starting the example
20
-
We have provided a provision.sh script to help making these examples simple.
27
+
We have provided a install.sh script to help making these examples simple.
21
28
To use perform the following:
22
29
23
30
1. cd spec/docker
24
-
2. bash provision.sh
31
+
2. bash install.sh
25
32
3. select desired architecture when prompted (ie. extra-large-ha )
26
-
4. Wait 10-20 minutes for provisioning to complete
33
+
4. Wait 10-20 minutes for installing to complete
27
34
28
35
```
29
36
Please choose a PE architecture to build:
@@ -40,7 +47,7 @@ In order to stop and remove the containers you will need to perform the followin
40
47
3. docker-compose down
41
48
42
49
### Logging into the console
43
-
You can login to the PE Console after successful provision. However, first you will need to
50
+
You can login to the PE Console after successful install. However, first you will need to
44
51
grab the mapped port number of the PE console. The port numbers are mapped dynamically as to not
45
52
cause port conflicts on your system. To see how the ports are mapped you can view them via:
46
53
@@ -68,7 +75,7 @@ You can also bypass ssh and run docker exec or docker-compose exec
68
75
This will run an interactive bash shell in the running container.
69
76
70
77
### Upgrades
71
-
There is also a upgrade.sh script that is similar to the provision.sh script. This script will upgrade an already provisioned PE stack to the version specified in the update_params.json file.
78
+
There is also a upgrade.sh script that is similar to the install.sh script. This script will upgrade an already installed PE stack to the version specified in the update_params.json file.
72
79
73
80
## Attaching agent containers
74
81
Because we are using containers we can start up numerous container instances and attach them all to the same PE stack. In a matter of minutes you can easily attach hunders of new nodes to the PE stack (if resources allow). This is very useful for testing out scenarios involving different puppet versions or operating systems and even features like the orchestrator.
@@ -119,10 +126,10 @@ At this time we have not added documention for starting a container with systemd
119
126
120
127
121
128
### Other notes
122
-
1. The provision plan is not fully idempotent.
129
+
1. The install plan is not fully idempotent.
123
130
2. Some tasks may fail when run due to resource constraints.
124
-
3. You can rerun the provision.sh script on the same architecture without destroying the containers. This can sometimes complete the provision process successfully.
125
-
4. Rerunning the provision script may result in errors due to idempotency issues with tasks and plans.
131
+
3. You can rerun the install.sh script on the same architecture without destroying the containers. This can sometimes complete the install process successfully.
132
+
4. Rerunning the install script may result in errors due to idempotency issues with tasks and plans.
126
133
5. Please remember you are starting the equilivent of 3-6 VMs on a single system.
127
134
6. You can use top to view all the processes being run in the containers.
128
135
7. Docker will use the privilege mode option when running these examples (systemd support)
0 commit comments