code beautify

This commit is contained in:
Carlos Salguero
2019-08-15 23:46:40 -03:00
parent 47d36cfaa8
commit e03706942c
6 changed files with 71 additions and 29 deletions

View File

@@ -2,7 +2,9 @@ ARG GOLANG_DOCKERHUB_TAG
FROM golang:$GOLANG_DOCKERHUB_TAG
RUN wget https://repo.percona.com/apt/percona-release_0.1-7.stretch_all.deb && dpkg -i percona-release_0.1-7.stretch_all.deb
RUN apt-get update && apt-get install -y percona-server-mongodb-36-server
RUN apt-get update && apt-get install -y --no-install-recommends percona-server-mongodb-36-server \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /go/src/github.com/percona/percona-backup-mongodb
COPY . .

View File

@@ -9,7 +9,7 @@ while [ $tries -lt $max_tries ]; do
[ $? == 0 ] && break
echo "# INFO: 'init' has not completed, retrying check in $sleep_secs secs (try $tries/$max_tries)"
sleep $sleep_secs
tries=$(($tries + 1))
tries=$((tries + 1))
done
if [ $tries -ge $max_tries ]; then
echo "# ERROR: reached max tries $max_tries, exiting"