blob: db19a7191f7c133cdf83ed26f6db657e7b57abdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
DOCKER_COMPOSE := docker compose -f docker-compose.local.yml --env-file .env.local
.PHONY: up
up:
${DOCKER_COMPOSE} up -d
.PHONY: down
down:
${DOCKER_COMPOSE} down
.PHONY: build
build: build-assets
${DOCKER_COMPOSE} build
.PHONY: migrate
migrate: down
${DOCKER_COMPOSE} up -d albatross-db
${DOCKER_COMPOSE} run --rm --entrypoint="php bin/albctl migrate" albatross-jobworker
.PHONY: promote
promote: up
${DOCKER_COMPOSE} run --rm --entrypoint="php bin/albctl promote" albatross-jobworker
.PHONY: deluser
deluser: up
${DOCKER_COMPOSE} run --rm --entrypoint="php bin/albctl deluser" albatross-jobworker
.PHONY: sh
sh:
${DOCKER_COMPOSE} exec albatross-app sh
.PHONY: psql
psql:
${DOCKER_COMPOSE} exec albatross-db psql -U postgres
.PHONY: logs
logs:
${DOCKER_COMPOSE} logs
.PHONY: build-assets
build-assets: services/app/public/assets
docker build -t albatross-build-assets -f services/app/Dockerfile.frontend ./services/app
docker run --rm -v "$$(pwd)"/services/app/esbuild.mjs:/app/esbuild.mjs -v "$$(pwd)"/services/app/assets:/app/assets -v "$$(pwd)"/services/app/public/assets:/app/public/assets --env-file "$$(pwd)"/.env.local albatross-build-assets npm run build
rm -f services/app/public/assets/favicon.svg
cp services/app/assets/favicon.svg services/app/public/assets
services/app/public/assets:
@mkdir -p services/app/public/assets
|