Monday 15 September 2014

playframework - Keeping a Play framework app running in a Docker container without a pseudo-TTY -



playframework - Keeping a Play framework app running in a Docker container without a pseudo-TTY -

i have development setup need multiple containers running different services, , i'm trying utilize fig accomplish this. else works fine, 1 of these services play framework app, , not want remain running unless gets pseudo-tty. fine , good, since want coordinate these multiple containers, want fig up, , command not seem allocate pseudo-tty's, process dies after startup, , containers along it.

i've created a repository showcase of problem can clone , run, instructions in readme. if can shed lite on how create e.g. middleman script maintain app running, or other solution fig up linked container setup, that'd brilliant.

alternatively, if using other methods of coordinating multiple containers this, maybe nice shell script runner manages things, welcome insight.

edit: changed accepted reply because new 1 solves problem. workaround reply still has valuable info, though.

fig has been replaced docker compose, , in docker-compose.yml file can add together stdin_open: true setting, should prepare issue:

web: image: brikis98/ping-play ports: - "9000:9000" stdin_open: true

in illustration above, brikis98/ping-play image play app executes activator run default. if run docker-compose up on yaml file above, play app boots , keeps running instead of exiting immediately.

playframework docker fig

No comments:

Post a Comment