-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QD-4594 Unify multiple images for better caches
- Loading branch information
Showing
10 changed files
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
ARG NODE_TAG="16-bullseye-slim" | ||
ARG BASE_TAG="bullseye-slim" | ||
|
||
FROM node:$NODE_TAG AS node_base | ||
FROM debian:$BASE_TAG | ||
|
||
ENV HOME="/root" \ | ||
|
@@ -10,9 +7,8 @@ ENV HOME="/root" \ | |
QODANA_DATA="/data" \ | ||
QODANA_DOCKER="true" | ||
ENV JAVA_HOME="$QODANA_DIST/jbr" \ | ||
QODANA_CONF="$HOME/.config/idea" | ||
|
||
ENV PATH="$QODANA_DIST/bin:/opt/yarn/bin:$PATH" | ||
QODANA_CONF="$HOME/.config/idea" \ | ||
PATH="$QODANA_DIST/bin:$PATH" | ||
|
||
# hadolint ignore=SC2174 | ||
RUN mkdir -m 777 -p /opt $QODANA_DATA $QODANA_CONF && apt-get update && \ | ||
|
@@ -32,12 +28,11 @@ RUN mkdir -m 777 -p /opt $QODANA_DATA $QODANA_CONF && apt-get update && \ | |
git config --global --add safe.directory '*' && \ | ||
rm -rf /var/cache/apt /var/lib/apt/ /tmp/* | ||
|
||
ENV GRADLE_USER_HOME="/data/cache/gradle" | ||
|
||
COPY --from=node_base /usr/local/bin/node /usr/local/bin/ | ||
COPY --from=node_base /usr/local/include/node /usr/local/include/node | ||
COPY --from=node_base /usr/local/lib/node_modules /usr/local/lib/node_modules | ||
COPY --from=node_base /opt/yarn-* /opt/yarn/ | ||
ENV PATH="/opt/yarn/bin:$PATH" | ||
COPY --from=node:16-bullseye-slim /usr/local/bin/node /usr/local/bin/ | ||
COPY --from=node:16-bullseye-slim /usr/local/include/node /usr/local/include/node | ||
COPY --from=node:16-bullseye-slim /usr/local/lib/node_modules /usr/local/lib/node_modules | ||
COPY --from=node:16-bullseye-slim /opt/yarn-* /opt/yarn/ | ||
RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \ | ||
ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx && \ | ||
ln -s /usr/local/lib/node_modules/corepack/dist/corepack.js /usr/local/bin/corepack && \ | ||
|
@@ -47,6 +42,8 @@ RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \ | |
npm install -g [email protected] [email protected] && npm config set update-notifier false && \ | ||
chmod 777 -R "$HOME/.npm" "$HOME/.npmrc" | ||
|
||
ENV GRADLE_USER_HOME="/data/cache/gradle" | ||
|
||
ARG QD_BUILD="QDJVM-2023.2" | ||
ARG QD_RELEASE="2023.2" | ||
# hadolint ignore=DL3003,SC2043 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,8 @@ ENV HOME="/root" \ | |
QODANA_DATA="/data" \ | ||
QODANA_DOCKER="true" | ||
ENV JAVA_HOME="$QODANA_DIST/jbr" \ | ||
QODANA_CONF="$HOME/.config/idea" | ||
ENV PATH="$QODANA_DIST/bin:/opt/yarn/bin:$PATH" | ||
QODANA_CONF="$HOME/.config/idea" \ | ||
PATH="$QODANA_DIST/bin:$PATH" | ||
|
||
# hadolint ignore=SC2174 | ||
RUN mkdir -m 777 -p /opt $QODANA_DATA $QODANA_CONF && apt-get update && \ | ||
|
@@ -32,11 +32,11 @@ RUN mkdir -m 777 -p /opt $QODANA_DATA $QODANA_CONF && apt-get update && \ | |
git config --global --add safe.directory '*' && \ | ||
rm -rf /var/cache/apt /var/lib/apt/ /tmp/* | ||
|
||
COPY --from=composer:2.5.1 /usr/bin/composer /usr/bin/composer | ||
COPY --from=node_base /usr/local/bin/node /usr/local/bin/ | ||
COPY --from=node_base /usr/local/include/node /usr/local/include/node | ||
COPY --from=node_base /usr/local/lib/node_modules /usr/local/lib/node_modules | ||
COPY --from=node_base /opt/yarn-* /opt/yarn/ | ||
ENV PATH="/opt/yarn/bin:$PATH" | ||
COPY --from=node:16-bullseye-slim /usr/local/bin/node /usr/local/bin/ | ||
COPY --from=node:16-bullseye-slim /usr/local/include/node /usr/local/include/node | ||
COPY --from=node:16-bullseye-slim /usr/local/lib/node_modules /usr/local/lib/node_modules | ||
COPY --from=node:16-bullseye-slim /opt/yarn-* /opt/yarn/ | ||
RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \ | ||
ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx && \ | ||
ln -s /usr/local/lib/node_modules/corepack/dist/corepack.js /usr/local/bin/corepack && \ | ||
|
@@ -46,6 +46,8 @@ RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \ | |
npm install -g [email protected] [email protected] && npm config set update-notifier false && \ | ||
chmod 777 -R "$HOME/.npm" "$HOME/.npmrc" | ||
|
||
COPY --from=composer:2.5.1 /usr/bin/composer /usr/bin/composer | ||
|
||
ARG QD_BUILD="QDPHP-2023.2" | ||
ARG QD_RELEASE="2023.2" | ||
# hadolint ignore=DL3003,SC2043 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters