Public Repository

Last pushed: 2 years ago
Short Description
staruml container, based on ubuntu:14.04
Full Description

Start it with this command and map your current directory into the container:

docker run -ti --rm --net=host -e DISPLAY=$DISPLAY --volume="/tmp/.X11-unix/:/tmp/.X11-unix/:rw" --volume="$HOME/.Xauthority:/home/user/.Xauthority:rw" --volume="$(pwd):/home/user/$(basename $(pwd)):rw" dns2utf8/staruml

Dockerfile:

FROM ubuntu:14.04


RUN apt update && apt upgrade -y && apt install -y hicolor-icon-theme gnome-icon-theme-extras wget

#ADD StarUML-v2.6.0-64-bit.deb /tmp
RUN cd /tmp && wget 'http://staruml.io/download/release/v2.6.0/StarUML-v2.6.0-64-bit.deb' && dpkg -i ./StarUML-v2.6.0-64-bit.deb || apt install -f -y && dpkg -i ./StarUML-v2.6.0-64-bit.deb && rm /tmp/StarUML-v2.6.0-64-bit.deb

# Replace 1000 with your user / group id
RUN export uid=1000 gid=1000 && \
    mkdir -p /home/user/.local/share/ && \
    mkdir -p /home/user/.config/gtk-3.0 && \
    echo -e "[Settings]\ngtk-recent-files-max-age=0\ngtk-recent-files-limit=0" > /home/user/.config/gtk-3.0/settings.ini && \
    echo gtk-recent-files-max-age=0 >> /home/user/.gtkrc-2.0 && \
    echo "user:x:${uid}:${gid}:Developer,,,:/home/user:/bin/bash" >> /etc/passwd && \
    echo "user:x:${uid}:" >> /etc/group && \
    echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user && \
    chmod 0440 /etc/sudoers.d/user && \
    chown ${uid}:${gid} -R /home/user && chmod 755 -R /home/user

USER user
ENV HOME /home/user
CMD /usr/bin/staruml || echo 'try xhost + localhost if it does not start'

# Build like this:
# docker build --no-cache -t dns2utf8/staruml .

# Start like this:
# docker run -ti --rm --net=host -e DISPLAY=$DISPLAY --volume="/tmp/.X11-unix/:/tmp/.X11-unix/:rw" --volume="$HOME/.Xauthority:/home/user/.Xauthority:rw" --volume="$(pwd):/home/user/$(basename $(pwd)):rw" dns2utf8/staruml
Docker Pull Command
Owner
dns2utf8