Skip to content

Commit

Permalink
scheduler changes for api key and latest features
Browse files Browse the repository at this point in the history
  • Loading branch information
cs128781 committed Dec 16, 2024
1 parent e47e6d2 commit 375b20c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions deployments/azure/templates/ai-unlimited-scheduler.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[Unit]
Description=AI Unlimited
After=docker.service
Requires=docker.service
StartLimitInterval=200
StartLimitBurst=10

[Service]
TimeoutStartSec=0
Restart=always
RestartSec=2
ExecStartPre=-/usr/bin/docker network create -d bridge ai_unlimited
ExecStartPre=-/usr/bin/mkdir -p /etc/td/ai-unlimited
ExecStartPre=-/usr/bin/docker exec %n stop || true
ExecStartPre=-/usr/bin/docker rm %n || true
ExecStartPre=/usr/bin/docker pull {0}/{1}:{2}

ExecStart=/usr/bin/docker run \
-e accept_license=Y \
-e PLATFORM=azure \
-e ARM_USE_MSI=true \
-e ARM_SUBSCRIPTION_ID={5} \
-e ARM_TENANT_ID={6} \
-v /etc/td/ai-unlimited:/etc/td \
-p {3}:3000 \
-p {4}:3282 \
--network ai_unlimited {7} \
--rm --name %n {0}/{1}:{2} workspaces serve -v

[Install]
WantedBy=multi-user.target

0 comments on commit 375b20c

Please sign in to comment.