-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevbox.json
30 lines (30 loc) · 1021 Bytes
/
devbox.json
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
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.6/.schema/devbox.schema.json",
"packages": [
],
"shell": {
"scripts": {
"fix_cffi": [
"pipenv run pip -vvv install --upgrade --force-reinstall cffi"
],
"k8s": [
"printf '%s\n' $SSH_PRIVATE_KEY_ED25519_BASE64_ENCODED | base64 --decode > /code/id_ed25519",
"mkdir -p ~/.ssh && echo 'Host *\n StrictHostKeyChecking no' >> ~/.ssh/config && chmod 600 ~/.ssh/config",
"eval $(ssh-agent -s)",
"chmod 600 /code/id_ed25519",
"ssh-add /code/id_ed25519",
"devbox run pipenv run fastapi run"
],
"dev": [
"echo 'To install packages run: pipenv install'",
"echo 'After installing packages fix cffi install with: devbox run fix_cffi'",
"echo 'To start the app run: fastapi dev'",
"devbox run pipenv shell"
]
}
}
}