Skip to content

Commit

Permalink
docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
ericminio committed Dec 20, 2024
1 parent 930e7f2 commit a94a056
Show file tree
Hide file tree
Showing 10 changed files with 163 additions and 163 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/env-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
- name: build
run: |
cd env-vars
docker-compose build
docker compose build
- name: test config
run: |
cd env-vars
docker-compose run --rm nginx nginx -t
docker compose run --rm nginx nginx -t
- name: start servers
run: |
cd env-vars
docker-compose up -d
docker compose up -d
- name: run tests
run: |
cd env-vars
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/njs-hello.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: njs-hello

on:
push:
branches:
- master
push:
branches:
- master

jobs:
test:
name: run tests
runs-on: ubuntu-latest
test:
name: run tests
runs-on: ubuntu-latest

steps:
- name: checkout code
uses: actions/checkout@v2
- name: start nginx
run: |
cd njs-hello
docker-compose up -d
- name: run tests
run: |
./support/test.sh ./about
steps:
- name: checkout code
uses: actions/checkout@v2
- name: start nginx
run: |
cd njs-hello
docker compose up -d
- name: run tests
run: |
./support/test.sh ./about
42 changes: 21 additions & 21 deletions .github/workflows/njs-modify-body.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: njs-modify-body

on:
push:
branches:
- master
push:
branches:
- master

jobs:
test:
name: run tests
runs-on: ubuntu-latest
test:
name: run tests
runs-on: ubuntu-latest

steps:
- name: checkout code
uses: actions/checkout@v2
- name: update /etc/hosts
run: |
sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts
cat /etc/hosts
- name: start servers
run: |
cd njs-modify-body
docker-compose up -d
- name: run tests
run: |
cd njs-modify-body
../support/test.sh ./about
steps:
- name: checkout code
uses: actions/checkout@v2
- name: update /etc/hosts
run: |
sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts
cat /etc/hosts
- name: start servers
run: |
cd njs-modify-body
docker compose up -d
- name: run tests
run: |
cd njs-modify-body
../support/test.sh ./about
50 changes: 25 additions & 25 deletions .github/workflows/njs-stub-or-proxy.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: njs-stub-or-proxy

on:
push:
branches:
- master
push:
branches:
- master

jobs:
test:
name: run tests
runs-on: ubuntu-latest
test:
name: run tests
runs-on: ubuntu-latest

steps:
- name: checkout code
uses: actions/checkout@v2
- name: update /etc/hosts
run: |
sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts
cat /etc/hosts
- name: test config
run: |
cd njs-stub-or-proxy
docker-compose run --rm nginx nginx -t
- name: start nginx
run: |
cd njs-stub-or-proxy
docker-compose up -d
- name: run tests
run: |
cd njs-stub-or-proxy
../support/test.sh ./about
steps:
- name: checkout code
uses: actions/checkout@v2
- name: update /etc/hosts
run: |
sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts
cat /etc/hosts
- name: test config
run: |
cd njs-stub-or-proxy
docker compose run --rm nginx nginx -t
- name: start nginx
run: |
cd njs-stub-or-proxy
docker compose up -d
- name: run tests
run: |
cd njs-stub-or-proxy
../support/test.sh ./about
66 changes: 33 additions & 33 deletions .github/workflows/payload-filter.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
name: payload-filter

on:
push:
branches:
- master
push:
branches:
- master

jobs:
test:
name: run tests
runs-on: ubuntu-latest
test:
name: run tests
runs-on: ubuntu-latest

steps:
- name: checkout code
uses: actions/checkout@v2
- name: update /etc/hosts
run: |
sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts
cat /etc/hosts
- name: create matching file
run: |
cd payload-filter
touch ./nginx/conf.d/matching
- name: build
run: |
cd payload-filter
docker-compose build
- name: test config
run: |
cd payload-filter
docker-compose run --rm nginx nginx -t
- name: start servers
run: |
cd payload-filter
docker-compose up -d
- name: run tests
run: |
cd payload-filter
../support/test.sh ./about
steps:
- name: checkout code
uses: actions/checkout@v2
- name: update /etc/hosts
run: |
sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts
cat /etc/hosts
- name: create matching file
run: |
cd payload-filter
touch ./nginx/conf.d/matching
- name: build
run: |
cd payload-filter
docker compose build
- name: test config
run: |
cd payload-filter
docker compose run --rm nginx nginx -t
- name: start servers
run: |
cd payload-filter
docker compose up -d
- name: run tests
run: |
cd payload-filter
../support/test.sh ./about
50 changes: 25 additions & 25 deletions .github/workflows/proxy-get-body.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: proxy-get-body

on:
push:
branches:
- master
push:
branches:
- master

jobs:
test:
name: run tests
runs-on: ubuntu-latest
test:
name: run tests
runs-on: ubuntu-latest

steps:
- name: checkout code
uses: actions/checkout@v2
- name: update /etc/hosts
run: |
sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts
cat /etc/hosts
- name: build
run: |
cd proxy-get-body
docker-compose build
- name: start servers
run: |
cd proxy-get-body
docker-compose up -d
- name: run tests
run: |
cd proxy-get-body
../support/test.sh ./about
steps:
- name: checkout code
uses: actions/checkout@v2
- name: update /etc/hosts
run: |
sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts
cat /etc/hosts
- name: build
run: |
cd proxy-get-body
docker compose build
- name: start servers
run: |
cd proxy-get-body
docker compose up -d
- name: run tests
run: |
cd proxy-get-body
../support/test.sh ./about
34 changes: 17 additions & 17 deletions .github/workflows/proxy_pass.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: proxy_pass

on:
push:
branches:
- master
push:
branches:
- master

jobs:
test:
name: run tests
runs-on: ubuntu-latest
test:
name: run tests
runs-on: ubuntu-latest

steps:
- name: checkout code
uses: actions/checkout@v2
- name: start nginx
run: |
cd proxy_pass
docker-compose up -d
- name: run tests
run: |
cd proxy_pass
../support/test.sh ./about
steps:
- name: checkout code
uses: actions/checkout@v2
- name: start nginx
run: |
cd proxy_pass
docker compose up -d
- name: run tests
run: |
cd proxy_pass
../support/test.sh ./about
34 changes: 17 additions & 17 deletions .github/workflows/proxy_set_header.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: proxy_set_header

on:
push:
branches:
- master
push:
branches:
- master

jobs:
test:
name: run tests
runs-on: ubuntu-latest
test:
name: run tests
runs-on: ubuntu-latest

steps:
- name: checkout code
uses: actions/checkout@v2
- name: start nginx
run: |
cd proxy_set_header
docker-compose up -d
- name: run tests
run: |
cd proxy_set_header
../support/test.sh ./about
steps:
- name: checkout code
uses: actions/checkout@v2
- name: start nginx
run: |
cd proxy_set_header
docker compose up -d
- name: run tests
run: |
cd proxy_set_header
../support/test.sh ./about
6 changes: 3 additions & 3 deletions .github/workflows/stub-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
- name: build
run: |
cd stub-json
docker-compose build
docker compose build
- name: test config
run: |
cd stub-json
docker-compose run --rm nginx nginx -t
docker compose run --rm nginx nginx -t
- name: start servers
run: |
cd stub-json
docker-compose up -d
docker compose up -d
- name: run tests
run: |
cd stub-json
Expand Down
Loading

0 comments on commit a94a056

Please sign in to comment.