Skip to content

Commit

Permalink
feat: add ports & shared volume for ui and server
Browse files Browse the repository at this point in the history
  • Loading branch information
johandry committed Nov 1, 2024
1 parent e341ffc commit 0154016
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ Resources:
Restart=always
RestartSec=2
ExecStartPre=-/bin/bash -c '/usr/bin/docker volume create ssl_certs || true'
ExecStartPre=-/bin/bash -c '/usr/bin/docker network create -d bridge ai_unlimited || true'
ExecStartPre=-/usr/bin/mkdir -p /etc/td/ai-unlimited-ui
EnvironmentFile=/etc/td/ai-unlimited/init_api_key.txt
Expand All @@ -522,11 +523,13 @@ Resources:
ExecStart=/usr/bin/docker run \
-e accept_license=Y \
-e PLATFORM=aws \
-e TD_VCD_UI_PORT=${ AiUnlimitedUiPort } \
-e TD_VCD_USE_TLS=false \
-e TD_VCD_API_PORT=${ AiUnlimitedGrpcPort } \
-e TD_VCD_AUTH_PORT=${ AiUnlimitedAuthPort } \
-e TD_VCD_INIT_API_KEY \
-p ${ AiUnlimitedUiPort }:80 \
-p 80:80 \
-p 443:443 \
-v ssl_certs:/etc/ssl/td \
--network ai_unlimited \
--rm --name %n teradata/ai-unlimited-workspaces-ui:${ AiUnlimitedUiVersion }
[Install]
Expand Down Expand Up @@ -567,6 +570,8 @@ Resources:
-v /etc/td/ai-unlimited:/etc/td \
-p ${ AiUnlimitedAuthPort }:3000 \
-p ${ AiUnlimitedGrpcPort }:3282 \
-v /etc/td/ai-unlimited:/etc/td \
-v ssl_certs:/etc/td/ssl \
--network ai_unlimited \
--rm --name %n teradata/ai-unlimited-workspaces:${ AiUnlimitedVersion } workspaces serve -v
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ Resources:
Restart=always
RestartSec=2
ExecStartPre=-/bin/bash -c '/usr/bin/docker volume create ssl_certs || true'
ExecStartPre=-/bin/bash -c '/usr/bin/docker network create -d bridge ai_unlimited || true'
ExecStartPre=-/usr/bin/mkdir -p /etc/td/ai-unlimited-ui
EnvironmentFile=/etc/td/ai-unlimited/init_api_key.txt
Expand All @@ -517,11 +518,13 @@ Resources:
ExecStart=/usr/bin/docker run \
-e accept_license=Y \
-e PLATFORM=aws \
-e TD_VCD_UI_PORT=${ AiUnlimitedUiPort } \
-e TD_VCD_USE_TLS=false \
-e TD_VCD_API_PORT=${ AiUnlimitedGrpcPort } \
-e TD_VCD_AUTH_PORT=${ AiUnlimitedAuthPort } \
-e TD_VCD_INIT_API_KEY \
-p ${ AiUnlimitedUiPort }:80 \
-p 80:80 \
-p 443:443 \
-v ssl_certs:/etc/ssl/td \
--network ai_unlimited \
--rm --name %n teradata/ai-unlimited-workspaces-ui:${ AiUnlimitedUiVersion }
[Install]
Expand Down Expand Up @@ -562,6 +565,8 @@ Resources:
-v /etc/td/ai-unlimited:/etc/td \
-p ${ AiUnlimitedAuthPort }:3000 \
-p ${ AiUnlimitedGrpcPort }:3282 \
-v /etc/td/ai-unlimited:/etc/td \
-v ssl_certs:/etc/td/ssl \
--network ai_unlimited \
--rm --name %n teradata/ai-unlimited-workspaces:${ AiUnlimitedVersion } workspaces serve -v
Expand Down
9 changes: 7 additions & 2 deletions deployments/aws/templates/all-in-one/all-in-one-with-nlb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ Resources:
Restart=always
RestartSec=2
ExecStartPre=-/bin/bash -c '/usr/bin/docker volume create ssl_certs || true'
ExecStartPre=-/bin/bash -c '/usr/bin/docker network create -d bridge ai_unlimited || true'
ExecStartPre=-/usr/bin/mkdir -p /etc/td/ai-unlimited-ui
EnvironmentFile=/etc/td/ai-unlimited/init_api_key.txt
Expand All @@ -540,11 +541,13 @@ Resources:
ExecStart=/usr/bin/docker run \
-e accept_license=Y \
-e PLATFORM=aws \
-e TD_VCD_UI_PORT=${ AiUnlimitedUiPort } \
-e TD_VCD_USE_TLS=false \
-e TD_VCD_API_PORT=3282 \
-e TD_VCD_AUTH_PORT=3000 \
-e TD_VCD_INIT_API_KEY \
-p ${ AiUnlimitedUiPort }:80 \
-p 80:80 \
-p 443:443 \
-v ssl_certs:/etc/ssl/td \
--network ai_unlimited \
--rm --name %n teradata/ai-unlimited-workspaces-ui:${ AiUnlimitedUiVersion }
[Install]
Expand Down Expand Up @@ -585,6 +588,8 @@ Resources:
-v /etc/td/ai-unlimited:/etc/td \
-p ${ AiUnlimitedAuthPort }:3000 \
-p ${ AiUnlimitedGrpcPort }:3282 \
-v /etc/td/ai-unlimited:/etc/td \
-v ssl_certs:/etc/td/ssl \
--network ai_unlimited \
--net-alias ${ LoadBalancer.DNSName } \
--rm --name %n teradata/ai-unlimited-workspaces:${ AiUnlimitedVersion } workspaces serve -v
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ Resources:
Restart=always
RestartSec=2
ExecStartPre=-/bin/bash -c '/usr/bin/docker volume create ssl_certs || true'
ExecStartPre=-/bin/bash -c '/usr/bin/docker network create -d bridge ai_unlimited || true'
ExecStartPre=-/usr/bin/mkdir -p /etc/td/ai-unlimited-ui
EnvironmentFile=/etc/td/ai-unlimited/init_api_key.txt
Expand All @@ -535,11 +536,13 @@ Resources:
ExecStart=/usr/bin/docker run \
-e accept_license=Y \
-e PLATFORM=aws \
-e TD_VCD_UI_PORT=${ AiUnlimitedUiPort } \
-e TD_VCD_USE_TLS=false \
-e TD_VCD_API_PORT=${ AiUnlimitedGrpcPort } \
-e TD_VCD_AUTH_PORT=${ AiUnlimitedAuthPort } \
-e TD_VCD_INIT_API_KEY \
-p ${ AiUnlimitedUiPort }:80 \
-p 80:80 \
-p 443:443 \
-v ssl_certs:/etc/ssl/td \
--network ai_unlimited \
--rm --name %n teradata/ai-unlimited-workspaces-ui:${ AiUnlimitedUiVersion }
[Install]
Expand Down Expand Up @@ -580,6 +583,8 @@ Resources:
-v /etc/td/ai-unlimited:/etc/td \
-p ${ AiUnlimitedAuthPort }:3000 \
-p ${ AiUnlimitedGrpcPort }:3282 \
-v /etc/td/ai-unlimited:/etc/td \
-v ssl_certs:/etc/td/ssl \
--network ai_unlimited \
--rm --name %n teradata/ai-unlimited-workspaces:${ AiUnlimitedVersion } workspaces serve -v
[Install]
Expand Down

0 comments on commit 0154016

Please sign in to comment.