Versions Compared

Key

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

...

  1. Now we need the version from Odysseus that we want to run. We can use the Odysseus Server Version as an example.
  2. Download Odysseus Server for Linux here (we use the 64-bit version): http://odysseus.informatik.uni-oldenburg.de/index.php?id=76
  3. Unzip the content of your download to the odysseus-folder within our "odysseusdocker"-folder
  4. Create a new file in the "odysseusdocker"-folder with the name "startup.sh" and the content in the box below (e.g. with nano or some other text editor)
  5. Change the permission of the file to be executable: "chmod 744 startup.sh"
  6. With "ls -l" you can see if the file is executable

 

Code Block
languagebash
titlestartup.sh
#!/bin/sh
cd home
cd odysseus
echo "Starting Odysseus ..."
./odysseus

...

  1. In your Terminal window, navigate to the "odysseusdocker"-folder
  2. Type "sudo docker build ." (The " ." refers to the folder we are in. The command assumes a file named "Dockerfile" in that folder.)
  3. Wait (it will take some time to get the basis for our container: Ubuntu and Java 8. But next time you do it it's much faster.)
  4. Now we should see a message that the container was successfully build. We can type "sudo docker images" to see our images.
Code Block
languagebash
titleOur Docker images
Successfully built 36d0ac65435c
tobi@tobi-VirtualBox:~/Documents/odysseusdocker$ sudo docker images
REPOSITORY          TAG                 IMAGE ID            CREATED              VIRTUAL SIZE
<none>              <none>              36d0ac65435c        About a minute ago   950.6 MB
ubuntu              15.10               6ed4652370be        27 hours ago         136.1 MB
tobi@tobi-VirtualBox:~/Documents/odysseusdocker$ 

Now we can run the Docker container:

  1. "sudo docker run