opensnp / opensnp.org-docker Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://opensnp.org/
Home Page: https://opensnp.org/
CRON jobs are running now, but they are not being run with the environment variables needed for the Rails jobs, e.g. the full data dump.
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?
I'm getting this error when starting nginx:
App 595 stdout:
App 595 stderr: *** ERROR ***: Cannot execute /usr/bin/ruby2.2: No such file or directory (2)
[ 2017-06-02 02:52:01.3922 532/7f1a4c064700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /home/app/snpr: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger.
Error ID: f8f850bd
Error details saved to: /tmp/passenger-error-MSDQkF.html
Message from application: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Please read <a href="https://github.com/phusion/passenger/wiki/Debugging-application-startup-problems">this article</a> for more information about this problem.<br>
<h2>Raw process output:</h2>
<pre>
*** ERROR ***: Cannot execute /usr/bin/ruby2.2: No such file or directory (2)
</pre>
Currently circumventing by symlinking 2.2 to 2.3, but that's not a permanent solution and will revert on next deploy. Checking what happened here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.