Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker alpine #192

Closed
roblad opened this issue May 7, 2017 · 3 comments
Closed

docker alpine #192

roblad opened this issue May 7, 2017 · 3 comments

Comments

@roblad
Copy link

roblad commented May 7, 2017

Hi,

I created docker on alpine linux with mqtt integrated - for rpi and amd64 platforms.

https://hub.docker.com/r/robowntracks/owntracks-alpine/
https://github.com/roblad/ot-recorder
Regards,
RL

@jpmens
Copy link
Member

jpmens commented May 10, 2017

Thank you, that sounds useful I think. @juzam could you have a look at this, and should we mention this in recorderd?

@juzam
Copy link
Contributor

juzam commented May 10, 2017

I hope to take a look at the repo and the image during the weekend. As per the mention, a line in README.md after how the official images are being built and pushed to the Docker HUB would do?

@roblad
Copy link
Author

roblad commented May 12, 2017

BUILD

USE TAG for RPI - :armhf
docker build --no-cache=true --compress=true -t robowntracks/owntracks-alpine:amd64 .
Container create and run

USE TAG for RPI - :armhf
docker run -ti --name=ot-recorder -p 8083:8083 -p 1883:1883 robowntracks/owntracks-alpine:amd64
for background add option -d
sharinh with docker host

add option

-v /ot-recorder/htdocs:/usr/share/ot-recorder/htdocs -v /ot-recorder/store:/var/lib/ot-recorder/store

where dir before : is host created dir and after : there is directory inside docker

You should remember that all structure of recorder for http and store must be copied from docker container before start / stop:

docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH

https://docs.docker.com/engine/reference/commandline/cp/
Start Stop container

docker ot-recorder start

docker ot-recorder stop

wollew pushed a commit to wollew/recorder that referenced this issue Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants