-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed minor issues with ApplianceMonitor and service/job requests; ad…
…ded Chronos and Zookeeper Dockerfiles
- Loading branch information
Showing
8 changed files
with
62 additions
and
21 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
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
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
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
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
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,21 @@ | ||
FROM ubuntu:xenial | ||
MAINTAINER Fan Jiang <dcvan@renci.org> | ||
|
||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF \ | ||
&& echo "deb http://repos.mesosphere.io/debian jessie main" >> /etc/apt/sources.list.d/mesosphere.list \ | ||
&& apt-get update \ | ||
&& apt-get install --no-install-recommends -yq mesos git openjdk-8-jdk python-dev curl iproute2 maven | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh | ||
RUN bash nodesource_setup.sh && rm -rf nodesource_setup.sh | ||
RUN apt-get install -yq nodejs | ||
RUN git clone https://github.com/dcvan24/chronos.git | ||
RUN cd chronos && mvn package -DskipTests | ||
RUN cd .. && cp -a chronos/target/chronos*.jar $HOME && rm -rf chronos | ||
RUN rm -rf $HOME/.m2 | ||
RUN apt-get purge -y maven git && apt-get autoremove -y && apt-get autoclean | ||
|
||
COPY run.sh /usr/bin/run.sh | ||
RUN chmod +x /usr/bin/run.sh | ||
|
||
ENTRYPOINT ["/usr/bin/run.sh"] |
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,4 @@ | ||
#!/bin/bash | ||
export LIBPROCESS_IP=$(ip route get 8.8.8.8 | head -1 | cut -d' ' -f8) | ||
env MESOS_NATIVE_JAVA_LIBRARY=/usr/lib/libmesos.so \ | ||
java -cp $HOME/chronos*.jar org.apache.mesos.chronos.scheduler.Main $@ |
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,9 @@ | ||
FROM ubuntu:xenial | ||
MAINTAINER Fan Jiang <dcvan@renci.org> | ||
|
||
RUN apt-get update \ | ||
&& apt-get install --no-install-recommends -yq zookeeperd | ||
|
||
EXPOSE 2181 | ||
|
||
ENTRYPOINT ["/usr/share/zookeeper/bin/zkServer.sh", "start-foreground"] |