-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
79 lines (61 loc) · 2.09 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
FROM node
MAINTAINER Robert Krahn <robert.krahn@gmail.com>
USER root
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update; \
apt-get install -y \
python-software-properties \
curl wget git \
less manpages manpages-dev \
openssl sudo \
lsof dnsutils aspell unzip zip
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# java...!
RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list; \
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list; \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886; \
apt-get update
# auto accept oracle jdk license
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections; \
apt-get install -y oracle-java8-installer ca-certificates
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
RUN apt-get -y install maven
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
RUN /usr/sbin/useradd \
--create-home --home-dir /home/cloxp \
--shell /bin/bash \
--groups sudo \
--password $(openssl passwd -1 "cloxp") \
cloxp
# nodejs tooling
RUN npm install forever -g
# lively
ENV WORKSPACE_LK=/home/cloxp/LivelyKernel \
HOME=/home/cloxp
USER cloxp
ADD gitconfig /home/cloxp/.gitconfig
RUN mkdir /home/cloxp/bin
ENV PATH=$HOME/bin:$PATH
WORKDIR /home/cloxp/
# leiningen
RUN mkdir -p $HOME/bin; \
cd $HOME/bin; \
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein; \
chmod a+x lein; \
./lein
# cloxp
ENV CLOXP_VERSION=pre-0.0.8
RUN wget "https://github.com/cloxp/cloxp-install/archive/$CLOXP_VERSION.zip";
RUN unzip "$CLOXP_VERSION.zip"; \
cd "cloxp-install-$CLOXP_VERSION"; \
./install.sh; \
mv LivelyKernel ../;\
cd ..; \
rm -rf "cloxp-install-$CLOXP_VERSION"; rm "$CLOXP_VERSION.zip";
WORKDIR /home/cloxp/LivelyKernel
EXPOSE 9001 9002 9003 9004 9005 7888 7889 7890 7891 7892
CMD rm *.pid; \
forever bin/lk-server.js \
-p 9001 \
--host 0.0.0.0 \
--db-config '{"enableRewriting":false}'