Versions Compared

Key

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

...

  • Make sure the permission for ImageMagick_convert.sh is 755.

$cd  $cd chmod 755 ImageMagick_convert.sh

 

  • Build and launch the example software server with the converter

$docker  $docker build –t example-server .

$docker  $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

 

    • Create a directory for your converter outside the directory of example-server

...

 $mkdir mysoftwareserver

 

...

    •  Change to the directory and copy the files from example-server to current

...

    • directory       

$cd mysoftwareserver

$cp –R /path/to/template-converter/example-

...

server .

...

  • Rename the ImageMagick_convert.sh

$mv ImageMagick_convert.sh MyTool_convert.sh

...

  • Modify the MyTool_conver.sh  using any editor (e.g. vim). A simple example is shown below:

Line 2 : Change ImageMagick to MyTool

Line 4 :  Replace foobar with gif

Line 5:  Add ico

...

Then save the file.

 

A detail document explaining how to write converter for any tool can be found here:

...