1
0
mirror of https://github.com/jcwimer/docker-swarm-autoscaler synced 2026-05-20 11:27:44 +00:00

Initial commit

This commit is contained in:
2018-10-29 07:10:06 -04:00
commit cabc6749a5
7 changed files with 184 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
FROM ubuntu:xenial
RUN apt-get update -qq \
&& apt-get install -y -qq \
jq \
apt-transport-https \
ca-certificates \
curl \
software-properties-common \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" \
&& apt-get update -qq \
&& apt-get install -y -qq \
docker-ce=18.03.0~ce-0~ubuntu \
&& apt-get -qq clean \
&& apt-get autoremove -y \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
COPY auto-scale.sh /auto-scale.sh
RUN chmod a+x /auto-scale.sh
ENTRYPOINT ["/bin/bash"]
CMD ["/auto-scale.sh"]