Skip to content

Commit

Permalink
QD-9339 Fix permissions in 3rd party linters
Browse files Browse the repository at this point in the history
  • Loading branch information
hybloid committed Jul 5, 2024
1 parent 7d108dd commit c4df625
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 16 deletions.
15 changes: 12 additions & 3 deletions 2024.2/base/cdnet.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ ENV GIT_LFS_VERSION="2.13.2-1+b5"
ENV GNUPG2_VERSION="2.2.27-2+deb11u2"
# renovate: datasource=repology depName=debian_11/default-jre versioning=loose
ENV DEFAULT_JRE_VERSION="2:1.11-72"
# renovate: datasource=repology depName=debian_11/locales versioning=loose
ENV LOCALES_VERSION="2.31-13+deb11u10"

ENV QODANA_DATA="/data" \
ENV HOME="/root" \
LC_ALL="en_US.UTF-8" \
QODANA_DATA="/data" \
QODANA_DOCKER="true" \
PATH="/opt/qodana:${PATH}"

Expand All @@ -37,7 +41,9 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
default-jre=$DEFAULT_JRE_VERSION \
git=$GIT_VERSION \
git-lfs=$GIT_LFS_VERSION \
gnupg2=$GNUPG2_VERSION && \
gnupg2=$GNUPG2_VERSION \
locales=$LOCALES_VERSION && \
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen && locale-gen && \
apt-get autoremove -y && apt-get clean && \
curl -fsSL -o /tmp/dotnet-install.sh \
"https://raw.githubusercontent.com/dotnet/install-scripts/$DOTNET_INSTALL_SH_REVISION/src/dotnet-install.sh" && \
Expand All @@ -47,4 +53,7 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
bash /tmp/dotnet-install.sh -c $DOTNET_CHANNEL_A -i $DOTNET_ROOT && \
bash /tmp/dotnet-install.sh -c $DOTNET_CHANNEL_B -i $DOTNET_ROOT && \
bash /tmp/dotnet-install.sh -c $DOTNET_CHANNEL_C -i $DOTNET_ROOT && \
chmod 777 -R $DOTNET_ROOT
chmod 777 -R $DOTNET_ROOT && \
chmod 777 -R $HOME && \
echo 'root:x:0:0:root:/root:/bin/bash' > /etc/passwd && chmod 666 /etc/passwd && \
git config --global --add safe.directory '*'
19 changes: 14 additions & 5 deletions 2024.2/base/cpp.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ ENV MAKE_VERSION="4.3-4.1"
ENV PATCH_VERSION="2.7.6-7"
# renovate: datasource=repology depName=debian_12/libc6-dev versioning=loose
ENV LIBC6_DEV_VERSION="2.36-9+deb12u7"
# renovate: datasource=repology depName=debian_11/locales versioning=loose
ENV LOCALES_VERSION="2.36-9+deb12u7"

ENV QODANA_DATA="/data" \
QODANA_DOCKER="true"
ENV PATH="/opt/qodana:${PATH}"
ENV HOME="/root" \
LC_ALL="en_US.UTF-8" \
QODANA_DATA="/data" \
QODANA_DOCKER="true" \
PATH="/opt/qodana:${PATH}"

ENV CXX="/usr/lib/llvm-$CLANG/bin/clang++" \
CC="/usr/lib/llvm-$CLANG/bin/clang" \
Expand All @@ -60,8 +64,13 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
file=$FILE_VERSION \
make=$MAKE_VERSION \
patch=$PATCH_VERSION \
libc6-dev=$LIBC6_DEV_VERSION && \
apt-get autoremove -y && apt-get clean
libc6-dev=$LIBC6_DEV_VERSION \
locales=$LOCALES_VERSION && \
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen && locale-gen && \
apt-get autoremove -y && apt-get clean && \
chmod 777 -R $HOME && \
echo 'root:x:0:0:root:/root:/bin/bash' > /etc/passwd && chmod 666 /etc/passwd && \
git config --global --add safe.directory '*'

RUN echo "deb https://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-${CLANG} main" > /etc/apt/sources.list.d/llvm.list && \
curl -s https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor > /etc/apt/trusted.gpg.d/llvm.gpg && \
Expand Down
15 changes: 12 additions & 3 deletions next/base/cdnet.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ ENV GIT_LFS_VERSION="2.13.2-1+b5"
ENV GNUPG2_VERSION="2.2.27-2+deb11u2"
# renovate: datasource=repology depName=debian_11/default-jre versioning=loose
ENV DEFAULT_JRE_VERSION="2:1.11-72"
# renovate: datasource=repology depName=debian_11/locales versioning=loose
ENV LOCALES_VERSION="2.31-13+deb11u10"

ENV QODANA_DATA="/data" \
ENV HOME="/root" \
LC_ALL="en_US.UTF-8" \
QODANA_DATA="/data" \
QODANA_DOCKER="true" \
PATH="/opt/qodana:${PATH}"

Expand All @@ -37,7 +41,9 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
default-jre=$DEFAULT_JRE_VERSION \
git=$GIT_VERSION \
git-lfs=$GIT_LFS_VERSION \
gnupg2=$GNUPG2_VERSION && \
gnupg2=$GNUPG2_VERSION \
locales=$LOCALES_VERSION && \
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen && locale-gen && \
apt-get autoremove -y && apt-get clean && \
curl -fsSL -o /tmp/dotnet-install.sh \
"https://raw.githubusercontent.com/dotnet/install-scripts/$DOTNET_INSTALL_SH_REVISION/src/dotnet-install.sh" && \
Expand All @@ -47,4 +53,7 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
bash /tmp/dotnet-install.sh -c $DOTNET_CHANNEL_A -i $DOTNET_ROOT && \
bash /tmp/dotnet-install.sh -c $DOTNET_CHANNEL_B -i $DOTNET_ROOT && \
bash /tmp/dotnet-install.sh -c $DOTNET_CHANNEL_C -i $DOTNET_ROOT && \
chmod 777 -R $DOTNET_ROOT
chmod 777 -R $DOTNET_ROOT && \
chmod 777 -R $HOME && \
echo 'root:x:0:0:root:/root:/bin/bash' > /etc/passwd && chmod 666 /etc/passwd && \
git config --global --add safe.directory '*'
19 changes: 14 additions & 5 deletions next/base/cpp.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ ENV MAKE_VERSION="4.3-4.1"
ENV PATCH_VERSION="2.7.6-7"
# renovate: datasource=repology depName=debian_12/libc6-dev versioning=loose
ENV LIBC6_DEV_VERSION="2.36-9+deb12u7"
# renovate: datasource=repology depName=debian_11/locales versioning=loose
ENV LOCALES_VERSION="2.36-9+deb12u7"

ENV QODANA_DATA="/data" \
QODANA_DOCKER="true"
ENV PATH="/opt/qodana:${PATH}"
ENV HOME="/root" \
LC_ALL="en_US.UTF-8" \
QODANA_DATA="/data" \
QODANA_DOCKER="true" \
PATH="/opt/qodana:${PATH}"

ENV CXX="/usr/lib/llvm-$CLANG/bin/clang++" \
CC="/usr/lib/llvm-$CLANG/bin/clang" \
Expand All @@ -60,8 +64,13 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
file=$FILE_VERSION \
make=$MAKE_VERSION \
patch=$PATCH_VERSION \
libc6-dev=$LIBC6_DEV_VERSION && \
apt-get autoremove -y && apt-get clean
libc6-dev=$LIBC6_DEV_VERSION \
locales=$LOCALES_VERSION && \
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen && locale-gen && \
apt-get autoremove -y && apt-get clean && \
chmod 777 -R $HOME && \
echo 'root:x:0:0:root:/root:/bin/bash' > /etc/passwd && chmod 666 /etc/passwd && \
git config --global --add safe.directory '*'

RUN echo "deb https://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-${CLANG} main" > /etc/apt/sources.list.d/llvm.list && \
curl -s https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor > /etc/apt/trusted.gpg.d/llvm.gpg && \
Expand Down

0 comments on commit c4df625

Please sign in to comment.