...
- Now we need the version from Odysseus that we want to run. We can use the Odysseus Server Version as an example.
- Download Odysseus Server for Linux here (we use the 64-bit version): http://odysseus.informatik.uni-oldenburg.de/index.php?id=76
- Unzip the content of your download to the odysseus-folder within our "odysseusdocker"-folder
- 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)
- Change the permission of the file to be executable: "chmod 744 startup.sh"
- With "ls -l" you can see if the file is executable
Code Block | ||||
---|---|---|---|---|
| ||||
#!/bin/sh cd home cd odysseus echo "Starting Odysseus ..." ./odysseus |
...
- In your Terminal window, navigate to the "odysseusdocker"-folder
- Type "sudo docker build ." (The " ." refers to the folder we are in. The command assumes a file named "Dockerfile" in that folder.)
- 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.)
- Now we should see a message that the container was successfully build. We can type "sudo docker images" to see our images.
Code Block | ||||
---|---|---|---|---|
| ||||
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:
- "sudo docker run