Add environment variables into task.yaml #114
I am currently working on getting a CS:GO server up and running with Sonm. I have the docker container working, and it actually works in Sonm, but I can't properly pass in some variables to make it work 100%.
CS:GO server requires a Steam Token to work in non-lan mode. When I run docker normally, I used
Either of these methods would work, but not currently possible with the tasks yaml. I looked through the code, and it seems you have tests for a
Could we get ENV variables hooked up? I can try to submit a pull request myself, but I haven't had time to familiarize myself with the code, so it might be a while before I can comfortably provide a pull request.
Example env config:
task: container: # image name to start, requried name: daegalus/docker-csgo:latest env: - "GSLT=<token>" - "GAMEPORT=27015" resources: # number of CPU cores required by task, required param CPU: 1 # amount of memory required by task, required param # You may use Kb, Mb and Gb suffixes RAM: 50Mb
The text was updated successfully, but these errors were encountered: