Skip to content

Commit

Permalink
ATOR-190 - Add mount for destination
Browse files Browse the repository at this point in the history
  • Loading branch information
yumirkov committed Mar 18, 2024
1 parent f413837 commit 0b1a65f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/destination/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mkdir -p data && cd data

head -c $((1024*1024*1024)) /dev/urandom > 1GiB
head -c $((1024*1024*100)) /dev/urandom > 1GiB

nginx -g 'daemon off;'
6 changes: 6 additions & 0 deletions operations/deploy-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}
task "sbws-destination-dev-task" {
driver = "docker"

volume_mount {
volume = "sbws-dev"
destination = "/app/destination/data"
read_only = false
}

config {
image = "svforte/sbws-destination:latest-dev"
force_pull = true
Expand Down
8 changes: 7 additions & 1 deletion operations/deploy-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ job "sbws-live" {
}

config {
image = "svforte/anon-live"
image = "svforte/anon:v0.4.9.0"
force_pull = true
volumes = [
"local/anonrc:/etc/anon/anonrc"
Expand Down Expand Up @@ -166,6 +166,12 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}
task "sbws-destination-live-task" {
driver = "docker"

volume_mount {
volume = "sbws-live"
destination = "/app/destination/data"
read_only = false
}

config {
image = "svforte/sbws-destination"
force_pull = true
Expand Down
10 changes: 8 additions & 2 deletions operations/deploy-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ LearnCircuitBuildTimeout 0
driver = "docker"

env {
INTERVAL_MINUTES = "60"
INTERVAL_MINUTES = "5"
}

volume_mount {
Expand All @@ -114,7 +114,7 @@ LearnCircuitBuildTimeout 0
}

config {
image = "svforte/sbws-scanner:latest-stage"
image = "svforte/sbws-scanner"
force_pull = true
volumes = [
"local/.sbws.ini:/root/.sbws.ini:ro"
Expand Down Expand Up @@ -166,6 +166,12 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}
task "sbws-destination-stage-task" {
driver = "docker"

volume_mount {
volume = "sbws-stage"
destination = "/app/destination/data"
read_only = false
}

config {
image = "svforte/sbws-destination"
force_pull = true
Expand Down

0 comments on commit 0b1a65f

Please sign in to comment.