This repository has been archived by the owner on Sep 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from VIP-LES/develop
Final changes before launch, added some bash scripts to make things e…
- Loading branch information
Showing
6 changed files
with
106 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
set -ex #Fail if any line fails, print everything | ||
|
||
docker build -t gtviples/verne . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
set -ex #Fail if any line fails, print everything | ||
|
||
docker create --name=verne --device /dev/ttyAMA0 --device /dev/i2c-1 -v /home/pi/vernedata:/data gtviples/verne |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
set -ex #Fail if any line fails, print everything | ||
|
||
SCRIPTDIR="$(dirname "$0")" | ||
|
||
# Copy the service | ||
\cp -rf "$SCRIPTDIR/../verne.service" /etc/systemd/system/ | ||
|
||
# Reload systemd | ||
systemctl daemon-reload | ||
|
||
# Add it to startup | ||
systemctl enable verne.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Verne | ||
Requires=docker.service | ||
After=docker.service | ||
|
||
[Service] | ||
Restart=no | ||
ExecStart=/usr/bin/docker start -a verne | ||
ExecStop=/usr/bin/docker stop -t 5 verne | ||
|
||
[Install] | ||
WantedBy=default.target |