-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
46 lines (34 loc) · 1.33 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
FROM tmetsch/mesos_docker
# dependencies
RUN apt-get update
RUN apt-get install --no-install-recommends -y build-essential wget autoconf libncurses5-dev itcl3-dev tcl-dev python2.7 automake
RUN update-ca-certificates -f && apt-get clean && rm -rf /var/lib/apt/lists/*
# install openlava
WORKDIR /tmp
# RUN wget http://www.openlava.org/tarball/openlava-2.2.tar.gz
# RUN tar -xzvf openlava-2.2.tar.gz
ADD openlava-2.2 /tmp/openlava-2.2
WORKDIR openlava-2.2
RUN ./bootstrap.sh
RUN ./configure
RUN make
RUN make install
RUN cd config; cp lsb.hosts lsb.params lsb.queues lsb.users lsf.cluster.openlava lsf.conf lsf.shared openlava.* /opt/openlava-2.2/etc
RUN useradd -r openlava
RUN usermod -aG docker openlava
RUN chown -R openlava:openlava /opt/openlava-2.2
RUN cp /opt/openlava-2.2/etc/openlava /etc/init.d
RUN cp /opt/openlava-2.2/etc/openlava.* /etc/profile.d
ADD etc/lsf.* /opt/openlava-2.2/etc/
ADD etc/lsb.* /opt/openlava-2.2/etc/
ADD bin/elim /opt/openlava-2.2/sbin/
RUN echo "source /opt/openlava-2.2/etc/openlava.sh" >> /root/.bashrc
RUN mkdir -p /home/openlava/
RUN touch /home/openlava/.bashrc
RUN echo "source /opt/openlava-2.2/etc/openlava.sh" >> /home/openlava/.bashrc
# Mesos DCOS service part
ADD mesoslava/ /tmp/mesoslava/
ADD bin/executor.py /tmp/
ADD bin/scheduler.py /tmp/
ENV PYTHONPATH=/usr/local/lib/python2.7/site-packages
WORKDIR /