Skip to content

Commit

Permalink
Merge pull request #220 from silinternational/feature/actions-docker-…
Browse files Browse the repository at this point in the history
…compose

update docker-compose to docker compose
  • Loading branch information
jason-jackson authored Aug 2, 2024
2 parents d36ee7b + 2d5fb37 commit 5495587
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4

- name: Run tests
run: docker-compose -f action-services.yml run portal /data/run-tests.sh
run: docker compose -f action-services.yml run portal /data/run-tests.sh

- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand Down
50 changes: 25 additions & 25 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,75 +2,75 @@
start: web

api:
docker-compose up -d api
docker compose up -d api

apiaxle: redis api proxy axlesetup

axlesetup:
docker-compose up -d axlesetup
docker compose up -d axlesetup

bounce:
docker-compose up -d web
docker compose up -d web

clean:
docker-compose kill
docker-compose rm -f
docker compose kill
docker compose rm -f

composer:
docker-compose run --rm composer
docker compose run --rm composer

composerupdate:
docker-compose run --rm composerupdate
docker compose run --rm composerupdate

db:
docker-compose up -d db
docker compose up -d db

httpbin:
docker-compose up -d httpbin
docker compose up -d httpbin

phpmyadmin:
docker-compose up -d phpmyadmin
docker compose up -d phpmyadmin

phpunit:
docker-compose run --rm phpunit
docker compose run --rm phpunit

proxy:
docker-compose up -d proxy
docker compose up -d proxy

ps:
docker-compose ps
docker compose ps

redis:
docker-compose up -d redis
docker compose up -d redis

rmapiaxle:
docker-compose kill redis api proxy axlesetup
docker-compose rm -f redis api proxy axlesetup
docker compose kill redis api proxy axlesetup
docker compose rm -f redis api proxy axlesetup

rmdb:
docker-compose kill db
docker-compose rm -f db
docker compose kill db
docker compose rm -f db

rmtestdb:
docker-compose kill testdb
docker-compose rm -f testdb
docker compose kill testdb
docker compose rm -f testdb

test: testunit

testdb:
docker-compose up -d testdb
docker compose up -d testdb

testenv: composer rmtestdb testdb yiimigratetestdb rmapiaxle apiaxle web
@echo "\n\n../../vendor/bin/phpunit --testsuite DeveloperPortal\n"
docker-compose run --rm phpunit bash
docker compose run --rm phpunit bash

testunit: composer rmtestdb testdb yiimigratetestdb rmapiaxle apiaxle web phpunit

web: apiaxle db composer yiimigrate
docker-compose up -d web
docker compose up -d web

yiimigrate:
docker-compose run --rm yiimigrate
docker compose run --rm yiimigrate

yiimigratetestdb:
docker-compose run --rm yiimigratetestdb
docker compose run --rm yiimigratetestdb
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '2'
services:
data:
image: silintl/data-volume:latest
Expand Down

0 comments on commit 5495587

Please sign in to comment.