Skip to content

Commit

Permalink
add openmower-debug.service
Browse files Browse the repository at this point in the history
  • Loading branch information
docgalaxyblock committed Jul 31, 2023
1 parent 0bdc00d commit 8781fb4
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# openmower-debug.service
# autogenerated by Podman 3.0.1

[Unit]
Description=Podman container - openmower.service
Documentation=man:podman-generate-systemd(1)
Wants=network.target
After=network-online.target NetworkManager.service
Conflicts=openmower.service
StartLimitInterval=120
StartLimitBurst=10

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
EnvironmentFile=/boot/openmower/openmower_version.txt
Type=forking
Restart=on-failure
RestartSec=10s
TimeoutStartSec=1h
TimeoutStopSec=120s

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 \
--replace --detach --tty --privileged \
--name openmower-debug \
--network=host \
--volume /dev:/dev \
--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}

#ExecStartPost=/usr/bin/podman image prune --force --filter image=open_mower_ros

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

ExecStopPost=/usr/bin/podman rm --ignore --force --cidfile %t/container-openmower-debug.ctr-id

PIDFile=%t/container-openmower-debug.pid

[Install]
WantedBy=multi-user.target default.target
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Description=Podman container - openmower.service
Documentation=man:podman-generate-systemd(1)
Wants=network.target
After=network-online.target NetworkManager.service
Conflicts=openmower-debug.service
StartLimitInterval=120
StartLimitBurst=10

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
# Starts a bash in the docker container.
# Use this for ROS specific commands (e.g. rostopic echo)

sudo podman exec -it openmower-debug /openmower_entrypoint.sh /bin/bash

0 comments on commit 8781fb4

Please sign in to comment.