Don't set GIT_SYNC_DEST in Dockerfile.

I'm guessing this is an artifact of previous refactorings.
Currently, GIT_SYNC_ROOT defaults to /git and GIT_SYNC_DEST
defaults to leaf dir of repo.
This commit is contained in:
Frank Farzan 2018-02-05 19:21:13 -08:00
parent 3897ab3936
commit c9f2e62ed3
2 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,6 @@ FROM ARG_FROM
MAINTAINER Tim Hockin <thockin@google.com> MAINTAINER Tim Hockin <thockin@google.com>
ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN
ENV GIT_SYNC_DEST /git
RUN apk update --no-cache && apk add \ RUN apk update --no-cache && apk add \
ca-certificates \ ca-certificates \

View File

@ -49,7 +49,7 @@ var flDepth = flag.Int("depth", envInt("GIT_SYNC_DEPTH", 0),
var flRoot = flag.String("root", envString("GIT_SYNC_ROOT", "/git"), var flRoot = flag.String("root", envString("GIT_SYNC_ROOT", "/git"),
"the root directory for git operations") "the root directory for git operations")
var flDest = flag.String("dest", envString("GIT_SYNC_DEST", ""), var flDest = flag.String("dest", envString("GIT_SYNC_DEST", ""),
"the name at which to publish the checked-out files under --root (defaults to leaf dir of --root)") "the name at which to publish the checked-out files under --root (defaults to leaf dir of --repo)")
var flWait = flag.Float64("wait", envFloat("GIT_SYNC_WAIT", 0), var flWait = flag.Float64("wait", envFloat("GIT_SYNC_WAIT", 0),
"the number of seconds between syncs") "the number of seconds between syncs")
var flOneTime = flag.Bool("one-time", envBool("GIT_SYNC_ONE_TIME", false), var flOneTime = flag.Bool("one-time", envBool("GIT_SYNC_ONE_TIME", false),