Skip to content

How To Launch The Server

Slava edited this page Jun 6, 2018 · 4 revisions

There are a couple of ways to launch the server:

  1. As executable

Build the project and then go to the build folder where there is a bin directory. Start executable file as usual.

To verify the results open http://localhost:4000/ link.

  1. As Docker Container (Linux)

In order to build an image please use Dockerfile, e.g.

$ sudo docker image build -t gcc-dev .

After building finished ensure that everything okay, e.g.

$ sudo docker image ls

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
gcc-dev             latest              0f17df913f7c        11 minutes ago      1.92GB

Now you can start the container

$ sudo docker run -d -p 4000:9980 0f17df913f7c

As a result, the server has been launched.

Last but not least check the result using the same link as above

Fortunately there is no need to build the image every time. There is Docker Hub where current image has been uploaded and now you can simply pull it

$ docker pull smela/gcc-dev:latest

The latest version is built automatically by cloud.docker.com

Useful links:

Clone this wiki locally