How to develop Erlang Nitrogen applications in Docker

I am trying to develop an efficient workflow for developing Erlang Nitrogen apps in Docker.

Sans Docker, I would keep two terminals:

  • bash terminal to change source.
  • Nitrogen console (erl) for compiling Erlang modules and test expressions

But I can't seem to find a way to do this in Docker. Attempts to open a second terminal open a new container.

Can any soul show the way?

Many thanks,

LRP

+3


source to share


1 answer


You can use docker-enter to enter a running container.

For example, you could do



-- Terminal 1 $ docker run -it foo bash container1$ hackhackhack

-- Terminal 2 $ docker ps ... abcd... foo $ docker-enter abcd container1$ hackhackhack

+2


source







All Articles