Skip to content

Commit 2a6dad4

Browse files
authored
Update .component.yaml
#!skip-build!# Introduce component patches Pt.1 Signed-off-by: Nikita Petko <[email protected]>
1 parent 70ecb44 commit 2a6dad4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

services/grid-bot/.component.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ deployment:
2828
# Passed to the meta section in Nomad
2929
meta:
3030
ENVIRONMENT: ${{ env.NOMAD_ENVIRONMENT }}
31+
VERSION: ${{ env.NOMAD_VERSION }}
3132

3233
containers: # Maps to the groups section in Nomad
3334
- image: mfdlabs/grid-bot
@@ -78,14 +79,16 @@ deployment:
7879
volumes:
7980
- '/var/run/docker.sock:/var/run/docker.sock'
8081
- '/tmp/.X11-unix:/tmp/.X11-unix'
81-
- '/opt/grid/scripts:/opt/grid/scripts'
82-
- '/_/_logs/grid-bot/${{ env.NOMAD_ENVIRONMENT }}:/tmp/mfdlabs/logs'
82+
83+
- '/_/_data/grid-bot/scripts:/_/_data/grid-bot/scripts'
84+
- '/_/_data/grid-bot/logs:/tmp/mfdlabs/logs'
85+
- '/_/_data/grid-bot/rcc-logs:/_/_data/grid-bot/rcc-logs'
8386
config_maps:
8487
- destination: secrets/file.env
8588
env: true
8689
on_change: restart
8790
data: |
8891
DISPLAY=:1
8992
DEFAULT_LOG_LEVEL=Information
90-
VAULT_ADDR="http://vault.service.consul:8200"
91-
VAULT_TOKEN="{{ with secret "grid-bot-settings/grid-bot-vault" }}{{ .Data.data.vault_token }}{{ end }}"
93+
VAULT_ADDR="${{ env.VAULT_ADDR }}"
94+
VAULT_TOKEN="${{ env.VAULT_TOKEN }}"

0 commit comments

Comments
 (0)