-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change style of writing bash commands
- Loading branch information
Showing
1 changed file
with
7 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,21 +2,16 @@ FROM ubuntu:14.04 | |
MAINTAINER Michal Raczka [email protected] | ||
|
||
# install curl | ||
RUN apt-get update && \ | ||
apt-get install -y curl | ||
RUN apt-get update \ | ||
&& apt-get install -y curl | ||
|
||
# install docker-gen | ||
RUN curl -sL https://github.com/jwilder/docker-gen/releases/download/0.3.2/docker-gen-linux-amd64-0.3.2.tar.gz | \ | ||
tar -xz -C /usr/local/bin | ||
RUN curl -sL https://github.com/jwilder/docker-gen/releases/download/0.3.2/docker-gen-linux-amd64-0.3.2.tar.gz \ | ||
| tar -xz -C /usr/local/bin | ||
|
||
# install go-cron | ||
RUN curl -sL https://github.com/michaloo/go-cron/releases/download/v0.0.2/go-cron.tar.gz | \ | ||
tar -x -C /usr/local/bin | ||
|
||
# install forego | ||
# RUN curl -o /usr/local/bin/forego \ | ||
# -sL https://godist.herokuapp.com/projects/ddollar/forego/releases/current/linux-amd64/forego && \ | ||
# chmod u+x /usr/local/bin/forego | ||
RUN curl -sL https://github.com/michaloo/go-cron/releases/download/v0.0.2/go-cron.tar.gz \ | ||
| tar -x -C /usr/local/bin | ||
|
||
# copy project files | ||
ADD . /app | ||
|
@@ -34,6 +29,7 @@ RUN rm /etc/logrotate.d/* && \ | |
ENV DOCKER_HOST unix:///var/run/docker.sock | ||
ENV DOCKER_DIR /var/lib/docker/ | ||
ENV GOCRON_SCHEDULER 0 0 * * * * | ||
|
||
ENV LOGROTATE_MODE daily | ||
ENV LOGROTATE_ROTATE 3 | ||
ENV LOGROTATE_SIZE 512M | ||
|