Merge pull request #408 from strukturag/ci-docker-compose

CI: Update building with docker-compose
This commit is contained in:
Joachim Bauch 2023-01-26 08:32:39 +01:00 committed by GitHub
commit 1e1da6f8dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 4 deletions

View file

@ -5,12 +5,14 @@ on:
branches: [ master ]
paths:
- '.github/workflows/docker-compose.yml'
- 'docker-compose.yml'
- '**/docker-compose.yml'
- 'docker/server/Dockerfile'
push:
branches: [ master ]
paths:
- '.github/workflows/docker-compose.yml'
- 'docker-compose.yml'
- '**/docker-compose.yml'
- 'docker/server/Dockerfile'
permissions:
contents: read
@ -22,8 +24,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Update docker-compose
run: |
curl -SL https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-linux-x86_64 -o docker-compose
chmod a+x docker-compose
- name: Pull Docker images
run: docker-compose -f docker/docker-compose.yml pull
run: ./docker-compose -f docker/docker-compose.yml pull
build:
runs-on: ubuntu-latest
@ -31,5 +38,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Update docker-compose
run: |
curl -SL https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-linux-x86_64 -o docker-compose
chmod a+x docker-compose
- name: Build Docker images
run: docker-compose -f docker/docker-compose.yml build
run: ./docker-compose -f docker/docker-compose.yml build

View file

@ -107,6 +107,11 @@ docker-compose build
docker-compose up -d
```
Please note that docker-compose v2 is required for building while most
distributions will ship older versions. You can download a recent version from
https://docs.docker.com/compose/install/
## Setup of NATS server
There is a detailed description on how to install and run the NATS server