Skip to content

Commit b4c94f2

Browse files
Xavier MedranoXavier Medrano
authored andcommitted
make sure docker compose works in github actions
1 parent ee9dbb6 commit b4c94f2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: |
2020
mkdir -p data && touch data/requirements.txt
2121
cp .env.example .env
22-
docker-compose -f docker-compose.yml -f tests/docker-compose.yml run --rm app
22+
docker compose -f docker-compose.yml -f tests/docker-compose.yml run --rm app
2323
deploy:
2424
if:
2525
contains('

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ cp docsearch/local_settings.example.py docsearch/local_settings.dev.py
2727
Next, build containers:
2828

2929
```
30-
docker-compose build
30+
docker compose build
3131
```
3232

3333
Run the app:
3434

3535
```
36-
docker-compose up
36+
docker compose up
3737
```
3838

3939
The app will be available at http://localhost:8000. The database will be exposed
@@ -42,7 +42,7 @@ on port 32001.
4242
Create a superuser to view the application:
4343

4444
```
45-
docker-compose run --rm app ./manage.py createsuperuser
45+
docker compose run --rm app ./manage.py createsuperuser
4646
```
4747

4848
### Loading initial data
@@ -67,27 +67,27 @@ cp -R ./document-search-data/ ./document-search/data/
6767
Then, load initial data using GNU Make:
6868

6969
```
70-
docker-compose -f docker-compose.yml -f data/docker-compose.yml run --rm app make all
70+
docker compose -f docker-compose.yml -f data/docker-compose.yml run --rm app make all
7171
```
7272

7373
To create the search index, start by bringing up Solr in one shell:
7474

7575
```
76-
docker-compose up solr
76+
docker compose up solr
7777
```
7878

7979
Then, in another shell, run the `rebuild_index` command:
8080

8181
```
82-
docker-compose run --rm app ./manage.py rebuild_index
82+
docker compose run --rm app ./manage.py rebuild_index
8383
```
8484

8585
### Running tests
8686

8787
Run tests with Docker Compose:
8888

8989
```
90-
docker-compose -f docker-compose.yml -f tests/docker-compose.yml run --rm app
90+
docker compose -f docker-compose.yml -f tests/docker-compose.yml run --rm app
9191
```
9292

9393
## Deployment

scripts/after_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $VENV_DIR/bin/python $PROJECT_DIR/scripts/render_configs.py $DEPLOYMENT_ID $DEPL
7878
echo "DEPLOYMENT_ID='$DEPLOYMENT_ID'" > $PROJECT_DIR/docsearch/deployment.py
7979

8080
# Make sure Solr is running
81-
(docker ps | grep document-search-solr) || (cd $PROJECT_DIR && docker-compose up -d solr)
81+
(docker ps | grep document-search-solr) || (cd $PROJECT_DIR && docker compose up -d solr)
8282

8383

8484
# Add the virtualenv directory name to python command in the script

0 commit comments

Comments
 (0)