Comments (2)
Yes, totally! 👍
from ethics-app.
I've created a first prototype, which is based on
- this blog post: https://github.com/BretFisher/node-docker-good-defaults
- a Dockerimage we use in our project: https://github.com/o2r-project/o2r-muncher/blob/master/Dockerfile
- alpine base images for small image sizes
See branch https://github.com/nuest/Ethics-app/tree/docker
Status (will update here)
Dockerfile builds and can be run with make run_dev
.
~/git/Ethics-app/docker$ make run_dev
docker run -it -e NODE_ENV=development ethics-app
Tue May 30 2017 15:58:23 GMT+0000 (UTC) HTTP-Server is listening at port undefined
{ Error: connect ECONNREFUSED 127.0.0.1:5432
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5432 }
Tue May 30 2017 15:58:23 GMT+0000 (UTC) Could not connect to Database! Invalid Credentials or Postgres is not running
Issues & Open Tasks
- fix configuration (see
server.js
changes) to actually use defaults for missing env variables - postgres initialisation: you're using
setup.js
, but the Postgres image requires.sql
or.sh
scripts, see section "How to extend this image" at https://hub.docker.com/_/postgres/ - add
dump-init
, see https://github.com/Yelp/dumb-init
Build hooks
I've also added build hooks for Docker Hub - if you don't want to publish the image there these could be removed again. For documentation see
- https://docs.docker.com/docker-cloud/builds/advanced/#override-build-test-or-push-commands
- https://github.com/rossf7/label-schema-automated-build
- https://gist.github.com/DarrenN/8c6a5b969481725a4413
Next steps
Further things that could be done:
- a container running the cleaning up cron job (and potentially other cron jobs)
from ethics-app.
Related Issues (20)
- Minor issues HOT 2
- Consent form for underage persons HOT 3
- Refactoring translations
- Dynamic pages in pagination
- Pending Review Reminder
- Link to HowTo Review w/ Ethics-App on Start Page HOT 1
- Email Notification on Review Start. HOT 1
- New Questions
- Additional custom "Questions" HOT 2
- Additional Points on Consent Form
- Critical Cases Flag/Status HOT 1
- Export of Review-Process
- Password Generation HOT 2
- App logo
- Angular template crashes on login (User-client)
- Text-processing for changes HOT 2
- Receipts HOT 1
- Member login fail counter not resetting
- Incorrect error detection in SMTP connection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ethics-app.