Skip to content

Commit ca1f293

Browse files
jeanp413mustard-mh
authored andcommitted
Update uid an gid in bionic images
1 parent d767ed1 commit ca1f293

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

archived/bionic-arm32v7/Dockerfile_Unused

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 \

archived/bionic-arm64/Dockerfile_Unused

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ FROM ${REPO}:${TAG}
44

55
ARG DEBIAN_FRONTEND=noninteractive
66

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
10+
711
# ubuntu keeps its i386/amd64 and other architecture repos separate
812
# the default i386/amd64 packages can be found in http://archive.ubuntu.com while all other architectures are in http://ports.ubuntu.com/
913
# add the required repos for armhf/arm64 and only fetch i386/amd64 from archive.ubuntu.com (to prevent apt from erroring about missing architecture support)

archived/bionic-armhf/Dockerfile_Unused

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ FROM ${REPO}:${TAG}
44

55
ARG DEBIAN_FRONTEND=noninteractive
66

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
10+
711
# ubuntu keeps its i386/amd64 and other architecture repos separate
812
# the default i386/amd64 packages can be found in http://archive.ubuntu.com while all other architectures are in http://ports.ubuntu.com/
913
# add the required repos for armhf/arm64 and only fetch i386/amd64 from archive.ubuntu.com (to prevent apt from erroring about missing architecture support)

archived/bionic-x64-v1/Dockerfile_Unused

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)