-
-
Notifications
You must be signed in to change notification settings - Fork 80
Docker AZURE
Maximilián Maliar edited this page Mar 4, 2021
·
3 revisions
you need to have azure CLI
here is script for powershell that will create new storage
# Change these four parameters as needed
$ACI_PERS_RESOURCE_GROUP="<group>"
$ACI_PERS_STORAGE_ACCOUNT_NAME="<name>"
$ACI_PERS_LOCATION="eastus2"
$ACI_PERS_SHARE_NAME="acishare"
# Create the storage account with the parameters
az storage account create --resource-group $ACI_PERS_RESOURCE_GROUP --name $ACI_PERS_STORAGE_ACCOUNT_NAME --location $ACI_PERS_LOCATION --sku Standard_LRS
# Create the file share
az storage share create --name $ACI_PERS_SHARE_NAME --account-name $ACI_PERS_STORAGE_ACCOUNT_NAME
$STORAGE_KEY=$(az storage account keys list --resource-group $ACI_PERS_RESOURCE_GROUP --account-name $ACI_PERS_STORAGE_ACCOUNT_NAME --query "[0].value" --output tsv)
echo $STORAGE_KEY
when you have your storage account, you can proceed to configure container:
- create container config file: .yaml
- copy and paste from here
- fill out missing info
apiVersion: '2019-12-01'
location: eastus2
name: tf2autobot
properties:
containers:
- name: <container name>
properties:
environmentVariables:
- name: 'NODE_ENV'
value: 'production'
- name: 'STEAM_ACCOUNT_NAME'
value: ''
- name: 'STEAM_PASSWORD'
secureValue: ''
- name: 'STEAM_SHARED_SECRET'
secureValue: ''
- name: 'STEAM_IDENTITY_SECRET'
secureValue: ''
- name: 'BPTF_ACCESS_TOKEN'
secureValue: ''
- name: 'BPTF_API_KEY'
secureValue: ''
- name: 'ADMINS'
value: '["<your-steam-id>"]'
- name: 'KEEP'
value: ''
- name: 'GROUPS'
value: ''
- name: 'ALERTS'
value: '["trade"]'
- name: 'SKIP_BPTF_TRADEOFFERURL'
value: 'true'
- name: 'SKIP_UPDATE_PROFILE_SETTINGS'
value: 'true'
- name: 'TIMEZONE'
value: 'Europe/Bratislava'
- name: 'CUSTOM_TIME_FORMAT'
value: 'DD MMM YYYY, HH:mm:ss ZZ'
- name: 'DEBUG'
value: 'true'
- name: 'DEBUG_FILE'
value: 'true'
image: tf2autobot/tf2autobot:bdaf043276fccd53f864dfb23c609fd8496ca2ad-14.16.0-alpine
resources:
requests:
cpu: 1.0
memoryInGB: 0.5
volumeMounts:
- mountPath: /app/files
name: filesharevolume
osType: Linux
restartPolicy: Always
volumes:
- name: filesharevolume
azureFile:
sharename: acishare
storageAccountName: <$ACI_PERS_STORAGE_ACCOUNT_NAME>
storageAccountKey: <$STORAGE_KEY>
tags: {}
type: Microsoft.ContainerInstance/containerGroups
az container create --resource-group <group> --file .\azureConfig.yaml
if you want to update your bot, and you are using latest image, then just restart it, for example with this command az container restart -g="<group>" -n="tf2autobot"
- Getting a VPS
- Downloading the bot
- Configuring the bot
- Running the bot (node and PM2)
- Introduction to pricelist
- Parameters
- Manage pricelist
- Other commands