Skip to content

Commit

Permalink
Add systemd unit for docker compose
Browse files Browse the repository at this point in the history
Signed-off-by: Emerson Knapp <[email protected]>
  • Loading branch information
emersonknapp committed Mar 10, 2020
1 parent 2d9bcbc commit f4f7aa9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions brains/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3'
services:
kojet:
image: "192.168.1.11:5000/kojet-runtime"
privileged: true
volumes:
- ~/install_aarch64:/ws
- /dev:/dev
entrypoint: /bin/bash
working_dir: /ws
tty: yes
network_mode: host

9 changes: 9 additions & 0 deletions brains/systemd/robot_runtime.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=Robot Runtime

[Service]
WorkingDirectory=/home/homey
ExecStart=/usr/bin/docker-compose up

[Install]
WantedBy=default.target

0 comments on commit f4f7aa9

Please sign in to comment.