- Use Google Distroless images for all services (Go & Node.js). - Standardize documentation with [PROJECT-NAME].md. - Add .dockerignore and .gitignore to all projects. - Remove docker-compose.yml in favor of docker run instructions. - Fix Go version and dependency issues in observability, repo-integrations, and security-governance. - Add Podman support (fully qualified image names). - Update Dashboard to use Node.js static server for Distroless compatibility.
30 lines
700 B
Makefile
30 lines
700 B
Makefile
.PHONY: up down build logs
|
|
|
|
up:
|
|
docker-compose up -d
|
|
|
|
down:
|
|
docker-compose down
|
|
|
|
build:
|
|
docker-compose build
|
|
|
|
logs:
|
|
docker-compose logs -f
|
|
|
|
# SQLC
|
|
sqlc-generate:
|
|
docker run --rm -v "$(PWD):/src" -w /src sqlc/sqlc:1.25.0 generate
|
|
|
|
# Migrations
|
|
migrate-create:
|
|
@read -p "Enter migration name: " name; \
|
|
migrate create -ext sql -dir migrations -seq $$name
|
|
|
|
migrate-up:
|
|
migrate -path migrations -database "postgres://user:password@localhost:5432/repo_integrations?sslmode=disable" -verbose up
|
|
|
|
migrate-down:
|
|
migrate -path migrations -database "postgres://user:password@localhost:5432/repo_integrations?sslmode=disable" -verbose down
|
|
|
|
.PHONY: sqlc-generate migrate-create migrate-up migrate-down
|