Skip to content

Commit

Permalink
Change to user id 1001
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Apr 27, 2024
1 parent 08d8021 commit e88a670
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
git submodule update --remote Pillow
fi
(cd Pillow && git checkout main)
sudo chown -R 1000 $(pwd)
sudo chown -R 1001 $(pwd)
- name: Test Image Build
if: "matrix.test-image"
Expand Down
2 changes: 1 addition & 1 deletion alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN cd /depends \
&& ./install_imagequant.sh \
&& ./install_raqm.sh

RUN /usr/sbin/adduser -D pillow \
RUN /usr/sbin/adduser -D --uid 1001 pillow \
&& virtualenv /vpy3 \
&& /vpy3/bin/pip install --no-cache-dir --upgrade pip \
&& /vpy3/bin/pip install --no-cache-dir olefile pytest pytest-cov pytest-timeout \
Expand Down
2 changes: 1 addition & 1 deletion amazon-2-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN yum install -y \
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

RUN useradd --uid 1000 pillow
RUN useradd --uid 1001 pillow

RUN wget https://www.python.org/ftp/python/3.9.16/Python-3.9.16.tgz \
&& tar xzf Python-3.9.16.tgz \
Expand Down
2 changes: 1 addition & 1 deletion amazon-2023-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN yum install -y \
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

RUN useradd --uid 1000 pillow
RUN useradd --uid 1001 pillow

RUN bash -c "/usr/bin/pip3 install virtualenv \
&& /usr/bin/python3 -mvirtualenv -p /usr/bin/python3 --system-site-packages /vpy3 \
Expand Down
2 changes: 1 addition & 1 deletion arch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RUN cd /depends \
&& ./install_imagequant.sh \
&& ./install_raqm.sh

RUN /sbin/useradd -m -U -u 1000 pillow \
RUN /sbin/useradd -m -U --uid 1001 pillow \
&& virtualenv --system-site-packages /vpy3 \
&& /vpy3/bin/pip install --no-cache-dir --upgrade pip \
&& /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
Expand Down
2 changes: 1 addition & 1 deletion centos-stream-9-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN yum install -y \
zlib-devel \
&& yum clean all

RUN useradd --uid 1000 pillow
RUN useradd --uid 1001 pillow

RUN bash -c "python3.9 -m pip install virtualenv \
&& python3.9 -m virtualenv --system-site-packages /vpy3 \
Expand Down
2 changes: 1 addition & 1 deletion debian-11-bullseye-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

RUN useradd pillow \
RUN useradd --uid 1001 pillow \
&& addgroup pillow sudo \
&& mkdir /home/pillow \
&& chown pillow:pillow /home/pillow
Expand Down
2 changes: 1 addition & 1 deletion debian-12-bookworm-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

RUN useradd pillow \
RUN useradd --uid 1001 pillow \
&& mkdir /home/pillow \
&& chown pillow:pillow /home/pillow

Expand Down
2 changes: 1 addition & 1 deletion debian-12-bookworm-x86/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-host=i686-unknown-linux-gnu
ENV PATH="/root/.cargo/bin:${PATH}"

RUN useradd pillow \
RUN useradd -u 1001 pillow \
&& mkdir /home/pillow \
&& chown pillow:pillow /home/pillow

Expand Down
2 changes: 1 addition & 1 deletion fedora-39-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN dnf install -y \
zlib-devel \
&& dnf clean all

RUN useradd pillow \
RUN useradd --uid 1001 pillow \
&& chown pillow:pillow /home/pillow

RUN virtualenv -p /usr/bin/python3.12 --system-site-packages /vpy3 \
Expand Down
2 changes: 1 addition & 1 deletion fedora-40-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN dnf install -y \
zlib-devel \
&& dnf clean all

RUN useradd pillow \
RUN useradd --uid 1001 pillow \
&& chown pillow:pillow /home/pillow

RUN virtualenv -p /usr/bin/python3.12 --system-site-packages /vpy3 \
Expand Down
2 changes: 1 addition & 1 deletion gentoo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN emerge --quiet dev-python/virtualenv dev-util/cargo-c dev-build/meson x11-mi
RUN USE="jpeg jpeg2k lcms tiff truetype webp xcb zlib" emerge --quiet --onlydeps dev-python/pillow
RUN emerge --quiet app-text/ghostscript-gpl dev-python/numpy

RUN useradd pillow \
RUN useradd --uid 1001 pillow \
&& chown pillow:pillow /home/pillow

RUN virtualenv --system-site-packages /vpy3 \
Expand Down
2 changes: 1 addition & 1 deletion ubuntu-20.04-focal-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

RUN useradd pillow \
RUN useradd --uid 1001 pillow \
&& addgroup pillow sudo \
&& mkdir /home/pillow \
&& chown pillow:pillow /home/pillow
Expand Down
2 changes: 1 addition & 1 deletion ubuntu-22.04-jammy-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*

RUN useradd pillow \
RUN useradd --uid 1001 pillow \
&& addgroup pillow sudo \
&& mkdir /home/pillow \
&& chown pillow:pillow /home/pillow
Expand Down

0 comments on commit e88a670

Please sign in to comment.