Install GNU Artanis with Docker

If you're suffering from the installation and dependencies of GNU Artanis, here's an easier way to go.

First, you need Docker, I recommend the official installation document.

Then you can pull Artanis image:

docker pull registry.gitlab.com/nalaginrut/artanis

Now you can run a container:

docker run -it --rm -v /var/www:/var/www -p 3000:3000 registry.gitlab.com/nalaginrut/colt bash

I'm going to explain something:

  1. --rm means to remove the container when you exit, this is useful to keep you environment always clean.
  2. -v /var/www:/var/www means mapping the inside directory to outside, so that you can keep your work after exit.
  3. -p 3000:3000 means mapping inside default port to outside, so that you can see your work outside.
  4. The last option bash means running bash as shell. Unfortunately, our docker image didn't install other shells, so you have to install your favorite shell after you get into the environment.

When everything is prepared, you should do this to boot up Artanis server:

art work -h 0.0.0.0

Because the default host is 127.0.0.1 which is impossible to map the socket port to the outside, so we set the host to 0.0.0.0 to make sure you can checkout your work in the outside browser.


Enjoy!