Skip to content

Commit

Permalink
Add GPIO capabilities to Gladys container
Browse files Browse the repository at this point in the history
* Add GPIO capabilities to Gladys container

* Bind mount /sys/class/gpio in gladys container
  • Loading branch information
VonOx authored Sep 3, 2021
1 parent b00f795 commit 9c12f88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gladys/02-init-gladys/files/init-containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ docker_images_watchtower=$(docker images -q containrrr/watchtower)
docker_images_gladys=$(docker images -q gladysassistant/gladys)
docker_images_gladyssetup=$(docker images -q gladysassistant/gladys-setup-in-progress)


if [ -n "$docker_images_gladyssetup" ]; then
logger -t "gladys-init" "Gladys Setup Progress image exist, Cool...."
else
Expand Down Expand Up @@ -45,6 +44,7 @@ else
--network=host \
--log-opt max-size=10m \
--name gladys \
--cap-add SYS_RAWIO \
-e NODE_ENV=production \
-e SERVER_PORT=80 \
-e TZ=${TIMEZONE} \
Expand All @@ -53,5 +53,6 @@ else
-v /var/lib/gladysassistant:/var/lib/gladysassistant \
-v /dev:/dev \
-v /run/udev:/run/udev:ro \
-v /sys/class/gpio:/sys/class/gpio \
gladysassistant/gladys:v4
fi
fi

0 comments on commit 9c12f88

Please sign in to comment.