Skip to content

Commit

Permalink
feat(sidecar): merge with master
Browse files Browse the repository at this point in the history
  • Loading branch information
m0nhawk committed Feb 17, 2020
1 parent d479d65 commit 7474892
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sidecarDockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.12-alpine

RUN apk update && apk add --no-cache git ca-certificates gcc musl-dev git fuse jq curl bash
RUN apk update && apk add --no-cache git ca-certificates gcc musl-dev git fuse jq curl bash python3

RUN mkdir -p $GOPATH/src/github.com/uc-cdis/gen3-fuse
WORKDIR $GOPATH/src/github.com/uc-cdis/gen3-fuse
Expand Down
8 changes: 6 additions & 2 deletions sidecarDockerrun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ while true; do
fi
else
OLDDIR=`df /data/manifest* | grep manifest | cut -d'/' -f 3 | head -n 1`
echo unmount old manifest $OLDDIR
fusermount -u /data/$OLDDIR; rm -rf /data/$OLDDIR
if [ ! -z "$OLDDIR" ]; then
echo unmount old manifest $OLDDIR
fusermount -u /data/$OLDDIR; rm -rf /data/$OLDDIR
else
echo "[WARNING] Empty $OLDDIR"
fi
fi
sleep 10
done

0 comments on commit 7474892

Please sign in to comment.