Skip to content

Commit 7338f54

Browse files
authored
Merge pull request #308 from marklogic/feature/docker-fix
Updated Docker to use official images
2 parents f9a9321 + 955c67f commit 7338f54

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Defines environment variables for docker-compose.
22
# Can be overridden via e.g. `MARKLOGIC_TAG=latest-10.0 docker-compose up -d --build`.
3-
MARKLOGIC_TAG=11.2.0-centos-1.1.2
3+
MARKLOGIC_TAG=latest

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ described below, you must use Java 17 or higher.
77
# Setup
88

99
To begin, you need to deploy the test application in this project to MarkLogic. You can do so either on your own
10-
installation of MarkLogic, or you can use `docker-compose` to install MarkLogic, optionally as a 3-node cluster with
10+
installation of MarkLogic, or you can use `docker compose` to install MarkLogic, optionally as a 3-node cluster with
1111
a load balancer in front of it.
1212

13-
## Installing MarkLogic with docker-compose
13+
## Installing MarkLogic with docker compose
1414

15-
If you wish to use `docker-compose`, perform the following steps before deploying the test application.
15+
If you wish to use `docker compose`, perform the following steps before deploying the test application.
1616

1717
1. [Install Docker](https://docs.docker.com/get-docker/).
1818
2. Ensure that you don't have a MarkLogic instance running locally (if you do, you may run into port conflicts in
1919
the next step).
20-
3. Run `docker-compose up -d --build`.
20+
3. Run `docker compose up -d --build`.
2121

2222
The above will result in a new MarkLogic instance with a single node.
2323

2424
Alternatively, if you would like to test against a 3-node MarkLogic cluster with a load balancer in front of it,
25-
run `docker-compose -f docker-compose-3nodes.yaml up -d --build`.
25+
run `docker compose -f docker-compose-3nodes.yaml up -d --build`.
2626

2727
## Deploying the test application
2828

@@ -89,7 +89,7 @@ This project's `docker-compose-3nodes.yaml` file includes
8989
[Grafana, Loki, and promtail services](https://grafana.com/docs/loki/latest/clients/promtail/) for the primary reason of
9090
collecting MarkLogic log files and allowing them to be viewed and searched via Grafana.
9191

92-
Once you have run `docker-compose`, you can access Grafana at http://localhost:3000 . Follow these instructions to
92+
Once you have run `docker compose`, you can access Grafana at http://localhost:3000 . Follow these instructions to
9393
access MarkLogic logging data:
9494

9595
1. Click on the hamburger in the upper left hand corner and select "Explore", or simply go to

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ test {
9393
environment "mlHost", mlHost
9494
}
9595

96+
// See https://docs.gradle.org/current/userguide/jacoco_plugin.html .
9697
jacocoTestReport {
9798
dependsOn test
9899
reports {
@@ -104,8 +105,6 @@ sonar {
104105
properties {
105106
property "sonar.projectKey", "marklogic-spark"
106107
property "sonar.host.url", "http://localhost:9000"
107-
// See https://github.com/dependency-check/dependency-check-sonar-plugin for more information.
108-
property "sonar.dependencyCheck.jsonReportPath", "build/reports/dependency-check-report.json"
109108
}
110109
}
111110

docker-compose-3nodes.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: '3.8'
21
name: marklogic_spark_3nodes
32

43
services:
@@ -30,7 +29,7 @@ services:
3029
# by this host. Note that each MarkLogic host has its 8000-8002 ports exposed externally so that the apps on those
3130
# ports can each be accessed if needed.
3231
bootstrap_3n:
33-
image: "marklogicdb/marklogic-db:${MARKLOGIC_TAG}"
32+
image: "progressofficial/marklogic-db:${MARKLOGIC_TAG}"
3433
platform: linux/amd64
3534
container_name: bootstrap_3n
3635
hostname: bootstrap_3n.local
@@ -50,7 +49,7 @@ services:
5049
- internal_net
5150

5251
node2:
53-
image: "marklogicdb/marklogic-db:${MARKLOGIC_TAG}"
52+
image: "progressofficial/marklogic-db:${MARKLOGIC_TAG}"
5453
platform: linux/amd64
5554
container_name: node2
5655
hostname: node2.local
@@ -74,7 +73,7 @@ services:
7473
- internal_net
7574

7675
node3:
77-
image: "marklogicdb/marklogic-db:${MARKLOGIC_TAG}"
76+
image: "progressofficial/marklogic-db:${MARKLOGIC_TAG}"
7877
platform: linux/amd64
7978
container_name: node3
8079
hostname: node3.local

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: marklogic_spark
44
services:
55

66
marklogic:
7-
image: "marklogicdb/marklogic-db:${MARKLOGIC_TAG}"
7+
image: "progressofficial/marklogic-db:${MARKLOGIC_TAG}"
88
platform: linux/amd64
99
environment:
1010
- MARKLOGIC_INIT=true

0 commit comments

Comments
 (0)