-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yaml
More file actions
25 lines (25 loc) · 856 Bytes
/
taskfile.yaml
File metadata and controls
25 lines (25 loc) · 856 Bytes
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
version: 3
tasks:
up: docker compose up -d --force-recreate --remove-orphans {{.CLI_ARGS}}
down: docker compose down --remove-orphans --volumes {{.CLI_ARGS}}
logs: docker compose logs --follow --tail 0 {{.CLI_ARGS}}
recreate:
cmds:
- task: down
- task: up
certs:
desc: Copies certs from container to host
cmds:
- docker compose exec stepca sh -c "mkdir -p /tmp/exported && cp /home/step/certs/*.crt /tmp/exported"
- mkdir -p certs
- docker compose cp stepca:/tmp/exported/. ./certs
certs:install:
desc: Installs root_ca.crt to system trust store (Linux)
vars:
cert_path: /usr/local/share/ca-certificates/traefik-stepca-root-ca.crt
cmds:
- sudo cp certs/root_ca.crt {{.cert_path}}
- sudo update-ca-certificates
- sudo chmod 644 {{.cert_path}}
deps:
- certs