-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
38 lines (26 loc) · 982 Bytes
/
justfile
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
default:
@just --choose
build: zip build-docker
local-dev: zip repo-server poetry run-all
install:
kubectl apply -f easyaas/terraform_resource_controller/crds
zip:
local-testing/scripts/zip
build-docker:
docker build -t easyaas-registry.web:12345/easyaas:0.0.1 . && docker push easyaas-registry.web:12345/easyaas:0.0.1
cd docker/terragrunt-runner && docker build -t easyaas-registry.web:12345/terragrunt-runner . && docker push easyaas-registry.web:12345/terragrunt-runner
import-docker:
k3d image import --cluster easyaas easyaas-registry.web:12345/easyaas:0.0.1 easyaas-registry.web:12345/terragrunt-runner
create-k3d-cluster:
k3d cluster create --config local-testing/k3d/easyaas.yaml
repo-server:
cd local-testing && docker compose up -d
poetry:
poetry install
test:
PYTHONPATH=. poetry run pytest
run-controllers:
PYTHONPATH=. bin/run_controllers.sh
run-tfresource:
PYTHONPATH=. bin/run_terraform_controller.sh
run-all: run-controllers run-tfresource