Skip to content

Commit

Permalink
Fix: User and group creation of stash for mongodb and mysql (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-redback authored and tamalsaha committed May 15, 2019
1 parent 228df5a commit e962a1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions hack/docker/setup-mongo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ build_docker() {
FROM mongo:4.1.7
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN addgroup -g 1005 stash \
&& adduser -u 1005 -G stash -D stash
RUN groupadd -r stash --gid=1005 \
&& useradd -r -g stash --uid=1005 stash
RUN set -x \
&& apk add --update --no-cache ca-certificates
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates
COPY restic_${NEW_RESTIC_VER} /bin/restic_${NEW_RESTIC_VER}
COPY stash /bin/stash
Expand Down
8 changes: 4 additions & 4 deletions hack/docker/setup-mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ build_docker() {
chmod 755 restic_${NEW_RESTIC_VER}

cat >Dockerfile <<EOL
FROM mysql:8.0.3
FROM mysql:8.0.14
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN addgroup -g 1005 stash \
&& adduser -u 1005 -G stash -D stash
RUN groupadd -r stash --gid=1005 \
&& useradd -r -g stash --uid=1005 stash
RUN set -x \
&& apk add --update --no-cache ca-certificates
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates
COPY restic_${NEW_RESTIC_VER} /bin/restic_${NEW_RESTIC_VER}
COPY stash /bin/stash
Expand Down

0 comments on commit e962a1c

Please sign in to comment.