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
* Replace all instances of yml with yaml
* Fix docker test cases
* Increase wait and add port to report output
Co-authored-by: Vitaly Korolev <[email protected]>
Co-authored-by: Vitaly Korolev <[email protected]>
Copy file name to clipboardexpand all lines: README.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -234,9 +234,9 @@ The credentials for the admin user are configured using Docker secrets, and are
234
234
## Single node MarkLogic Server on a single VM
235
235
Single node configurations are used primarily on a development machine with a single user.
236
236
237
-
Create these files on your host machine: `marklogic-centos.yml`, `mldb_admin_username.txt`, and `mldb_admin_password.txt`. Run example Docker commands from the same directory where the files created.
237
+
Create these files on your host machine: `marklogic-centos.yaml`, `mldb_admin_username.txt`, and `mldb_admin_password.txt`. Run example Docker commands from the same directory where the files created.
238
238
239
-
**marklogic-centos.yml**
239
+
**marklogic-centos.yaml**
240
240
241
241
```
242
242
#Docker compose file sample to setup single node cluster
@@ -291,7 +291,7 @@ volumes:
291
291
Once the files are ready, run this command to start the MarkLogic Server container.
292
292
293
293
```
294
-
$ docker-compose -f marklogic-centos.yml up -d
294
+
$ docker-compose -f marklogic-centos.yaml up -d
295
295
```
296
296
The previous command starts a container running MarkLogic Server named "bootstrap".
297
297
@@ -305,9 +305,9 @@ After the container is initialized, you can access the MarkLogic Query Console o
305
305
306
306
## Three node cluster on a single VM
307
307
308
-
The following is an example of a three-node MarkLogic server cluster created using Docker compose. Create these files on your host machine: `marklogic-cluster-centos.yml`, `mldb_admin_username.txt`, and `mldb_admin_password.txt`. Run example Docker commands from the same directory where the files created.
308
+
The following is an example of a three-node MarkLogic server cluster created using Docker compose. Create these files on your host machine: `marklogic-cluster-centos.yaml`, `mldb_admin_username.txt`, and `mldb_admin_password.txt`. Run example Docker commands from the same directory where the files created.
309
309
310
-
**marklogic-cluster-centos.yml**
310
+
**marklogic-cluster-centos.yaml**
311
311
312
312
```
313
313
#Docker compose file sample to setup a three node cluster
@@ -406,7 +406,7 @@ volumes:
406
406
Once the files have been created, run the following command to start the MarkLogic Server container:
407
407
408
408
```
409
-
$ docker-compose -f marklogic-cluster-centos.yml up -d
409
+
$ docker-compose -f marklogic-cluster-centos.yaml up -d
410
410
```
411
411
412
412
This command will start three Docker containers running MarkLogic Server, named "bootstrap_3n", "node2" and, "node3".
@@ -423,7 +423,7 @@ As in the previous single-node example, each node of the cluster can be accessed
423
423
424
424
### Using ENV for admin credentials in Docker compose
425
425
426
-
In the previous examples, Docker secrets files were used to specify admin credentials for the MarkLogic Server. If your environment prevents the use of Docker secrets, you can use environmental variables. This approach is less secure, but it is commonly used in development environments. This is not recommended for production environments. In order to use these environment variables in the Docker compose files, remove the secrets section at the end of the Docker compose yml file, and remove the secrets section in each node. Then replace the MARKLOGIC_ADMIN_USERNAME_FILE/MARKLOGIC_ADMIN_PASSWORD_FILE variables with MARKLOGIC_ADMIN_USERNAME/MARKLOGIC_ADMIN_PASSWORD and provide the appropriate values.
426
+
In the previous examples, Docker secrets files were used to specify admin credentials for the MarkLogic Server. If your environment prevents the use of Docker secrets, you can use environmental variables. This approach is less secure, but it is commonly used in development environments. This is not recommended for production environments. In order to use these environment variables in the Docker compose files, remove the secrets section at the end of the Docker compose yaml file, and remove the secrets section in each node. Then replace the MARKLOGIC_ADMIN_USERNAME_FILE/MARKLOGIC_ADMIN_PASSWORD_FILE variables with MARKLOGIC_ADMIN_USERNAME/MARKLOGIC_ADMIN_PASSWORD and provide the appropriate values.
427
427
428
428
Using Docker secrets, username and password information are secured when transmitting the sensitive data from Docker host to Docker containers. To prevent any attacks, the login information is not available as an environment variable. However, these values are stored in a text file and persisted in an in-memory file system inside the container. We recommend that you delete the Docker secrets information once the cluster is up and running.
429
429
@@ -443,7 +443,7 @@ Using Docker secrets, username and password information are secured when transmi
Copy file name to clipboardexpand all lines: test/README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@
3
3
There are two types of tests: Docker structure tests and Docker image tests. Both are started by the pipeline.
4
4
5
5
## Docker Structure Tests
6
-
We use [container-structure-test](https://github.com/GoogleContainerTools/container-structure-testhttps:/) to validate the structure of our Docker images. Configuration file structure-test.yml defines the test cases for validation of image metadata, exposed ports, and essential files.
6
+
We use [container-structure-test](https://github.com/GoogleContainerTools/container-structure-testhttps:/) to validate the structure of our Docker images. Configuration file structure-test.yaml defines the test cases for validation of image metadata, exposed ports, and essential files.
7
7
8
8
Here is an example command to run the test:
9
9
10
-
`container-structure-test test --config ./structure-test.yml --image ml-docker-dev.marklogic.com/marklogic/marklogic-server-centos:10.0-8.1-centos-1.0.0-ea2`
10
+
`container-structure-test test --config ./structure-test.yaml --image ml-docker-dev.marklogic.com/marklogic/marklogic-server-centos:10.0-8.1-centos-1.0.0-ea2`
0 commit comments