Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion chronos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ Build the docker container for a specific chronos, mesos:
Example:
```
./mk.sh 2.3.0-0.1.20141121000021 0.21.0-1.0.ubuntu1404
```
```
Check chronos logs:
````
docker exec <chronos container id> /bin/bash -c "tailf /var/log/messages"
```
7 changes: 7 additions & 0 deletions chronos/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
#start syslog daemon to enable chronos logging
#syslogd is already installed in the chronos image
syslogd
#start chronos
#this is coming from CMD[] in docker file [overwritten while running the chronos image]
"$@"
6 changes: 5 additions & 1 deletion chronos/chronos-template
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
FROM mesosphere/mesos:MESOS_VERSION
MAINTAINER Mesosphere <[email protected]>

RUN apt-get update && apt-get -y install chronos=CHRONOS_VERSION curl
RUN apt-get update && apt-get -y install chronos=CHRONOS_VERSION curl syslogd
RUN rm -rf /etc/mesos
RUN rm -rf /etc/chronos/conf

EXPOSE 4400

COPY bin/docker-entrypoint.sh /

ENTRYPOINT ["/docker-entrypoint.sh"]

CMD ["/usr/bin/chronos", "run_jar", "--http_port", "4400", "--zk_hosts", "localhost:2181", "--master", "zk://localhost:2181"]