Skip to content

Commit

Permalink
azure and aws updates
Browse files Browse the repository at this point in the history
- docker volume
- azure standalone deploys
  • Loading branch information
jlauritsen committed Nov 20, 2023
1 parent 680f327 commit fd60836
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 272 deletions.
13 changes: 9 additions & 4 deletions deployments/aws/all-in-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -481,16 +481,18 @@ Resources:
TimeoutStartSec=0
Restart=always
RestartSec=2
ExecStartPre=-/usr/bin/mkdir -p /etc/td/workspaces
ExecStartPre=-/usr/bin/docker network create -d bridge ai_unlimited
ExecStartPre=-/usr/bin/mkdir -p /etc/td/workspace
ExecStartPre=-/usr/bin/docker exec %n stop || true
ExecStartPre=-/usr/bin/docker rm %n || true
ExecStartPre=/usr/bin/docker pull teradata/ai-unlimited-workspaces:${ WorkspacesVersion }
ExecStart=/usr/bin/docker run \
-e accept_license=Y \
-e PLATFORM=aws \
-v /etc/td/workspaces:/etc/td \
-v /etc/td/workspace:/etc/td \
-p ${ WorkspacesHttpPort }:3000 \
-p ${ WorkspacesGrpcPort }:3282 \
--network ai_unlimited \
--rm --name %n teradata/ai-unlimited-workspaces:${ WorkspacesVersion } workspaces serve -v
[Install]
Expand Down Expand Up @@ -519,15 +521,18 @@ Resources:
TimeoutStartSec=0
Restart=always
RestartSec=2
ExecStartPre=-/usr/bin/mkdir -p /etc/td/jupyter
ExecStartPre=-/usr/bin/docker network create -d bridge ai_unlimited
ExecStartPre=-/usr/bin/mkdir -p /etc/td/jupyter/{userdata,ipython}
ExecStartPre=-/usr/bin/docker exec %n stop || true
ExecStartPre=-/usr/bin/docker rm %n || true
ExecStartPre=/usr/bin/docker pull teradata/ai-unlimited-jupyter:${ JupyterVersion }
ExecStart=/usr/bin/docker run \
-e accept_license=Y \
-e JUPYTER_TOKEN=${ JupyterToken } \
-v /etc/td/jupyter:/home/jovyan/JupyterLabRoot/userdata \
-v /etc/td/jupyter/userdata:/home/jovyan/JupyterLabRoot/userdata \
-v /etc/td/jupyter/ipython:/home/jovyan/.ipython \
-p ${ JupyterHttpPort }:8888 \
--network ai_unlimited \
--rm --name %n teradata/ai-unlimited-jupyter:${ JupyterVersion }
[Install]
Expand Down
7 changes: 5 additions & 2 deletions deployments/aws/jupyter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -468,15 +468,18 @@ Resources:
TimeoutStartSec=0
Restart=always
RestartSec=2
ExecStartPre=-/usr/bin/mkdir -p /etc/td/jupyter
ExecStartPre=-/usr/bin/docker network create -d bridge ai_unlimited
ExecStartPre=-/usr/bin/mkdir -p /etc/td/jupyter/{userdata,ipython}
ExecStartPre=-/usr/bin/docker exec %n stop || true
ExecStartPre=-/usr/bin/docker rm %n || true
ExecStartPre=/usr/bin/docker pull teradata/ai-unlimited-jupyter:${ JupyterVersion }
ExecStart=/usr/bin/docker run \
-e accept_license=Y \
-e JUPYTER_TOKEN=${ JupyterToken } \
-v /etc/td/jupyter:/home/jovyan/JupyterLabRoot/userdata \
-v /etc/td/jupyter/userdata:/home/jovyan/JupyterLabRoot/userdata \
-v /etc/td/jupyter/ipython:/home/jovyan/.ipython \
-p ${ JupyterHttpPort }:8888 \
--network ai_unlimited \
--rm --name %n teradata/ai-unlimited-jupyter:${ JupyterVersion }
[Install]
Expand Down
Loading

0 comments on commit fd60836

Please sign in to comment.