Skip to content

Commit

Permalink
change openmower_version.txt format
Browse files Browse the repository at this point in the history
  • Loading branch information
docgalaxyblock committed Jul 31, 2023
1 parent 8cc34d1 commit 614de6d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
# select which version of the OpenMower software to run.
#
# - beta: This one is the _most stable_ one of the three. I try to keep this as stable as possible.
# - alpha: For people who like to test stuff. This one will be updated fairly often as well and without notice. Only use it, if you want to be among the first people to get new features, but prepare to have issues.
# - testing: This one changes very often. Only use it if you want to take part in the development or are asked to use it by a developer.
#
# - "releases-beta": This one is the _most stable_ one of the three. I try to keep this as stable as possible.
# - "releases-alpha": For people who like to test stuff. This one will be updated fairly often as well and without notice. Only use it, if you want to be among the first people to get new features, but prepare to have issues.
# - "releases-testing": This one changes very often. Only use it if you want to take part in the development or are asked to use it by a developer.
#
#
# Check the https://github.com/ClemensElflein/open_mower_ros repo for the current state.
#
# advanced users may want to select different versions as the "releases-..." versions


OM_VERSION="releases-beta"





###################################
# Options for developers #
# DO NOT TOUCH as a normal user ! #
###################################

OM_REPO="clemenselflein"

OM_REG="ghcr.io"


OM_VERSION="beta"

export OM_VERSION
###################################
# Export section - DO NOT TOUCH ! #
###################################
export OM_REG
export OM_REPO
export OM_VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RestartSec=10s
TimeoutStartSec=1h
TimeoutStopSec=120s

# Remove id files from previous starts
ExecStartPre=/bin/rm -f %t/container-openmower-debug.pid %t/container-openmower-debug.ctr-id

ExecStart=/usr/bin/podman run --conmon-pidfile %t/container-openmower-debug.pid --cidfile %t/container-openmower-debug.ctr-id --cgroups=no-conmon \
Expand All @@ -29,9 +30,10 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/container-openmower-debug.pid
--volume /boot/openmower/mower_config.txt:/config/mower_config.sh \
--volume /root/ros_home:/root \
--label io.containers.autoupdate=image \
ghcr.io/clemenselflein/open_mower_ros:releases-${OM_VERSION}
${OM_REG}/${OM_REPO}/open_mower_ros:${OM_VERSION}

#ExecStartPost=/usr/bin/podman image prune --force --filter image=open_mower_ros
# Remove orphane images from podman auto-update execution
ExecStartPost=/usr/bin/podman image prune --force --filter label=org.opencontainers.image.title=open_mower_ros

ExecStop=/usr/bin/podman stop --time 30 --ignore --cidfile %t/container-openmower-debug.ctr-id

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ RestartSec=10s
TimeoutStartSec=1h
TimeoutStopSec=120s

# Remove id files from previous starts
ExecStartPre=/bin/rm -f %t/container-openmower.pid %t/container-openmower.ctr-id

# Remove any openmower-debug containers
ExecStartPre=/usr/bin/podman rm -i openmower-debug

# Start the open_mower_ros container
ExecStart=/usr/bin/podman run --conmon-pidfile %t/container-openmower.pid --cidfile %t/container-openmower.ctr-id --cgroups=no-conmon \
--replace --detach --tty --privileged \
--name openmower \
Expand All @@ -33,9 +38,10 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/container-openmower.pid --cidf
--env ROSOUT_DISABLE_FILE_LOGGING=True \
--tmpfs /root/.ros/log \
--label io.containers.autoupdate=image \
ghcr.io/clemenselflein/open_mower_ros:releases-${OM_VERSION}
${OM_REG}/${OM_REPO}/open_mower_ros:${OM_VERSION}

#ExecStartPost=/usr/bin/podman image prune --force --filter image=open_mower_ros
# Remove orphane images from podman auto-update execution
ExecStartPost=/usr/bin/podman image prune --force --filter label=org.opencontainers.image.title=open_mower_ros

ExecStop=/usr/bin/podman stop --time 30 --ignore --cidfile %t/container-openmower.ctr-id

Expand Down

0 comments on commit 614de6d

Please sign in to comment.