add Dockerfile for building opensim-gui on Ubuntu Bionic#1267
Conversation
|
Thanks for the PR, much appreciated 👍 . How do we test this so that we verify there's nothing special to your environment? Also what is the use case that you needed to build the gui in a docker container so we can document/publicize? |
|
Hi @aymanhab, thanks for the prompt response. I test it locally using this command: That's the nice part with the above Dockerfile, you are sure that there aren't any extra dependencies installed. It's a clean process with concise installation steps. My need was to explore the installation process of Opensim in Linux, so that I can share the steps with my colleagues at work. I found this to be the easiest and more comprehensive way, rather than giving them scripts that may or not work in their setting. Cheers, |
Fixes issue #1255
Brief summary of changes
Add Dockerfile for building
opensim-guiin a clean environment.Testing I've completed
Tested it under the following Docker version:
CHANGELOG.md
This PR aims to solve the difficulty I encountered when building the
opensim-guifrom source. I found the relevant issue but the discussion there wasn't enough for me to overcome the issues I faced. After building successfully (so so many tries), I wrote this Dockerfile to aid the next Ubuntu Bionic users in their installation process (and debugging).Note 1: One of the main issues encountered, is the usage of
openjdk-8. In my machine, I had installed theopenjdk-11and had to remove it. I’m not sure ifupdate alternatives --config javacould be sufficient. I removed the other version, just to be on the safe side.Note 2: For some reason, the proposed installation of
opensim-guifrom the CI configuration file didn’t work. Especially the commandcmake --build . --config Releaseforopensim-coredidn’t work correctly, since there was no~/opensim-core-installdirectory created. This resulted in some commands in thebuild.xmlofopensim-guito not find some paths, which should have been created from the installation ofopensim-core. I changed the previous command tomake -j4 && make installand worked like a charm.