Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

       2. Click on the icon for the Quickstart Terminal window to launch it from the Application/Docker folder.  Verify the installation by running the hello-world container.

            $ docker$docker-run hello-world

            If Quickstart Terminal startup script did not configure the shell correctly, you may get message “docker: cannot connect to the Docker daemon. Is the docker daemon running on this host?.”

...

$eval $(docker-machine env default)

             Now  Now, you should be able to run hello-world container.

...

Step 2. Download the template project from the NCSA opensource repository

git clone https://opensource.ncsa.illinois.edu/bitbucket/scm/bd/path/to/template_converter.git

Or, download the template project from the repository: https://opensource.ncsa.illinois.edu/bitbucket/projects/BD/repos/path/to/templatemplate_converter

...

The template-converter directory consists of one file (docker-compose.yml), and one sub-directory, example-server , with two files: Dockerfile and ImageMagick_convert.sh.

 

Step 3: Launching the development set up environment

 

Change to the template-converter directory:

...

$cd template-converter

...

Run the docker-compose.yml:

   

...

   $docker-compose up

...

Docker Compose obtains the ncsa/polyglot-server image, mongodb image and rabbitmq from docker Hub, builds, launches these services within different containers and links them.

...

Step 4: Testing the example-server 

Change to the example-server directory:

...

     $cd example-server

...

Make sure the permission for ImageMagick_convert.sh is 755.

$cd chmod 755 ImageMagick_convert.sh

 

Build and launch the example software server with the converter

$docker build –t example-server .

$docker run --rm -t -i --link polyglot_rabbitmq_1:rabbitmq example-server

 

Check in the browser 192.168.99.100:8184, you should be able to see the test-endpoints of polyglot server.

 

TODO: Redirection to Software Server IP:8182 not working because of the internal/private IP within Docker machine.

 

Step 5: Modifying the template and creating your own converter

...