Created the docker app handler

This commit is contained in:
2023-06-02 00:41:08 +02:00
parent 288f33d693
commit 1d9c463110

View File

@ -0,0 +1,25 @@
module.exports = {
variables: {
environment: "Stabil",
},
steps: [
{
description: "Zugriff prüfen",
command: "if [ $EUID -ne 0 ]; then exit 1; fi"
},
{
description: "Docker Test installieren",
command: "curl -sSL https://get.docker.com/ | CHANNEL=test bash && exit 0",
condition: "environment=Test"
},
{
description: "Docker installieren",
command: "curl -sSL https://get.docker.com/ | CHANNEL=stable bash && exit 0",
condition: "environment=Stabil"
},
{
description: "Systemdienst aktivieren",
command: "systemctl enable --now docker"
}
]
}