we expect the oracle bin file in /usr/local/src cd /usr/local/src #/bin/bash # WF # see # revised from # 1. # Make sure you have the your license file available ADD MagicDraw_16_9_Enterprise_Mobile_key.txt /home/root/java/md WORKDIR /home/root/java/md RUN unzip /home/root/java/md/MD_UML_169_no_install.zip # get the magicdraw sources ADD MD_UML_169_no_install.zip /home/root/java/md/ # Define commonly used JAVA_HOME variable ENV JAVA_HOME /usr/lib/jvm/java-6-oracle # ADD jdk-6u20-linux-圆4.bin /usr/local/src # see FROM ubuntu:12.04 MAINTAINER Wolfgang Fahl () LABEL Description = "Java Magicdraw" # make unzip available # make vim available (to be able to edit configuration files with bash) # make libraries for java available # RUN apt-get update &apt-get install -y vim unzip libxrender1 libxtst6 libxi6 Please try out the following Dockerfile and Gui.java first using the build and run scripts. To get the GUI environment working might be tricky e.g. You need to be able to run a Java 6 Swing GUI in a container. If this works our chances are high that the docker container for Magicdraw will also work. In this step we try out to get a Java Swing GUI to work in a Docker container.
The first step is to try the Prerequisites. The following approach has been tested on Mac OS 10.13.6 High Sierra and Ubuntu 18.04 LTS Bionic Beaver. The goal is to get an older MagicDraw 16.9 working in a container.