Skip to content

Commit 3ce273f

Browse files
authored
Update uid an gid in bionic images
1 parent fb9f313 commit 3ce273f

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

bionic-arm32v7/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ FROM arm32v7/ubuntu:bionic
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

5-
RUN groupadd --gid 1000 builduser \
6-
&& useradd --uid 1000 --gid builduser --shell /bin/bash --create-home builduser
5+
# Github uses uid 1001 and gid 121
6+
RUN groupadd --gid 121 builduser \
7+
&& useradd --uid 1001 --gid builduser --shell /bin/bash --create-home builduser
78

89
RUN apt-get update && apt-get install -y --no-install-recommends \
910
software-properties-common \

bionic-arm64/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ FROM ${REPO}:${TAG}
44

55
ARG DEBIAN_FRONTEND=noninteractive
66

7-
RUN groupadd --gid 1000 builduser \
8-
&& useradd --uid 1000 --gid builduser --shell /bin/bash --create-home builduser
7+
# Github uses uid 1001 and gid 121
8+
RUN groupadd --gid 121 builduser \
9+
&& useradd --uid 1001 --gid builduser --shell /bin/bash --create-home builduser
910

1011
# ubuntu keeps its i386/amd64 and other architecture repos separate
1112
# the default i386/amd64 packages can be found in http://archive.ubuntu.com while all other architectures are in http://ports.ubuntu.com/

bionic-armhf/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ FROM ${REPO}:${TAG}
44

55
ARG DEBIAN_FRONTEND=noninteractive
66

7-
RUN groupadd --gid 1000 builduser \
8-
&& useradd --uid 1000 --gid builduser --shell /bin/bash --create-home builduser
7+
# Github uses uid 1001 and gid 121
8+
RUN groupadd --gid 121 builduser \
9+
&& useradd --uid 1001 --gid builduser --shell /bin/bash --create-home builduser
910

1011
# ubuntu keeps its i386/amd64 and other architecture repos separate
1112
# the default i386/amd64 packages can be found in http://archive.ubuntu.com while all other architectures are in http://ports.ubuntu.com/

bionic-x64/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ FROM ${REPO}:${TAG}
44

55
ARG DEBIAN_FRONTEND=noninteractive
66

7-
RUN groupadd --gid 1000 builduser \
8-
&& useradd --uid 1000 --gid builduser --shell /bin/bash --create-home builduser \
7+
# Github uses uid 1001 and gid 121
8+
RUN groupadd --gid 121 builduser \
9+
&& useradd --uid 1001 --gid builduser --shell /bin/bash --create-home builduser \
910
&& mkdir -p /setup
1011

1112
# Set up TEMP directory

0 commit comments

Comments
 (0)