Skip to content

Commit c3a26ea

Browse files
authored
Merge pull request DSpace#3158 from pilasou/pilasou-docker-compose-syntax-change
Docker compose syntax changes
2 parents 6695cf4 + da8a73b commit c3a26ea

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

docker/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ A default/demo version of this image is built *automatically*.
5959

6060
## To refresh / pull DSpace images from Dockerhub
6161
```
62-
docker-compose -f docker/docker-compose.yml pull
62+
docker compose -f docker/docker-compose.yml pull
6363
```
6464

6565
## To build DSpace images using code in your branch
6666
```
67-
docker-compose -f docker/docker-compose.yml build
67+
docker compose -f docker/docker-compose.yml build
6868
```
6969

7070
## To start DSpace (REST and Angular) from your branch
7171

7272
This command provides a quick way to start both the frontend & backend from this single codebase
7373
```
74-
docker-compose -p d8 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d
74+
docker compose -p d8 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d
7575
```
7676

7777
Keep in mind, you may also start the backend by cloning the 'DSpace/DSpace' GitHub repository separately. See the next section.
@@ -86,14 +86,14 @@ _The system will be started in 2 steps. Each step shares the same docker network
8686

8787
From 'DSpace/DSpace' clone (build first as needed):
8888
```
89-
docker-compose -p d8 up -d
89+
docker compose -p d8 up -d
9090
```
9191

9292
NOTE: More detailed instructions on starting the backend via Docker can be found in the [Docker Compose instructions for the Backend](https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/README.md).
9393

9494
From 'DSpace/dspace-angular' clone (build first as needed)
9595
```
96-
docker-compose -p d8 -f docker/docker-compose.yml up -d
96+
docker compose -p d8 -f docker/docker-compose.yml up -d
9797
```
9898

9999
At this point, you should be able to access the UI from http://localhost:4000,
@@ -105,40 +105,40 @@ This allows you to run the Angular UI in *production* mode, pointing it at the d
105105
(https://demo.dspace.org/server/ or https://sandbox.dspace.org/server/).
106106

107107
```
108-
docker-compose -f docker/docker-compose-dist.yml pull
109-
docker-compose -f docker/docker-compose-dist.yml build
110-
docker-compose -p d8 -f docker/docker-compose-dist.yml up -d
108+
docker compose -f docker/docker-compose-dist.yml pull
109+
docker compose -f docker/docker-compose-dist.yml build
110+
docker compose -p d8 -f docker/docker-compose-dist.yml up -d
111111
```
112112

113113
## Ingest test data from AIPDIR
114114

115115
Create an administrator
116116
```
117-
docker-compose -p d8 -f docker/cli.yml run --rm dspace-cli create-administrator -e test@test.edu -f admin -l user -p admin -c en
117+
docker compose -p d8 -f docker/cli.yml run --rm dspace-cli create-administrator -e test@test.edu -f admin -l user -p admin -c en
118118
```
119119

120120
Load content from AIP files
121121
```
122-
docker-compose -p d8 -f docker/cli.yml -f ./docker/cli.ingest.yml run --rm dspace-cli
122+
docker compose -p d8 -f docker/cli.yml -f ./docker/cli.ingest.yml run --rm dspace-cli
123123
```
124124

125125
## Alternative Ingest - Use Entities dataset
126126
_Delete your docker volumes or use a unique project (-p) name_
127127

128128
Start DSpace with Database Content from a database dump
129129
```
130-
docker-compose -p d8 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f docker/db.entities.yml up -d
130+
docker compose -p d8 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f docker/db.entities.yml up -d
131131
```
132132

133133
Load assetstore content and trigger a re-index of the repository
134134
```
135-
docker-compose -p d8 -f docker/cli.yml -f docker/cli.assetstore.yml run --rm dspace-cli
135+
docker compose -p d8 -f docker/cli.yml -f docker/cli.assetstore.yml run --rm dspace-cli
136136
```
137137

138138
## End to end testing of the REST API (runs in GitHub Actions CI).
139139
_In this instance, only the REST api runs in Docker using the Entities dataset. GitHub Actions will perform CI testing of Angular using Node to drive the tests. See `.github/workflows/build.yml` for more details._
140140

141141
This command is only really useful for testing our Continuous Integration process.
142142
```
143-
docker-compose -p d8ci -f docker/docker-compose-ci.yml up -d
143+
docker compose -p d8ci -f docker/docker-compose-ci.yml up -d
144144
```

docker/docker-compose-rest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ services:
101101
# * First, run precreate-core to create the core (if it doesn't yet exist). If exists already, this is a no-op
102102
# * Second, copy configsets to this core:
103103
# Updates to Solr configs require the container to be rebuilt/restarted:
104-
# `docker-compose -p d7 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d --build dspacesolr`
104+
# `docker compose -p d7 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d --build dspacesolr`
105105
entrypoint:
106106
- /bin/bash
107107
- '-c'

0 commit comments

Comments
 (0)