-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created image for WireFrameSketcher, #10
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
workdir=$(dirname $0) | ||
|
||
. $workdir/functions.sh | ||
|
||
resolve_mugrc | ||
|
||
if [ ! -n "$development_dir" ]; then | ||
development_dir="$HOME/development" | ||
fi | ||
|
||
volumes="$volumes -v $development_dir:/home/developer/development" | ||
|
||
echo "[IDE] Development dir = $development_dir" | ||
|
||
sudo xhost + | ||
|
||
docker ps -a|grep mugwireframesketcher | ||
|
||
if [ "$?" -eq 0 ]; then | ||
docker start mugwireframesketcher | ||
else | ||
docker run -d --name mugwireframesketcher \ | ||
-e DISPLAY=$DISPLAY \ | ||
-v /tmp/.X11-unix:/tmp/.X11-unix \ | ||
-v `pwd`:/workspace \ | ||
$volumes \ | ||
-t seges/mug-wireframesketcher | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER Ladislav Gazo <gazo@seges.sk> | ||
|
||
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list && \ | ||
apt-get update && apt-get install -y software-properties-common && \ | ||
add-apt-repository ppa:webupd8team/java -y && \ | ||
apt-get update && \ | ||
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \ | ||
apt-get install -y oracle-java8-installer libxext-dev libxrender-dev libxtst-dev && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -rf /tmp/* | ||
|
||
# Install libgtk as a separate step so that we can share the layer above with | ||
# the netbeans image | ||
RUN apt-get update && apt-get install -y libgtk2.0-0 libcanberra-gtk-module | ||
|
||
RUN cd /opt && wget http://wireframesketcher.com/downloads/WireframeSketcher-latest_amd64.deb | ||
|
||
RUN apt-get install -y libwebkitgtk-1.0.0 | ||
RUN cd /opt && dpkg -i WireframeSketcher-latest_amd64.deb | ||
|
||
|
||
RUN mkdir -p /home/developer && \ | ||
echo "developer:x:1000:1000:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \ | ||
echo "developer:x:1000:" >> /etc/group && \ | ||
echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \ | ||
chmod 0440 /etc/sudoers.d/developer && \ | ||
chown developer:developer -R /home/developer && \ | ||
chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo | ||
|
||
USER developer | ||
ENV HOME /home/developer | ||
WORKDIR /home/developer | ||
CMD /opt/WireframeSketcher/WireframeSketcher |