Merge branch 'master' into vlang
This commit is contained in:
commit
11df846f5d
6
Makefile
6
Makefile
|
@ -52,8 +52,8 @@ ifeq ($(I),lang)
|
||||||
@: $${L}
|
@: $${L}
|
||||||
node tools/build-lang-image.js --lang $(L)
|
node tools/build-lang-image.js --lang $(L)
|
||||||
else ifeq ($(I),ubuntu)
|
else ifeq ($(I),ubuntu)
|
||||||
docker pull ubuntu:rolling
|
docker pull ubuntu:21.04
|
||||||
hash="$$(docker inspect ubuntu:rolling -f '{{ .Id }}' | sha1sum | awk '{ print $$1 }')"; echo "FROM ubuntu:rolling" | docker build --label riju.image-hash="$${hash}" -t riju:$(I) -
|
hash="$$(docker inspect ubuntu:21.04 -f '{{ .Id }}' | sha1sum | awk '{ print $$1 }')"; echo "FROM ubuntu:21.04" | docker build --label riju.image-hash="$${hash}" -t riju:$(I) -
|
||||||
else ifneq (,$(filter $(I),admin ci))
|
else ifneq (,$(filter $(I),admin ci))
|
||||||
docker build . -f docker/$(I)/Dockerfile -t riju:$(I) $(NO_CACHE)
|
docker build . -f docker/$(I)/Dockerfile -t riju:$(I) $(NO_CACHE)
|
||||||
else
|
else
|
||||||
|
@ -73,7 +73,7 @@ else
|
||||||
SHELL_PORTS :=
|
SHELL_PORTS :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SHELL_ENV := -e Z -e CI -e TEST_PATIENCE -e TEST_CONCURRENCY -e TEST_TIMEOUT_SECS -e FATHOM_SITE_ID
|
SHELL_ENV := -e Z -e CI -e TEST_PATIENCE -e TEST_CONCURRENCY -e TEST_TIMEOUT_SECS -e ANALYTICS_TAG
|
||||||
|
|
||||||
ifeq ($(I),lang)
|
ifeq ($(I),lang)
|
||||||
LANG_TAG := lang-$(L)
|
LANG_TAG := lang-$(L)
|
||||||
|
|
|
@ -15,7 +15,10 @@ const host = process.env.HOST || "localhost";
|
||||||
const port = parseInt(process.env.PORT || "") || 6119;
|
const port = parseInt(process.env.PORT || "") || 6119;
|
||||||
const tlsPort = parseInt(process.env.TLS_PORT || "") || 6120;
|
const tlsPort = parseInt(process.env.TLS_PORT || "") || 6120;
|
||||||
const useTLS = process.env.TLS ? true : false;
|
const useTLS = process.env.TLS ? true : false;
|
||||||
const fathomSiteId = process.env.FATHOM_SITE_ID || "";
|
const analyticsTag = (process.env.ANALYTICS_TAG || "").replace(
|
||||||
|
/^'(.+)'$/,
|
||||||
|
"$1"
|
||||||
|
);
|
||||||
|
|
||||||
const langs = await langsPromise;
|
const langs = await langsPromise;
|
||||||
const app = express();
|
const app = express();
|
||||||
|
@ -27,7 +30,7 @@ app.get("/", (_, res) => {
|
||||||
if (Object.keys(langs).length > 0) {
|
if (Object.keys(langs).length > 0) {
|
||||||
res.render(path.resolve("frontend/pages/index"), {
|
res.render(path.resolve("frontend/pages/index"), {
|
||||||
langs,
|
langs,
|
||||||
fathomSiteId,
|
analyticsTag,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
res
|
res
|
||||||
|
@ -61,7 +64,7 @@ app.get("/:lang", (req, res) => {
|
||||||
}
|
}
|
||||||
res.render(path.resolve("frontend/pages/app"), {
|
res.render(path.resolve("frontend/pages/app"), {
|
||||||
config: langs[lang],
|
config: langs[lang],
|
||||||
fathomSiteId,
|
analyticsTag,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
app.use("/css", express.static("frontend/styles"));
|
app.use("/css", express.static("frontend/styles"));
|
||||||
|
|
|
@ -263,9 +263,10 @@ enable all the fun CloudFlare options you'd like.
|
||||||
|
|
||||||
## Set up analytics (optional)
|
## Set up analytics (optional)
|
||||||
|
|
||||||
Sign up for Fathom Analytics, enter your domain name, and get a site
|
Sign up for Fathom Analytics, enter your domain name, and get a tag
|
||||||
ID. Set this as `FATHOM_SITE_ID` in your `.env` file, and build and
|
for embedding. Set this as `ANALYTICS_TAG` in your `.env` file (use
|
||||||
roll out a new web AMI.
|
single quoting, as Makefile handling of quotes is a bit nonstandard),
|
||||||
|
and build and roll out a new web AMI.
|
||||||
|
|
||||||
## Set up monitoring (optional)
|
## Set up monitoring (optional)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM ubuntu:rolling
|
FROM ubuntu:21.04
|
||||||
|
|
||||||
COPY docker/admin/install.bash /tmp/
|
COPY docker/admin/install.bash /tmp/
|
||||||
RUN /tmp/install.bash
|
RUN /tmp/install.bash
|
||||||
|
|
|
@ -19,7 +19,7 @@ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
||||||
ubuntu_ver="$(lsb_release -rs)"
|
ubuntu_ver="$(lsb_release -rs)"
|
||||||
ubuntu_name="$(lsb_release -cs)"
|
ubuntu_name="$(lsb_release -cs)"
|
||||||
|
|
||||||
node_repo="$(curl -sS https://deb.nodesource.com/setup_current.x | grep NODEREPO= | grep -Eo 'node_[0-9]+\.x' | head -n1)"
|
node_repo="$(curl -sS https://deb.nodesource.com/setup_16.x | grep NODEREPO= | grep -Eo 'node_[0-9]+\.x' | head -n1)"
|
||||||
|
|
||||||
tee -a /etc/apt/sources.list.d/custom.list >/dev/null <<EOF
|
tee -a /etc/apt/sources.list.d/custom.list >/dev/null <<EOF
|
||||||
deb [arch=amd64] https://apt.releases.hashicorp.com ${ubuntu_name} main
|
deb [arch=amd64] https://apt.releases.hashicorp.com ${ubuntu_name} main
|
||||||
|
@ -57,8 +57,9 @@ skopeo
|
||||||
ssh
|
ssh
|
||||||
strace
|
strace
|
||||||
sudo
|
sudo
|
||||||
tmux
|
|
||||||
terraform
|
terraform
|
||||||
|
tmux
|
||||||
|
tree
|
||||||
unzip
|
unzip
|
||||||
uuid-runtime
|
uuid-runtime
|
||||||
vim
|
vim
|
||||||
|
|
|
@ -15,7 +15,7 @@ curl -sSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
||||||
ubuntu_ver="$(lsb_release -rs)"
|
ubuntu_ver="$(lsb_release -rs)"
|
||||||
ubuntu_name="$(lsb_release -cs)"
|
ubuntu_name="$(lsb_release -cs)"
|
||||||
|
|
||||||
node_repo="$(curl -sS https://deb.nodesource.com/setup_current.x | grep NODEREPO= | grep -Eo 'node_[0-9]+\.x' | head -n1)"
|
node_repo="$(curl -sS https://deb.nodesource.com/setup_16.x | grep NODEREPO= | grep -Eo 'node_[0-9]+\.x' | head -n1)"
|
||||||
|
|
||||||
tee -a /etc/apt/sources.list.d/custom.list >/dev/null <<EOF
|
tee -a /etc/apt/sources.list.d/custom.list >/dev/null <<EOF
|
||||||
deb https://deb.nodesource.com/${node_repo} ${ubuntu_name} main
|
deb https://deb.nodesource.com/${node_repo} ${ubuntu_name} main
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM ubuntu:rolling
|
FROM ubuntu:21.04
|
||||||
|
|
||||||
COPY docker/ci/install.bash /tmp/
|
COPY docker/ci/install.bash /tmp/
|
||||||
RUN /tmp/install.bash
|
RUN /tmp/install.bash
|
||||||
|
|
|
@ -23,7 +23,7 @@ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
||||||
|
|
||||||
ubuntu_name="$(lsb_release -cs)"
|
ubuntu_name="$(lsb_release -cs)"
|
||||||
|
|
||||||
node_repo="$(curl -sS https://deb.nodesource.com/setup_current.x | grep NODEREPO= | grep -Eo 'node_[0-9]+\.x' | head -n1)"
|
node_repo="$(curl -sS https://deb.nodesource.com/setup_16.x | grep NODEREPO= | grep -Eo 'node_[0-9]+\.x' | head -n1)"
|
||||||
|
|
||||||
tee -a /etc/apt/sources.list.d/custom.list >/dev/null <<EOF
|
tee -a /etc/apt/sources.list.d/custom.list >/dev/null <<EOF
|
||||||
deb [arch=amd64] https://deb.nodesource.com/${node_repo} ${ubuntu_name} main
|
deb [arch=amd64] https://deb.nodesource.com/${node_repo} ${ubuntu_name} main
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
Riju :: $106.77
|
||||||
|
EC2 :: $81.38
|
||||||
|
Data Transfer :: $0.03
|
||||||
|
EBS Snapshot :: $2.36
|
||||||
|
EBS Volume :: $28.57
|
||||||
|
EBS Volume :: $28.57
|
||||||
|
gp2 :: $1.07
|
||||||
|
gp3 :: $27.49
|
||||||
|
Instance :: $50.43
|
||||||
|
t3.large :: $23.05
|
||||||
|
t3.medium :: $27.38
|
||||||
|
ECR :: $5.14
|
||||||
|
Storage :: $5.14
|
||||||
|
ELB :: $20.14
|
||||||
|
Data Transfer :: $0.38
|
||||||
|
LCUs :: $0.07
|
||||||
|
Load Balancer :: $19.68
|
||||||
|
S3 :: $0.11
|
|
@ -0,0 +1,17 @@
|
||||||
|
Riju :: $133.50
|
||||||
|
EC2 :: $108.22
|
||||||
|
Data Transfer :: $0.02
|
||||||
|
EBS Snapshot :: $3.79
|
||||||
|
EBS Volume :: $27.58
|
||||||
|
EBS Volume :: $27.58
|
||||||
|
gp2 :: $1.04
|
||||||
|
gp3 :: $26.55
|
||||||
|
Instance :: $76.82
|
||||||
|
t3.large :: $76.82
|
||||||
|
ECR :: $5.34
|
||||||
|
Storage :: $5.34
|
||||||
|
ELB :: $19.83
|
||||||
|
Data Transfer :: $0.69
|
||||||
|
LCUs :: $0.10
|
||||||
|
Load Balancer :: $19.04
|
||||||
|
S3 :: $0.11
|
|
@ -22,8 +22,8 @@
|
||||||
window.rijuConfig = <%- JSON.stringify(config) %>;
|
window.rijuConfig = <%- JSON.stringify(config) %>;
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/app.js" defer></script>
|
<script src="/js/app.js" defer></script>
|
||||||
<% if (fathomSiteId) { %>
|
<% if (analyticsTag) { %>
|
||||||
<script src="https://cdn.usefathom.com/script.js" data-site="<%= fathomSiteId %>" defer></script>
|
<%- analyticsTag %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Riju</title>
|
<title>Riju</title>
|
||||||
<link rel="stylesheet" href="/css/index.css" />
|
<link rel="stylesheet" href="/css/index.css" />
|
||||||
|
<% if (analyticsTag) { %>
|
||||||
|
<%- analyticsTag %>
|
||||||
|
<% } %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Riju: <i>fast</i> online playground for every programming language</h1>
|
<h1>Riju: <i>fast</i> online playground for every programming language</h1>
|
||||||
|
@ -30,8 +33,5 @@
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<i>Riju is loading language configuration...</i>
|
<i>Riju is loading language configuration...</i>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (fathomSiteId) { %>
|
|
||||||
<script src="https://cdn.usefathom.com/script.js" data-site="<%= fathomSiteId %>" defer></script>
|
|
||||||
<% } %>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -16,12 +16,13 @@ install:
|
||||||
cargo install llvmenv
|
cargo install llvmenv
|
||||||
llvmenv init
|
llvmenv init
|
||||||
# If compiler is not explicitly set to LLVM, then we get an
|
# If compiler is not explicitly set to LLVM, then we get an
|
||||||
# error: unrecognized command-line option ‘-Wnewline-eof’.
|
# error: unrecognized command-line option '-Wnewline-eof'.
|
||||||
CC=/usr/bin/clang CXX=/usr/bin/clang++ llvmenv build-entry -G Makefile -j$(nproc) 10.0.0
|
CC=/usr/bin/clang CXX=/usr/bin/clang++ llvmenv build-entry -G Makefile -j$(nproc) 10.0.1
|
||||||
llvmenv global 10.0.0
|
llvmenv global 10.0.1
|
||||||
manual: |
|
manual: |
|
||||||
git clone https://github.com/jfecher/ante.git
|
git clone https://github.com/jfecher/ante.git -n
|
||||||
pushd ante
|
pushd ante
|
||||||
|
git checkout ba940f3b492fb448a6a73b139403eefa7a0daedc
|
||||||
LLVM_SYS_100_PREFIX="$(llvmenv prefix)" cargo build --release
|
LLVM_SYS_100_PREFIX="$(llvmenv prefix)" cargo build --release
|
||||||
install -d "${pkg}/opt/ante"
|
install -d "${pkg}/opt/ante"
|
||||||
install -d "${pkg}/usr/local/bin"
|
install -d "${pkg}/usr/local/bin"
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
id: "carp"
|
|
||||||
name: "Carp"
|
|
||||||
|
|
||||||
info:
|
|
||||||
year: 2015
|
|
||||||
desc: "Programming language designed to work well for interactive and performance sensitive use cases like games, sound synthesis and visualizations"
|
|
||||||
ext: carp
|
|
||||||
web:
|
|
||||||
source: "https://github.com/carp-lang/Carp"
|
|
||||||
category: general
|
|
||||||
mode: interpreted
|
|
||||||
platform: []
|
|
||||||
syntax: lisp
|
|
||||||
typing: static
|
|
||||||
paradigm:
|
|
||||||
- functional
|
|
||||||
- imperative
|
|
||||||
usage: []
|
|
||||||
|
|
||||||
install:
|
|
||||||
manual: |
|
|
||||||
install -d "${pkg}/opt/carp"
|
|
||||||
install -d "${pkg}/usr/local/bin"
|
|
||||||
|
|
||||||
ver="$(curl -sSL "https://api.github.com/repos/carp-lang/Carp/releases" | jq '.[].tag_name' -r | grep Linux | sort -rV | grep -Eo '[0-9.]+' | head -n1)"
|
|
||||||
wget "https://github.com/carp-lang/Carp/releases/download/v${ver}_Linux/v${ver}.zip" -O carp.zip
|
|
||||||
unzip carp.zip
|
|
||||||
mv "v${ver}/bin"/* "${pkg}/usr/local/bin/"
|
|
||||||
mv "v${ver}/core" "${pkg}/opt/carp/"
|
|
||||||
|
|
||||||
repl: |
|
|
||||||
CARP_DIR=/opt/carp carp
|
|
||||||
input: |
|
|
||||||
(* 123 234)
|
|
||||||
|
|
||||||
main: "main.carp"
|
|
||||||
template: |
|
|
||||||
(use IO)
|
|
||||||
|
|
||||||
(println "Hello, world!")
|
|
||||||
|
|
||||||
run: |
|
|
||||||
CARP_DIR=/opt/carp carp main.carp
|
|
||||||
|
|
||||||
scope:
|
|
||||||
code: |
|
|
||||||
(def x (* 123 234))
|
|
||||||
|
|
||||||
timeoutFactor: 8
|
|
|
@ -19,9 +19,9 @@ template: |
|
||||||
}
|
}
|
||||||
|
|
||||||
compile: |
|
compile: |
|
||||||
mcs main.cs
|
mcs -debug main.cs
|
||||||
run: |
|
run: |
|
||||||
mono main.exe
|
mono --debug main.exe
|
||||||
|
|
||||||
format:
|
format:
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -36,3 +36,5 @@ template: |
|
||||||
run: |
|
run: |
|
||||||
JAVA_OPTS="-Duser.home=$PWD" kotlinc -script main.kts
|
JAVA_OPTS="-Duser.home=$PWD" kotlinc -script main.kts
|
||||||
kotlinc
|
kotlinc
|
||||||
|
|
||||||
|
timeoutFactor: 2
|
||||||
|
|
|
@ -69,4 +69,4 @@ template: |
|
||||||
run: |
|
run: |
|
||||||
if spago build -n; then spago run -n; (echo 'import Prelude'; echo 'import Main') > .purs-repl; spago repl; else echo 'import Prelude' > .purs-repl; spago repl -d; fi
|
if spago build -n; then spago run -n; (echo 'import Prelude'; echo 'import Main') > .purs-repl; spago repl; else echo 'import Prelude' > .purs-repl; spago repl -d; fi
|
||||||
|
|
||||||
timeoutFactor: 2
|
timeoutFactor: 8
|
||||||
|
|
|
@ -90,3 +90,6 @@ lsp:
|
||||||
InterpreterPath: /usr/bin/python3
|
InterpreterPath: /usr/bin/python3
|
||||||
code: "import func"
|
code: "import func"
|
||||||
item: "functools"
|
item: "functools"
|
||||||
|
|
||||||
|
skip:
|
||||||
|
- lsp
|
||||||
|
|
|
@ -60,3 +60,5 @@ template: |
|
||||||
|
|
||||||
run: |
|
run: |
|
||||||
dotnet run --project main
|
dotnet run --project main
|
||||||
|
|
||||||
|
timeoutFactor: 4
|
||||||
|
|
|
@ -23,7 +23,7 @@ setup: |
|
||||||
repl: |
|
repl: |
|
||||||
"$(which red)"
|
"$(which red)"
|
||||||
input: |
|
input: |
|
||||||
DELAY: 1
|
DELAY: 5
|
||||||
123 * 234
|
123 * 234
|
||||||
|
|
||||||
main: "main.red"
|
main: "main.red"
|
||||||
|
|
|
@ -7,6 +7,9 @@ install:
|
||||||
|
|
||||||
repl: |
|
repl: |
|
||||||
scala
|
scala
|
||||||
|
input: |
|
||||||
|
DELAY: 5
|
||||||
|
123 * 234
|
||||||
|
|
||||||
main: "main.scala"
|
main: "main.scala"
|
||||||
template: |
|
template: |
|
||||||
|
@ -18,3 +21,5 @@ run: |
|
||||||
scope:
|
scope:
|
||||||
code: |
|
code: |
|
||||||
val x = 123 * 234
|
val x = 123 * 234
|
||||||
|
|
||||||
|
timeoutFactor: 2
|
||||||
|
|
|
@ -63,11 +63,11 @@ scope:
|
||||||
code: |
|
code: |
|
||||||
x = 123 * 234
|
x = 123 * 234
|
||||||
input: |
|
input: |
|
||||||
DELAY: 5
|
DELAY: 15
|
||||||
load main.u
|
load main.u
|
||||||
DELAY: 5
|
DELAY: 5
|
||||||
add x
|
add x
|
||||||
DELAY: 5
|
DELAY: 5
|
||||||
display x
|
display x
|
||||||
|
|
||||||
timeoutFactor: 2
|
timeoutFactor: 4
|
||||||
|
|
|
@ -59,7 +59,7 @@ sudo sed -Ei 's|^#?PermitRootLogin .*|PermitRootLogin no|' /etc/ssh/sshd_config
|
||||||
sudo sed -Ei 's|^#?PasswordAuthentication .*|PasswordAuthentication no|' /etc/ssh/sshd_config
|
sudo sed -Ei 's|^#?PasswordAuthentication .*|PasswordAuthentication no|' /etc/ssh/sshd_config
|
||||||
sudo sed -Ei 's|^#?PermitEmptyPasswords .*|PermitEmptyPasswords no|' /etc/ssh/sshd_config
|
sudo sed -Ei 's|^#?PermitEmptyPasswords .*|PermitEmptyPasswords no|' /etc/ssh/sshd_config
|
||||||
sudo sed -Ei "s|\\\$AWS_REGION|${AWS_REGION}|" /etc/systemd/system/riju.service
|
sudo sed -Ei "s|\\\$AWS_REGION|${AWS_REGION}|" /etc/systemd/system/riju.service
|
||||||
sudo sed -Ei "s|\\\$FATHOM_SITE_ID|${FATHOM_SITE_ID:-}|" /etc/systemd/system/riju.service
|
sudo sed -Ei "s|\\\$ANALYTICS_TAG|${ANALYTICS_TAG:-}|" /etc/systemd/system/riju.service
|
||||||
sudo sed -Ei "s|\\\$S3_BUCKET|${S3_BUCKET}|" /etc/systemd/system/riju.service
|
sudo sed -Ei "s|\\\$S3_BUCKET|${S3_BUCKET}|" /etc/systemd/system/riju.service
|
||||||
sudo sed -Ei "s|\\\$SENTRY_DSN|${SENTRY_DSN:-}|" /etc/systemd/system/riju.service
|
sudo sed -Ei "s|\\\$SENTRY_DSN|${SENTRY_DSN:-}|" /etc/systemd/system/riju.service
|
||||||
sudo sed -Ei "s|\\\$SUPERVISOR_ACCESS_TOKEN|${SUPERVISOR_ACCESS_TOKEN}|" /etc/systemd/system/riju.service
|
sudo sed -Ei "s|\\\$SUPERVISOR_ACCESS_TOKEN|${SUPERVISOR_ACCESS_TOKEN}|" /etc/systemd/system/riju.service
|
||||||
|
|
|
@ -11,7 +11,7 @@ ExecStart=riju-supervisor
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
Environment=AWS_REGION=$AWS_REGION
|
Environment=AWS_REGION=$AWS_REGION
|
||||||
Environment=FATHOM_SITE_ID=$FATHOM_SITE_ID
|
Environment=ANALYTICS_TAG=$ANALYTICS_TAG
|
||||||
Environment=S3_BUCKET=$S3_BUCKET
|
Environment=S3_BUCKET=$S3_BUCKET
|
||||||
Environment=SENTRY_DSN=$SENTRY_DSN
|
Environment=SENTRY_DSN=$SENTRY_DSN
|
||||||
Environment=SUPERVISOR_ACCESS_TOKEN=$SUPERVISOR_ACCESS_TOKEN
|
Environment=SUPERVISOR_ACCESS_TOKEN=$SUPERVISOR_ACCESS_TOKEN
|
||||||
|
|
|
@ -8,9 +8,9 @@ variable "aws_region" {
|
||||||
default = "${env("AWS_REGION")}"
|
default = "${env("AWS_REGION")}"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "fathom_site_id" {
|
variable "analytics_tag" {
|
||||||
type = string
|
type = string
|
||||||
default = "${env("FATHOM_SITE_ID")}"
|
default = "${env("ANALYTICS_TAG")}"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "grafana_api_key" {
|
variable "grafana_api_key" {
|
||||||
|
@ -116,7 +116,7 @@ build {
|
||||||
environment_vars = [
|
environment_vars = [
|
||||||
"ADMIN_PASSWORD=${var.admin_password}",
|
"ADMIN_PASSWORD=${var.admin_password}",
|
||||||
"AWS_REGION=${var.aws_region}",
|
"AWS_REGION=${var.aws_region}",
|
||||||
"FATHOM_SITE_ID=${var.fathom_site_id}",
|
"ANALYTICS_TAG=${var.analytics_tag}",
|
||||||
"GRAFANA_API_KEY=${var.grafana_api_key}",
|
"GRAFANA_API_KEY=${var.grafana_api_key}",
|
||||||
"S3_BUCKET=${var.s3_bucket}",
|
"S3_BUCKET=${var.s3_bucket}",
|
||||||
"SENTRY_DSN=${var.sentry_dsn}",
|
"SENTRY_DSN=${var.sentry_dsn}",
|
||||||
|
|
|
@ -355,7 +355,7 @@ func (sv *supervisor) reload() error {
|
||||||
"-v", "/var/cache/riju:/var/cache/riju",
|
"-v", "/var/cache/riju:/var/cache/riju",
|
||||||
"-v", "/var/run/docker.sock:/var/run/docker.sock",
|
"-v", "/var/run/docker.sock:/var/run/docker.sock",
|
||||||
"-p", fmt.Sprintf("127.0.0.1:%d:6119", port),
|
"-p", fmt.Sprintf("127.0.0.1:%d:6119", port),
|
||||||
"-e", "FATHOM_SITE_ID",
|
"-e", "ANALYTICS_TAG",
|
||||||
"-e", "RIJU_DEPLOY_CONFIG",
|
"-e", "RIJU_DEPLOY_CONFIG",
|
||||||
"-e", "SENTRY_DSN",
|
"-e", "SENTRY_DSN",
|
||||||
"--label", fmt.Sprintf("riju.deploy-config-hash=%s", deployCfgHash),
|
"--label", fmt.Sprintf("riju.deploy-config-hash=%s", deployCfgHash),
|
||||||
|
|
Loading…
Reference in New Issue