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 #273

Closed
xirixiz opened this issue Mar 7, 2017 · 6 comments
Closed

Docker #273

xirixiz opened this issue Mar 7, 2017 · 6 comments
Milestone

Comments

@xirixiz
Copy link
Contributor

xirixiz commented Mar 7, 2017

Perhaps of use to you or others. I've created a Docker environment for dsmr-reader.

Github:
https://github.com/xirixiz/dsmr-reader-docker

Docker hub:
https://hub.docker.com/r/xirixiz/dsmr-reader-docker/

@dennissiemensma
Copy link
Member

Thank you for sharing your setup!

  • Does it also contain a database or do you intend to only run the application with it? One of the scripts refers to dsmrdb.

  • I see you manually install the latest version of psycopg2 in startup.sh. It will work fine for 99% of the versions, but you might consider using /dsmrreader/provisioning/requirements/postgresql.txt, which contains a pinned version. Because it's also taken into account when the unittests in Travis run.

@xirixiz
Copy link
Contributor Author

xirixiz commented Mar 9, 2017

dsrmdb in docker-compose is configured to use a docker volume. So when the application and docker containter have been removed, the postgres data still persists.

Also you could easily create a backup :
docker exec -t dsmrdb pg_dumpall -c -U postgres > /tmp/dump_date +%d-%m-%Y"_"%H_%M_%S.sql

Or restore:
cat /tmp/<your_dump>.sql | docker exec -i dsrmdb psql -U postgres

  • I just modified psycopg2 bij replacing it with dsmrreader/provisioning/requirements/postgresql.txt, as you adviced. Cheers!

@dennissiemensma
Copy link
Member

Thanks! In a future release I will have the docs refer to your Docker setup for anyone interested in it :]

@xirixiz
Copy link
Contributor Author

xirixiz commented Mar 10, 2017

Now it's possible to use the development branch besides the master branch.

  • DEV uses port 8885.
  • DEV uses a seperate Docker volume.
  • DEV uses the development branch of this project.

@Jeltel
Copy link

Jeltel commented Jun 23, 2017

I'm going to try this when I have time. I'll install it on a synology Nas.

dennissiemensma added a commit that referenced this issue Sep 20, 2017
@dennissiemensma
Copy link
Member

I've added a reference to your Docker project on top of the Installation page, for next release. Once again thanks.

@dennissiemensma dennissiemensma added this to the 1.9 milestone Sep 20, 2017
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