forked from WikiEducationFoundation/WikiEduDashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
waypoint.hcl
47 lines (42 loc) · 1.19 KB
/
waypoint.hcl
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
project = "wikiedu"
runner {
enabled = true
data_source "git" {
url = "https://github.com/speedshop/WikiEduDashboard.git"
ref = "hashistack"
}
}
app "wikiedu-web" {
build {
use "pack" {
builder = "heroku/buildpacks:20"
buildpacks = [
"urn:cnb:registry:heroku/ruby",
"./apt-buildpack-0.1.0"
]
static_environment = {
"CURL_CONNECT_TIMEOUT" = "30"
"CURL_TIMEOUT" = "120"
# Rails prioritizes a SECRET_KEY_BASE from the ENV over one in secrets.yml
# The heroku ruby buildpack will generate a SECRET_KEY_BASE if one is not already present.
# So, we must provide the production SECRET_KEY_BASE to the build environment to make sure it doesn't
# get overwritten by a random one, and thereby invalidate sessions upon deployment.
"SECRET_KEY_BASE" = yamldecode(file(abspath("./config/application.yml"))).secret_key_base
}
}
registry {
use "docker" {
image = "docker.wikiedu.org/wikiedu-web"
tag = "latest"
}
}
}
deploy {
use "exec" {
command = ["nomad","run","<TPL>"]
template {
path = "${path.app}/job.hcl.tpl"
}
}
}
}