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 for Graphs with R #4

Closed
gedankenstuecke opened this issue Feb 15, 2016 · 7 comments
Closed

Docker for Graphs with R #4

gedankenstuecke opened this issue Feb 15, 2016 · 7 comments

Comments

@gedankenstuecke
Copy link
Member

Ok, so I now figured out that there's a rocker/hadleyverse Docker image already which we could use to generate the usage/growth graphs daily via a cronjob.

What I tried so far (it seemed to work) is run the following from the opensnp_misc folder:

docker run --name plot -v $(pwd):/home/rplots -w /home/rplots rocker/hadleyverse
in combination with the following command
docker exec plot Rscript plotUsers.r
It then writes the stuff into my mounted directory on the host-machine.

But what do I now have to do to make this useful for our deployed version? I guess our mountpoints will have to be adjusted to the public-directories on the webserver etc but what else?

@tsujigiri
Copy link
Collaborator

You could try setting up an automated build at docker hub, so it gets built whenever this repository updates. Then we pull it from the server side and run it via cron. In openSNP/snpr we then need a page that includes the graphs, I guess?

@gedankenstuecke
Copy link
Member Author

Yes, we'll need a page for that. iirc @philippbayer had a suggestion of where to put it already?

@philippbayer
Copy link
Member

my suggestion was to delete the Users index, could put Stats there?

@gedankenstuecke
Copy link
Member Author

Ah, yes. Good idea, I think the user index is rather useless as it is, maybe do a small "last 10 users" or so? Or keep it but remove from main page?

@philippbayer
Copy link
Member

new users is on the news page - i keep forgetting about it :)

We could link to the users index from there?

@gedankenstuecke
Copy link
Member Author

👍

@gedankenstuecke
Copy link
Member Author

closing this now, because the issue is solved w/ growthplots

Discussion of the best way to view it can be done in openSNP/snpr/issues/102

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