-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrailpack-plan.json
More file actions
163 lines (163 loc) · 3.46 KB
/
Copy pathrailpack-plan.json
File metadata and controls
163 lines (163 loc) · 3.46 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
{
"steps": [
{
"name": "packages:apt:build",
"inputs": [
{
"image": "ghcr.io/railwayapp/railpack-builder:latest"
}
],
"commands": [
{
"cmd": "sh -c 'apt-get update \u0026\u0026 apt-get install -y python3-dev'",
"customName": "install apt packages: python3-dev"
}
],
"caches": [
"apt",
"apt-lists"
]
},
{
"name": "packages:mise",
"inputs": [
{
"step": "packages:apt:build"
}
],
"commands": [
{
"path": "/mise/shims"
},
{
"path": "/etc/mise/config.toml",
"name": "mise.toml",
"customName": "create mise config"
},
{
"cmd": "sh -c 'mise trust -a \u0026\u0026 mise install'",
"customName": "install mise packages: python"
}
],
"assets": {
"mise.toml": "[tools]\n [tools.python]\n version = \"3.11.12\"\n"
},
"variables": {
"MISE_CACHE_DIR": "/mise/cache",
"MISE_CONFIG_DIR": "/mise",
"MISE_DATA_DIR": "/mise",
"MISE_INSTALLS_DIR": "/mise/installs",
"MISE_SHIMS_DIR": "/mise/shims"
}
},
{
"name": "install",
"inputs": [
{
"step": "packages:mise"
}
],
"commands": [
{
"cmd": "python -m venv /app/.venv"
},
{
"path": "/app/.venv/bin"
},
{
"src": "requirements.txt",
"dest": "requirements.txt"
},
{
"cmd": "pip install -r requirements.txt"
}
],
"variables": {
"PIP_CACHE_DIR": "/opt/pip-cache",
"PIP_DEFAULT_TIMEOUT": "100",
"PIP_DISABLE_PIP_VERSION_CHECK": "1",
"PYTHONDONTWRITEBYTECODE": "1",
"PYTHONFAULTHANDLER": "1",
"PYTHONHASHSEED": "random",
"PYTHONUNBUFFERED": "1",
"VIRTUAL_ENV": "/app/.venv"
},
"caches": [
"pip"
]
},
{
"name": "build",
"inputs": [
{
"step": "install"
}
],
"commands": [
{
"src": ".",
"dest": "."
}
],
"secrets": [
"*"
]
}
],
"caches": {
"apt": {
"directory": "/var/cache/apt",
"type": "locked"
},
"apt-lists": {
"directory": "/var/lib/apt/lists",
"type": "locked"
},
"pip": {
"directory": "/opt/pip-cache",
"type": "shared"
}
},
"deploy": {
"base": {
"image": "ghcr.io/railwayapp/railpack-runtime:latest"
},
"inputs": [
{
"step": "packages:mise",
"include": [
"/mise/shims",
"/mise/installs",
"/usr/local/bin/mise",
"/etc/mise/config.toml",
"/root/.local/state/mise"
]
},
{
"step": "build",
"include": [
"/app/.venv"
]
},
{
"step": "build",
"include": [
"."
],
"exclude": [
".venv"
]
}
],
"startCommand": "python manage.py migrate \u0026\u0026 gunicorn djangotutorial.wsgi:application",
"variables": {
"PIP_DEFAULT_TIMEOUT": "100",
"PIP_DISABLE_PIP_VERSION_CHECK": "1",
"PORT": "4300",
"PYTHONDONTWRITEBYTECODE": "1",
"PYTHONFAULTHANDLER": "1",
"PYTHONHASHSEED": "random",
"PYTHONUNBUFFERED": "1"
}
}
}