diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-28 12:16:27 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-28 12:16:27 +0900 |
| commit | afc5f655c2b08c425f96a445de0aa90190d35c2d (patch) | |
| tree | 77bdf43245c3510946e39f8d1aefc8916d51a6dc | |
| parent | 035464702d136f80f4ffaec9dc520251c96f3b37 (diff) | |
| download | phperkaigi-2026-albatross-afc5f655c2b08c425f96a445de0aa90190d35c2d.tar.gz phperkaigi-2026-albatross-afc5f655c2b08c425f96a445de0aa90190d35c2d.tar.zst phperkaigi-2026-albatross-afc5f655c2b08c425f96a445de0aa90190d35c2d.zip | |
chore(dev): remove temporary containers
| -rw-r--r-- | Makefile.prod | 14 | ||||
| -rw-r--r-- | justfile | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/Makefile.prod b/Makefile.prod index 61fcf53..3b63aeb 100644 --- a/Makefile.prod +++ b/Makefile.prod @@ -40,15 +40,15 @@ psql-query: sqldef-dryrun: down ${DOCKER_COMPOSE} build db ${DOCKER_COMPOSE} up --wait db - ${DOCKER_COMPOSE} run --no-TTY tools psqldef --dry-run < ./backend/schema.sql - -.PHONY: asynq -asynq: - ${DOCKER_COMPOSE} up --wait db - ${DOCKER_COMPOSE} run tools go run github.com/hibiken/asynq/tools/asynq --uri task-db:6379 dash + ${DOCKER_COMPOSE} run --rm --no-TTY tools psqldef --dry-run < ./backend/schema.sql .PHONY: sqldef sqldef: down ${DOCKER_COMPOSE} build db ${DOCKER_COMPOSE} up --wait db - ${DOCKER_COMPOSE} run --no-TTY tools psqldef < ./backend/schema.sql + ${DOCKER_COMPOSE} run --rm --no-TTY tools psqldef < ./backend/schema.sql + +.PHONY: asynq +asynq: + ${DOCKER_COMPOSE} up --wait db + ${DOCKER_COMPOSE} run --rm tools go run github.com/hibiken/asynq/tools/asynq --uri task-db:6379 dash @@ -30,16 +30,16 @@ psql-query: sqldef-dryrun: down {{ docker_compose }} build db {{ docker_compose }} up --wait db - {{ docker_compose }} run --no-TTY tools psqldef --dry-run < ./backend/schema.sql + {{ docker_compose }} run --rm --no-TTY tools psqldef --dry-run < ./backend/schema.sql sqldef: down {{ docker_compose }} build db {{ docker_compose }} up --wait db - {{ docker_compose }} run --no-TTY tools psqldef < ./backend/schema.sql + {{ docker_compose }} run --rm --no-TTY tools psqldef < ./backend/schema.sql asynq: {{ docker_compose }} up --wait task-db - {{ docker_compose }} run tools go run github.com/hibiken/asynq/tools/asynq --uri task-db:6379 dash + {{ docker_compose }} run --rm tools go run github.com/hibiken/asynq/tools/asynq --uri task-db:6379 dash init: build initdb |
