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

Dockerize app #20

Open
nuest opened this issue May 30, 2017 · 2 comments
Open

Dockerize app #20

nuest opened this issue May 30, 2017 · 2 comments

Comments

@nuest
Copy link

nuest commented May 30, 2017

For other users and also for testing and deployment, it would be useful to prove a Dockerfile and a docker-compose configuration.

Let me know if you would welcome such a contribution.

@nicho90
Copy link
Contributor

nicho90 commented May 30, 2017

Yes, totally! 👍

@nuest
Copy link
Author

nuest commented May 30, 2017

I've created a first prototype, which is based on

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

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

Next steps

Further things that could be done:

  • a container running the cleaning up cron job (and potentially other cron jobs)

@nicho90 nicho90 added this to TODO in Maintenance Sep 27, 2017
@nicho90 nicho90 moved this from TODO to Ideas in Maintenance Sep 27, 2017
@nicho90 nicho90 moved this from Ideas to TODO in Maintenance Jun 28, 2018
@nicho90 nicho90 self-assigned this Jul 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants