forked from fgrehm/docker-netbeans
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
60 lines (44 loc) · 2.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM reto/x11-xpra:5
MAINTAINER Reto Gmür "[email protected]"
# based on docker-netbeans by Fabio Rehm "[email protected]"
# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN echo LC_ALL=en_US.UTF-8 >> /etc/environment
RUN echo "deb http://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
#force-yes needed because of missing certificate for sbt
RUN apt-get update && apt-get install -y --force-yes firefox tilda xfce4-terminal subversion iputils-ping git retext mercurial tcpflow unzip sbt ruby ruby-dev librxtx-java vim
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list && \
apt-get update && apt-get install -y software-properties-common sudo && \
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 npm chromium-browser && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN npm cache clean -f && \
npm install -g n && \
n stable && \
ln -sf /usr/local/n/versions/node/*/bin/node /usr/bin/node
# rm -rf /tmp/* && \
RUN npm install -g browserify
RUN gem install jekyll
RUN echo chromium-browser --no-sandbox > /usr/local/bin/chromium && \
chmod +rx /usr/local/bin/chromium
ADD state.xml /tmp/state.xml
RUN wget http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-javaee-linux.sh -O /tmp/netbeans.sh -q && \
chmod +x /tmp/netbeans.sh && \
echo 'Installing netbeans' && \
/tmp/netbeans.sh --silent --state /tmp/state.xml && \
rm -rf /tmp/* && \
ln -s /usr/local/netbeans-8.2 /usr/local/netbeans
ADD run /usr/local/bin/netbeans
RUN chmod +rx /usr/local/bin/netbeans && \
echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user && \
chmod 0440 /etc/sudoers.d/user
ADD tilda-config /home/template/.config/tilda/config_0
RUN echo "Adding start script"
ADD start-dev-tools.sh /usr/local/bin/start-dev-tools
RUN chmod +rx /usr/local/bin/start-dev-tools