-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scheduler changes for api key and latest features
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
deployments/azure/templates/ai-unlimited-scheduler.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |