Skip to content

Instantly share code, notes, and snippets.

@bhr
Created November 9, 2021 14:36
Show Gist options
  • Save bhr/3b526e150589f4ca5685ae50cc9f5980 to your computer and use it in GitHub Desktop.
Save bhr/3b526e150589f4ca5685ae50cc9f5980 to your computer and use it in GitHub Desktop.
Kaniko Cache
FROM node:12-alpine AS base
# DEFAULT ARGS
ENV BASE_PATH=/base
ENV BUILD_PATH=/build
# CHECK TARGET APP PATH IS SET
ARG TARGET_APP_PATH
RUN test -n "$TARGET_APP_PATH" || (echo "TARGET_APP_PATH not set. Need to set TARGET_APP_PATH to the path of the project you're deploying" && false)
ENV TARGET_APP_PATH=${TARGET_APP_PATH}
# CHECK PROJECT ID IS SET
ARG PROJECT_ID
RUN test -n "$PROJECT_ID" || (echo "PROJECT_ID not set. Need to set PROJECT_ID to the GCP project ID you're deploying to" && false)
ENV PROJECT_ID=${PROJECT_ID}
###### BUILDER BASE PREPARING FILES ######
FROM base AS builder_base
WORKDIR ${BASE_PATH}
RUN apk update && \
apk add curl bash git && \
curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin
# GET BASE PACKAGE AND INSTALL IT
FROM base AS package_copy
WORKDIR ${BASE_PATH}
# Cannot use mount=type=bind in kaniko, so we copy things over manually
COPY . ./
RUN find ./* \! -name "package.json" -not -type d -mindepth 0 -maxdepth 99 -print | xargs rm -f
# RUN --mount=type=bind,target=/docker-context \
# cd /docker-context/; \
# find . -name "package.json" -mindepth 0 -maxdepth 6 -exec cp --parents "{}" /base/ \;
# Remove unused sources
COPY ./bin ./bin
RUN node bin/buildPackages.js delete-unused-packages ${TARGET_APP_PATH}
###### INSTALLERS ######
FROM builder_base AS base_installer
WORKDIR ${BASE_PATH}
COPY --from=builder_base ${BASE_PATH} ./
COPY --from=package_copy ${BASE_PATH} ./
COPY yarn.lock ./
ENV PATH=${BASE_PATH}/node_modules/.bin:$PATH
RUN yarn install --production
# Use base_installer as base for installing more packages
FROM base_installer AS installer
WORKDIR ${BASE_PATH}
ENV PATH=${BASE_PATH}/node_modules/.bin:$PATH
RUN yarn install
FROM base_installer as production_installer
WORKDIR ${BASE_PATH}
# Remove <#COMPANY#> folder (compiled contents are to be copied)
RUN rm -rf ./node_modules/@<#COMPANY#>/*
###### BUILDER ######
FROM builder_base AS build
WORKDIR ${BUILD_PATH}
ENV PATH=${BUILD_PATH}/node_modules/.bin:$PATH
COPY --from=installer ${BASE_PATH} ./
COPY . ./
# Delete unused apps/services & packages here again
# RUN node bin/buildPackages.js delete-unused-packages ${TARGET_APP_PATH}
WORKDIR ${BUILD_PATH}${TARGET_APP_PATH}
RUN yarn build:prod && \
/usr/local/bin/node-prune
WORKDIR ${BUILD_PATH}
RUN node bin/buildPackages.js relocate-packages ${TARGET_APP_PATH} && ls -l ./node_modules/@<#COMPANY#>/
###### RUNNER ######
FROM base AS runner
ARG PROJECT_ID
ENV PROJECT_ID=${PROJECT_ID}
ENV PATH=/app/node_modules/.bin:$PATH
WORKDIR /app
# Copy production images from production_installer
COPY --from=production_installer ${BASE_PATH}/node_modules ./node_modules
# Copy from build
COPY --from=build ${BUILD_PATH}/node_modules/@<#COMPANY#> ./node_modules/@<#COMPANY#>
COPY --from=build ${BUILD_PATH}${TARGET_APP_PATH}/dist ./dist
COPY --from=build ${BUILD_PATH}${TARGET_APP_PATH}/package*.json ${BUILD_PATH}${TARGET_APP_PATH}/.env* ./
# Start the server
ENV PORT=8080
CMD yarn run start -p ${PORT}
INFO[2021-11-09T13:11:35Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:11:35Z] CMD yarn run start -p ${PORT}
INFO[2021-11-09T13:11:35Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:11:35Z] ENV PORT=8080
INFO[2021-11-09T13:11:35Z] Taking snapshot of files...
INFO[2021-11-09T13:11:35Z] Resolving srcs [/build/services/auth-api/package*.json /build/services/auth-api/.env*]...
INFO[2021-11-09T13:11:35Z] COPY --from=build ${BUILD_PATH}${TARGET_APP_PATH}/package*.json ${BUILD_PATH}${TARGET_APP_PATH}/.env* ./
INFO[2021-11-09T13:11:35Z] Taking snapshot of files...
INFO[2021-11-09T13:11:35Z] COPY --from=build ${BUILD_PATH}${TARGET_APP_PATH}/dist ./dist
INFO[2021-11-09T13:11:35Z] Taking snapshot of files...
INFO[2021-11-09T13:11:35Z] COPY --from=build ${BUILD_PATH}/node_modules/@<#company#> ./node_modules/@<#company#>
INFO[2021-11-09T13:11:32Z] Taking snapshot of files...
INFO[2021-11-09T13:11:31Z] COPY --from=production_installer ${BASE_PATH}/node_modules ./node_modules
INFO[2021-11-09T13:11:31Z] Taking snapshot of files...
INFO[2021-11-09T13:11:31Z] Creating directory /app
INFO[2021-11-09T13:11:31Z] Changed working directory to /app
INFO[2021-11-09T13:11:31Z] cmd: workdir
INFO[2021-11-09T13:11:31Z] WORKDIR /app
INFO[2021-11-09T13:11:31Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:11:31Z] ENV PATH=/app/node_modules/.bin:$PATH
INFO[2021-11-09T13:11:31Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:11:31Z] ENV PROJECT_ID=${PROJECT_ID}
INFO[2021-11-09T13:11:31Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:11:31Z] ARG PROJECT_ID
INFO[2021-11-09T13:11:29Z] Unpacking rootfs as cmd COPY --from=production_installer ${BASE_PATH}/node_modules ./node_modules requires it.
INFO[2021-11-09T13:11:29Z] Executing 0 build triggers
INFO[2021-11-09T13:11:29Z] Base image from previous stage 0 found, using saved tar at path /kaniko/stages/0
INFO[2021-11-09T13:11:28Z] Deleting filesystem...
INFO[2021-11-09T13:11:28Z] Saving file build/services/auth-api/.env.development for later use
INFO[2021-11-09T13:11:28Z] Saving file build/services/auth-api/.env for later use
INFO[2021-11-09T13:11:28Z] Saving file build/services/auth-api/package.json for later use
INFO[2021-11-09T13:11:28Z] Saving file build/services/auth-api/dist for later use
INFO[2021-11-09T13:11:28Z] Saving file build/node_modules/@<#company#> for later use
INFO[2021-11-09T13:11:26Z] Pushing layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:aaeb886a2b417999a9b30885631e6533220aed34a1ce8bac0b4998798a669a86 to cache now
INFO[2021-11-09T13:11:25Z] Taking snapshot of full filesystem...
lrwxrwxrwx 1 root root 20 Nov 9 13:11 utils_orig -> ../../packages/utils
drwxr-xr-x 5 root root 4096 Nov 9 13:11 utils
lrwxrwxrwx 1 root root 28 Nov 9 13:11 service-utils_orig -> ../../packages/service-utils
drwxr-xr-x 5 root root 4096 Nov 9 13:11 service-utils
lrwxrwxrwx 1 root root 28 Nov 9 13:11 backend-utils_orig -> ../../packages/backend-utils
drwxr-xr-x 5 root root 4096 Nov 9 13:11 backend-utils
lrwxrwxrwx 1 root root 23 Nov 9 13:11 auth-api -> ../../services/auth-api
total 12
Path to module: /build/packages/backend-utils
Resolved path: ../../packages/backend-utils
Absolute module path: /build/node_modules/@<#company#>/backend-utils
Path to module: /build/packages/service-utils
Resolved path: ../../packages/service-utils
Absolute module path: /build/node_modules/@<#company#>/service-utils
Path to module: /build/packages/utils
Resolved path: ../../packages/utils
Absolute module path: /build/node_modules/@<#company#>/utils
}
'@<#company#>/backend-utils' => 'backend-utils'
'@<#company#>/service-utils' => 'service-utils',
'@<#company#>/utils' => 'utils',
Map {
[ '@<#company#>/utils' ]
Child dependencies
Package path: /build/packages/backend-utils/package.json
Module path: /build/packages/backend-utils
Dependency: @<#company#>/backend-utils
[ '@<#company#>/utils' ]
Child dependencies
Package path: /build/packages/service-utils/package.json
Module path: /build/packages/service-utils
Dependency: @<#company#>/service-utils
[]
Child dependencies
Package path: /build/packages/utils/package.json
Module path: /build/packages/utils
Dependency: @<#company#>/utils
]
'@<#company#>/utils'
'@<#company#>/service-utils',
'@<#company#>/backend-utils',
[
Package path: /build/services/auth-api/package.json
Base Folder: /build
INFO[2021-11-09T13:11:24Z] Running: [/bin/sh -c node bin/buildPackages.js relocate-packages ${TARGET_APP_PATH} && ls -l ./node_modules/@<#company#>/]
INFO[2021-11-09T13:11:24Z] args: [-c node bin/buildPackages.js relocate-packages ${TARGET_APP_PATH} && ls -l ./node_modules/@<#company#>/]
INFO[2021-11-09T13:11:24Z] cmd: /bin/sh
INFO[2021-11-09T13:11:24Z] RUN node bin/buildPackages.js relocate-packages ${TARGET_APP_PATH} && ls -l ./node_modules/@<#company#>/
INFO[2021-11-09T13:11:24Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:11:24Z] Changed working directory to /build
INFO[2021-11-09T13:11:24Z] cmd: workdir
INFO[2021-11-09T13:11:24Z] WORKDIR ${BUILD_PATH}
INFO[2021-11-09T13:11:24Z] Pushing layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:a58c6d51271df2339bdf41d26a95ca1baff212e5c440e4c5c932c31c5f858dfe to cache now
INFO[2021-11-09T13:11:24Z] Taking snapshot of full filesystem...
duration 7ms
size removed 3.9 MB
files removed 128
files total 372
Done in 8.12s.
$ NODE_ENV=production tsc --build ./tsconfig.json
$ yarn run compile
yarn run v1.22.15
INFO[2021-11-09T13:11:15Z] Running: [/bin/sh -c yarn build:prod && /usr/local/bin/node-prune]
INFO[2021-11-09T13:11:15Z] args: [-c yarn build:prod && /usr/local/bin/node-prune]
INFO[2021-11-09T13:11:15Z] cmd: /bin/sh
INFO[2021-11-09T13:11:14Z] Taking snapshot of full filesystem...
INFO[2021-11-09T13:11:14Z] RUN yarn build:prod && /usr/local/bin/node-prune
INFO[2021-11-09T13:11:14Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:11:14Z] Changed working directory to /build/services/auth-api
INFO[2021-11-09T13:11:14Z] cmd: workdir
INFO[2021-11-09T13:11:14Z] WORKDIR ${BUILD_PATH}${TARGET_APP_PATH}
INFO[2021-11-09T13:11:14Z] Taking snapshot of files...
INFO[2021-11-09T13:11:12Z] COPY . ./
INFO[2021-11-09T13:11:04Z] Taking snapshot of files...
INFO[2021-11-09T13:11:00Z] COPY --from=installer ${BASE_PATH} ./
INFO[2021-11-09T13:11:00Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:11:00Z] ENV PATH=${BUILD_PATH}/node_modules/.bin:$PATH
INFO[2021-11-09T13:11:00Z] Taking snapshot of files...
INFO[2021-11-09T13:11:00Z] Creating directory /build
INFO[2021-11-09T13:11:00Z] Changed working directory to /build
INFO[2021-11-09T13:11:00Z] cmd: workdir
INFO[2021-11-09T13:11:00Z] WORKDIR ${BUILD_PATH}
INFO[2021-11-09T13:10:58Z] Unpacking rootfs as cmd COPY --from=installer ${BASE_PATH} ./ requires it.
INFO[2021-11-09T13:10:58Z] No cached layer found for cmd RUN yarn build:prod && /usr/local/bin/node-prune
INFO[2021-11-09T13:10:58Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:a58c6d51271df2339bdf41d26a95ca1baff212e5c440e4c5c932c31c5f858dfe...
INFO[2021-11-09T13:10:57Z] Executing 0 build triggers
INFO[2021-11-09T13:10:57Z] Base image from previous stage 1 found, using saved tar at path /kaniko/stages/1
INFO[2021-11-09T13:10:56Z] Deleting filesystem...
INFO[2021-11-09T13:10:55Z] Saving file base/node_modules for later use
INFO[2021-11-09T13:10:52Z] Pushing layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:64dbe7fec074806e5b2952d59ff3c306701411daff4d2d19adb7c1fcb357e043 to cache now
INFO[2021-11-09T13:10:51Z] Taking snapshot of full filesystem...
INFO[2021-11-09T13:10:51Z] Running: [/bin/sh -c rm -rf ./node_modules/@<#company#>/*]
INFO[2021-11-09T13:10:51Z] args: [-c rm -rf ./node_modules/@<#company#>/*]
INFO[2021-11-09T13:10:51Z] cmd: /bin/sh
INFO[2021-11-09T13:10:44Z] Taking snapshot of full filesystem...
INFO[2021-11-09T13:10:44Z] RUN rm -rf ./node_modules/@<#company#>/*
INFO[2021-11-09T13:10:44Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:10:44Z] Changed working directory to /base
INFO[2021-11-09T13:10:44Z] cmd: workdir
INFO[2021-11-09T13:10:44Z] WORKDIR ${BASE_PATH}
INFO[2021-11-09T13:10:35Z] Unpacking rootfs as cmd RUN rm -rf ./node_modules/@<#company#>/* requires it.
INFO[2021-11-09T13:10:35Z] No cached layer found for cmd RUN rm -rf ./node_modules/@<#company#>/*
INFO[2021-11-09T13:10:35Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:64dbe7fec074806e5b2952d59ff3c306701411daff4d2d19adb7c1fcb357e043...
INFO[2021-11-09T13:10:35Z] Executing 0 build triggers
INFO[2021-11-09T13:10:35Z] Base image from previous stage 3 found, using saved tar at path /kaniko/stages/3
INFO[2021-11-09T13:10:32Z] Deleting filesystem...
INFO[2021-11-09T13:10:30Z] Saving file base for later use
INFO[2021-11-09T13:10:21Z] Pushing layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:54fbc78dae5e4dec2c5b6ea7dc9fe61ba1a64ede51b6494b46078c8c573a3bf2 to cache now
INFO[2021-11-09T13:10:11Z] Taking snapshot of full filesystem...
Done in 9.99s.
success Saved lockfile.
[4/4] Building fresh packages...
warning "workspace-aggregator-a6e0e2ae-5e39-47d6-93cd-2dd735bd049a > @<#company#>/service-utils > @opentelemetry/tracing > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-a6e0e2ae-5e39-47d6-93cd-2dd735bd049a > @<#company#>/service-utils > @opentelemetry/node > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-a6e0e2ae-5e39-47d6-93cd-2dd735bd049a > @<#company#>/service-utils > @opentelemetry/node > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-a6e0e2ae-5e39-47d6-93cd-2dd735bd049a > @<#company#>/service-utils > @opentelemetry/node > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-a6e0e2ae-5e39-47d6-93cd-2dd735bd049a > @<#company#>/service-utils > @opentelemetry/node > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-a6e0e2ae-5e39-47d6-93cd-2dd735bd049a > @<#company#>/service-utils > @google-cloud/opentelemetry-cloud-trace-exporter > @google-cloud/[email protected]" has unmet peer dependency "@opentelemetry/semantic-conventions@^0.22.0".
warning "workspace-aggregator-a6e0e2ae-5e39-47d6-93cd-2dd735bd049a > @<#company#>/service-utils > @google-cloud/opentelemetry-cloud-trace-exporter > @google-cloud/[email protected]" has unmet peer dependency "@opentelemetry/resources@^0.22.0".
warning "workspace-aggregator-a6e0e2ae-5e39-47d6-93cd-2dd735bd049a > @<#company#>/service-utils > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-a6e0e2ae-5e39-47d6-93cd-2dd735bd049a > @<#company#>/service-utils > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-a6e0e2ae-5e39-47d6-93cd-2dd735bd049a > @<#company#>/service-utils > @google-cloud/[email protected]" has incorrect peer dependency "@opentelemetry/tracing@^0.22.0".
warning "workspace-aggregator-a6e0e2ae-5e39-47d6-93cd-2dd735bd049a > @<#company#>/service-utils > @google-cloud/[email protected]" has unmet peer dependency "@opentelemetry/resources@^0.22.0".
warning "@nighttrax/eslint-config-tsx > @nighttrax/eslint-config-react > eslint-config-airbnb > [email protected]" has unmet peer dependency "eslint-plugin-import@^2.22.1".
warning "@nighttrax/eslint-config-tsx > @nighttrax/eslint-config-react > [email protected]" has unmet peer dependency "eslint-plugin-react-hooks@^4 || ^3 || ^2.3.0 || ^1.7.0".
warning "@nighttrax/eslint-config-tsx > @nighttrax/eslint-config-react > [email protected]" has unmet peer dependency "eslint-plugin-import@^2.22.1".
[3/4] Linking dependencies...
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
[2/4] Fetching packages...
[1/4] Resolving packages...
yarn install v1.22.15
INFO[2021-11-09T13:10:00Z] Running: [/bin/sh -c yarn install]
INFO[2021-11-09T13:10:00Z] args: [-c yarn install]
INFO[2021-11-09T13:10:00Z] cmd: /bin/sh
INFO[2021-11-09T13:09:53Z] Taking snapshot of full filesystem...
INFO[2021-11-09T13:09:53Z] RUN yarn install
INFO[2021-11-09T13:09:53Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:09:53Z] ENV PATH=${BASE_PATH}/node_modules/.bin:$PATH
INFO[2021-11-09T13:09:53Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:09:53Z] Changed working directory to /base
INFO[2021-11-09T13:09:53Z] cmd: workdir
INFO[2021-11-09T13:09:53Z] WORKDIR ${BASE_PATH}
INFO[2021-11-09T13:09:45Z] Unpacking rootfs as cmd RUN yarn install requires it.
INFO[2021-11-09T13:09:45Z] No cached layer found for cmd RUN yarn install
INFO[2021-11-09T13:09:44Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:54fbc78dae5e4dec2c5b6ea7dc9fe61ba1a64ede51b6494b46078c8c573a3bf2...
INFO[2021-11-09T13:09:44Z] Executing 0 build triggers
INFO[2021-11-09T13:09:44Z] Base image from previous stage 3 found, using saved tar at path /kaniko/stages/3
INFO[2021-11-09T13:09:43Z] Deleting filesystem...
INFO[2021-11-09T13:09:37Z] Storing source image from stage 3 at path /kaniko/stages/3
INFO[2021-11-09T13:09:27Z] Pushing layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:ab0d3c811867a67615b745e48cf02049620ce5b66c8897eb0e25160c8d13aeb2 to cache now
INFO[2021-11-09T13:09:11Z] Taking snapshot of full filesystem...
Done in 19.37s.
success Saved lockfile.
[4/4] Building fresh packages...
warning "workspace-aggregator-dff25522-f254-4abc-a47c-957221e4d8f9 > @<#company#>/service-utils > @opentelemetry/tracing > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-dff25522-f254-4abc-a47c-957221e4d8f9 > @<#company#>/service-utils > @opentelemetry/node > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-dff25522-f254-4abc-a47c-957221e4d8f9 > @<#company#>/service-utils > @opentelemetry/node > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-dff25522-f254-4abc-a47c-957221e4d8f9 > @<#company#>/service-utils > @opentelemetry/node > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-dff25522-f254-4abc-a47c-957221e4d8f9 > @<#company#>/service-utils > @opentelemetry/node > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-dff25522-f254-4abc-a47c-957221e4d8f9 > @<#company#>/service-utils > @google-cloud/opentelemetry-cloud-trace-exporter > @google-cloud/[email protected]" has unmet peer dependency "@opentelemetry/semantic-conventions@^0.22.0".
warning "workspace-aggregator-dff25522-f254-4abc-a47c-957221e4d8f9 > @<#company#>/service-utils > @google-cloud/opentelemetry-cloud-trace-exporter > @google-cloud/[email protected]" has unmet peer dependency "@opentelemetry/resources@^0.22.0".
warning "workspace-aggregator-dff25522-f254-4abc-a47c-957221e4d8f9 > @<#company#>/service-utils > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-dff25522-f254-4abc-a47c-957221e4d8f9 > @<#company#>/service-utils > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@^0.21.0".
warning "workspace-aggregator-dff25522-f254-4abc-a47c-957221e4d8f9 > @<#company#>/service-utils > @google-cloud/[email protected]" has incorrect peer dependency "@opentelemetry/tracing@^0.22.0".
warning "workspace-aggregator-dff25522-f254-4abc-a47c-957221e4d8f9 > @<#company#>/service-utils > @google-cloud/[email protected]" has unmet peer dependency "@opentelemetry/resources@^0.22.0".
warning "@nighttrax/eslint-config-tsx > @nighttrax/eslint-config-react > eslint-config-airbnb > [email protected]" has unmet peer dependency "eslint-plugin-import@^2.22.1".
warning "@nighttrax/eslint-config-tsx > @nighttrax/eslint-config-react > [email protected]" has unmet peer dependency "eslint-plugin-react-hooks@^4 || ^3 || ^2.3.0 || ^1.7.0".
warning "@nighttrax/eslint-config-tsx > @nighttrax/eslint-config-react > [email protected]" has unmet peer dependency "eslint-plugin-import@^2.22.1".
[3/4] Linking dependencies...
[2/4] Fetching packages...
[1/4] Resolving packages...
yarn install v1.22.15
INFO[2021-11-09T13:08:51Z] Running: [/bin/sh -c yarn install --production]
INFO[2021-11-09T13:08:51Z] args: [-c yarn install --production]
INFO[2021-11-09T13:08:51Z] cmd: /bin/sh
INFO[2021-11-09T13:08:49Z] Taking snapshot of full filesystem...
INFO[2021-11-09T13:08:49Z] RUN yarn install --production
INFO[2021-11-09T13:08:49Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:08:49Z] ENV PATH=${BASE_PATH}/node_modules/.bin:$PATH
INFO[2021-11-09T13:08:49Z] Taking snapshot of files...
INFO[2021-11-09T13:08:49Z] COPY yarn.lock ./
INFO[2021-11-09T13:08:49Z] Taking snapshot of files...
INFO[2021-11-09T13:08:49Z] COPY --from=package_copy ${BASE_PATH} ./
INFO[2021-11-09T13:08:49Z] Taking snapshot of files...
INFO[2021-11-09T13:08:49Z] COPY --from=builder_base ${BASE_PATH} ./
INFO[2021-11-09T13:08:49Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:08:49Z] Changed working directory to /base
INFO[2021-11-09T13:08:49Z] cmd: workdir
INFO[2021-11-09T13:08:49Z] WORKDIR ${BASE_PATH}
INFO[2021-11-09T13:08:48Z] Unpacking rootfs as cmd COPY --from=builder_base ${BASE_PATH} ./ requires it.
INFO[2021-11-09T13:08:48Z] No cached layer found for cmd RUN yarn install --production
INFO[2021-11-09T13:08:47Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:ab0d3c811867a67615b745e48cf02049620ce5b66c8897eb0e25160c8d13aeb2...
INFO[2021-11-09T13:08:47Z] Executing 0 build triggers
INFO[2021-11-09T13:08:47Z] Base image from previous stage 1 found, using saved tar at path /kaniko/stages/1
INFO[2021-11-09T13:08:47Z] Deleting filesystem...
INFO[2021-11-09T13:08:47Z] Saving file base for later use
INFO[2021-11-09T13:08:45Z] Pushing layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:adef2c4430203075927923951782388dc5b042f5333ea63f6412daacb206051f to cache now
INFO[2021-11-09T13:08:45Z] Taking snapshot of full filesystem...
Deleting /base/services/widget-api
Deleting /base/services/posts-social-collecting
Deleting /base/services/posts-import
Deleting /base/services/playground
Deleting /base/services/cloud-functions
Deleting /base/services/clear-cache-coalescing
Deleting /base/services/analytics-processing
Deleting /base/apps
Deleting /base/packages/social-integrations
Deleting /base/packages/shared
Deleting /base/packages/model
Deleting /base/packages/firebase-admin
Deleting /base/packages/firebase
Deleting /base/packages/body-matching
Deleting /base/packages/aws
}
'@<#company#>/backend-utils' => 'backend-utils'
'@<#company#>/service-utils' => 'service-utils',
'@<#company#>/utils' => 'utils',
Map {
[ '@<#company#>/utils' ]
Child dependencies
Package path: /base/packages/backend-utils/package.json
Module path: /base/packages/backend-utils
Dependency: @<#company#>/backend-utils
[ '@<#company#>/utils' ]
Child dependencies
Package path: /base/packages/service-utils/package.json
Module path: /base/packages/service-utils
Dependency: @<#company#>/service-utils
[]
Child dependencies
Package path: /base/packages/utils/package.json
Module path: /base/packages/utils
Dependency: @<#company#>/utils
]
'@<#company#>/utils'
'@<#company#>/service-utils',
'@<#company#>/backend-utils',
[
Package path: /base/services/auth-api/package.json
Base Folder: /base
INFO[2021-11-09T13:08:45Z] Running: [/bin/sh -c node bin/buildPackages.js delete-unused-packages ${TARGET_APP_PATH}]
INFO[2021-11-09T13:08:45Z] args: [-c node bin/buildPackages.js delete-unused-packages ${TARGET_APP_PATH}]
INFO[2021-11-09T13:08:45Z] cmd: /bin/sh
INFO[2021-11-09T13:08:45Z] RUN node bin/buildPackages.js delete-unused-packages ${TARGET_APP_PATH}
INFO[2021-11-09T13:08:45Z] Taking snapshot of files...
INFO[2021-11-09T13:08:45Z] COPY ./bin ./bin
INFO[2021-11-09T13:08:45Z] Pushing layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:86c0db46cef7919b481ccf8c4c48cc5ab1536995f766dac0e2b366a18404b01e to cache now
INFO[2021-11-09T13:08:44Z] Taking snapshot of full filesystem...
INFO[2021-11-09T13:08:44Z] Running: [/bin/sh -c find ./* \! -name "package.json" -not -type d -mindepth 0 -maxdepth 99 -print | xargs rm -f]
INFO[2021-11-09T13:08:44Z] args: [-c find ./* \! -name "package.json" -not -type d -mindepth 0 -maxdepth 99 -print | xargs rm -f]
INFO[2021-11-09T13:08:44Z] cmd: /bin/sh
INFO[2021-11-09T13:08:43Z] Taking snapshot of full filesystem...
INFO[2021-11-09T13:08:43Z] RUN find ./* \! -name "package.json" -not -type d -mindepth 0 -maxdepth 99 -print | xargs rm -f
INFO[2021-11-09T13:08:42Z] Taking snapshot of files...
INFO[2021-11-09T13:08:41Z] COPY . ./
INFO[2021-11-09T13:08:40Z] Taking snapshot of files...
INFO[2021-11-09T13:08:40Z] Creating directory /base
INFO[2021-11-09T13:08:40Z] Changed working directory to /base
INFO[2021-11-09T13:08:40Z] cmd: workdir
INFO[2021-11-09T13:08:40Z] WORKDIR ${BASE_PATH}
INFO[2021-11-09T13:08:39Z] Unpacking rootfs as cmd COPY . ./ requires it.
INFO[2021-11-09T13:08:39Z] No cached layer found for cmd RUN find ./* \! -name "package.json" -not -type d -mindepth 0 -maxdepth 99 -print | xargs rm -f
INFO[2021-11-09T13:08:39Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:86c0db46cef7919b481ccf8c4c48cc5ab1536995f766dac0e2b366a18404b01e...
INFO[2021-11-09T13:08:38Z] Executing 0 build triggers
INFO[2021-11-09T13:08:38Z] Base image from previous stage 0 found, using saved tar at path /kaniko/stages/0
INFO[2021-11-09T13:08:37Z] Deleting filesystem...
INFO[2021-11-09T13:08:37Z] Saving file base for later use
INFO[2021-11-09T13:08:37Z] Storing source image from stage 1 at path /kaniko/stages/1
INFO[2021-11-09T13:08:36Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:08:36Z] RUN apk update && apk add curl bash git && curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin
INFO[2021-11-09T13:08:36Z] Taking snapshot of files...
INFO[2021-11-09T13:08:36Z] Creating directory /base
INFO[2021-11-09T13:08:36Z] Changed working directory to /base
INFO[2021-11-09T13:08:36Z] cmd: workdir
INFO[2021-11-09T13:08:36Z] WORKDIR ${BASE_PATH}
INFO[2021-11-09T13:08:34Z] Using caching version of cmd: RUN apk update && apk add curl bash git && curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin
INFO[2021-11-09T13:08:34Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:f5712a60dfbf0f56ac8034d2bfdb4e1a515e02812eefe3b0f687b8c54a6e83be...
INFO[2021-11-09T13:08:34Z] Executing 0 build triggers
INFO[2021-11-09T13:08:34Z] Base image from previous stage 0 found, using saved tar at path /kaniko/stages/0
INFO[2021-11-09T13:08:34Z] Deleting filesystem...
INFO[2021-11-09T13:08:33Z] Storing source image from stage 0 at path /kaniko/stages/0
INFO[2021-11-09T13:08:33Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:08:33Z] ENV PROJECT_ID=${PROJECT_ID}
INFO[2021-11-09T13:08:33Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:08:33Z] RUN test -n "$PROJECT_ID" || (echo "PROJECT_ID not set. Need to set PROJECT_ID to the GCP project ID you're deploying to" && false)
INFO[2021-11-09T13:08:33Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:08:33Z] ARG PROJECT_ID
INFO[2021-11-09T13:08:33Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:08:33Z] ENV TARGET_APP_PATH=${TARGET_APP_PATH}
INFO[2021-11-09T13:08:33Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:08:33Z] RUN test -n "$TARGET_APP_PATH" || (echo "TARGET_APP_PATH not set. Need to set TARGET_APP_PATH to the path of the project you're deploying" && false)
INFO[2021-11-09T13:08:33Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:08:33Z] ARG TARGET_APP_PATH
INFO[2021-11-09T13:08:33Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:08:33Z] ENV BUILD_PATH=/build
INFO[2021-11-09T13:08:33Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:08:33Z] ENV BASE_PATH=/base
INFO[2021-11-09T13:08:33Z] Skipping unpacking as no commands require it.
INFO[2021-11-09T13:08:33Z] Using caching version of cmd: RUN test -n "$PROJECT_ID" || (echo "PROJECT_ID not set. Need to set PROJECT_ID to the GCP project ID you're deploying to" && false)
INFO[2021-11-09T13:08:32Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:9008b15c2d17ed724026e0fc0e438c23bab218408b70c4a07595716664d403bc...
INFO[2021-11-09T13:08:32Z] Using caching version of cmd: RUN test -n "$TARGET_APP_PATH" || (echo "TARGET_APP_PATH not set. Need to set TARGET_APP_PATH to the path of the project you're deploying" && false)
INFO[2021-11-09T13:08:32Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:b3bdb640c65d7ae9d010df71e5da1f79cfcf3e7deb0d29aeb4090a25b9c9e1e8...
INFO[2021-11-09T13:08:32Z] Executing 0 build triggers
INFO[2021-11-09T13:08:31Z] Retrieving image node:12-alpine
INFO[2021-11-09T13:08:31Z] Retrieving image manifest node:12-alpine
INFO[2021-11-09T13:08:30Z] Retrieving image node:12-alpine
INFO[2021-11-09T13:08:30Z] Retrieving image manifest node:12-alpine
INFO[2021-11-09T13:08:30Z] Built cross stage deps: map[1:[/base] 2:[/base] 4:[/base] 5:[/base/node_modules] 6:[/build/node_modules/@<#company#> /build/services/auth-api/dist /build/services/auth-api/package*.json /build/services/auth-api/.env*]]
INFO[2021-11-09T13:08:30Z] Retrieving image node:12-alpine
INFO[2021-11-09T13:08:30Z] Retrieving image manifest node:12-alpine
INFO[2021-11-09T13:08:29Z] Retrieving image node:12-alpine
INFO[2021-11-09T13:08:29Z] Retrieving image manifest node:12-alpine
INFO[2021-11-09T13:08:29Z] Using dockerignore file: /workspace/preact-apps/.dockerignore
INFO[2021-11-09T13:08:29Z] Resolved base name base to runner
INFO[2021-11-09T13:08:29Z] Resolved base name builder_base to build
INFO[2021-11-09T13:08:29Z] Resolved base name base_installer to production_installer
INFO[2021-11-09T13:08:29Z] Resolved base name base_installer to installer
INFO[2021-11-09T13:08:29Z] Resolved base name builder_base to base_installer
INFO[2021-11-09T13:08:29Z] Resolved base name base to package_copy
INFO[2021-11-09T13:08:29Z] Resolved base name base to builder_base
INFO[2021-11-09T13:08:29Z] Resolved base name node:12-alpine to base
gcr.io/kaniko-project/executor:v1.3.0
Status: Downloaded newer image for gcr.io/kaniko-project/executor:v1.3.0
Digest: sha256:b9eec410fa32cd77cdb7685c70f86a96debb8b087e77e63d7fe37eaadb178709
v1.3.0: Pulling from kaniko-project/executor
Pulling image: gcr.io/kaniko-project/executor:v1.3.0
INFO[2021-11-09T13:15:55Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:15:55Z] CMD yarn run start -p ${PORT}
INFO[2021-11-09T13:15:55Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:15:55Z] ENV PORT=8080
INFO[2021-11-09T13:15:55Z] Taking snapshot of files...
INFO[2021-11-09T13:15:55Z] Resolving srcs [/build/services/auth-api/package*.json /build/services/auth-api/.env*]...
INFO[2021-11-09T13:15:55Z] COPY --from=build ${BUILD_PATH}${TARGET_APP_PATH}/package*.json ${BUILD_PATH}${TARGET_APP_PATH}/.env* ./
INFO[2021-11-09T13:15:55Z] Taking snapshot of files...
INFO[2021-11-09T13:15:55Z] COPY --from=build ${BUILD_PATH}${TARGET_APP_PATH}/dist ./dist
INFO[2021-11-09T13:15:55Z] Taking snapshot of files...
INFO[2021-11-09T13:15:55Z] COPY --from=build ${BUILD_PATH}/node_modules/@<#company#> ./node_modules/@<#company#>
INFO[2021-11-09T13:15:52Z] Taking snapshot of files...
INFO[2021-11-09T13:15:50Z] COPY --from=production_installer ${BASE_PATH}/node_modules ./node_modules
INFO[2021-11-09T13:15:50Z] Taking snapshot of files...
INFO[2021-11-09T13:15:50Z] Creating directory /app
INFO[2021-11-09T13:15:50Z] Changed working directory to /app
INFO[2021-11-09T13:15:50Z] cmd: workdir
INFO[2021-11-09T13:15:50Z] WORKDIR /app
INFO[2021-11-09T13:15:50Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:15:50Z] ENV PATH=/app/node_modules/.bin:$PATH
INFO[2021-11-09T13:15:50Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:15:50Z] ENV PROJECT_ID=${PROJECT_ID}
INFO[2021-11-09T13:15:50Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:15:50Z] ARG PROJECT_ID
INFO[2021-11-09T13:15:49Z] Unpacking rootfs as cmd COPY --from=production_installer ${BASE_PATH}/node_modules ./node_modules requires it.
INFO[2021-11-09T13:15:48Z] Executing 0 build triggers
INFO[2021-11-09T13:15:48Z] Base image from previous stage 0 found, using saved tar at path /kaniko/stages/0
INFO[2021-11-09T13:15:47Z] Deleting filesystem...
INFO[2021-11-09T13:15:47Z] Saving file build/services/auth-api/.env.development for later use
INFO[2021-11-09T13:15:47Z] Saving file build/services/auth-api/.env for later use
INFO[2021-11-09T13:15:47Z] Saving file build/services/auth-api/package.json for later use
INFO[2021-11-09T13:15:47Z] Saving file build/services/auth-api/dist for later use
INFO[2021-11-09T13:15:47Z] Saving file build/node_modules/@<#company#> for later use
INFO[2021-11-09T13:15:47Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:15:47Z] RUN node bin/buildPackages.js relocate-packages ${TARGET_APP_PATH} && ls -l ./node_modules/@<#company#>/
INFO[2021-11-09T13:15:47Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:15:47Z] Changed working directory to /build
INFO[2021-11-09T13:15:47Z] cmd: workdir
INFO[2021-11-09T13:15:47Z] WORKDIR ${BUILD_PATH}
INFO[2021-11-09T13:15:47Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:15:47Z] RUN yarn build:prod && /usr/local/bin/node-prune
INFO[2021-11-09T13:15:47Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:15:47Z] Changed working directory to /build/services/auth-api
INFO[2021-11-09T13:15:47Z] cmd: workdir
INFO[2021-11-09T13:15:47Z] WORKDIR ${BUILD_PATH}${TARGET_APP_PATH}
INFO[2021-11-09T13:15:47Z] Taking snapshot of files...
INFO[2021-11-09T13:15:45Z] COPY . ./
INFO[2021-11-09T13:15:36Z] Taking snapshot of files...
INFO[2021-11-09T13:15:32Z] COPY --from=installer ${BASE_PATH} ./
INFO[2021-11-09T13:15:32Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:15:32Z] ENV PATH=${BUILD_PATH}/node_modules/.bin:$PATH
INFO[2021-11-09T13:15:32Z] Taking snapshot of files...
INFO[2021-11-09T13:15:32Z] Creating directory /build
INFO[2021-11-09T13:15:32Z] Changed working directory to /build
INFO[2021-11-09T13:15:32Z] cmd: workdir
INFO[2021-11-09T13:15:32Z] WORKDIR ${BUILD_PATH}
INFO[2021-11-09T13:15:30Z] Unpacking rootfs as cmd COPY --from=installer ${BASE_PATH} ./ requires it.
INFO[2021-11-09T13:15:30Z] Using caching version of cmd: RUN node bin/buildPackages.js relocate-packages ${TARGET_APP_PATH} && ls -l ./node_modules/@<#company#>/
INFO[2021-11-09T13:15:30Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:aaeb886a2b417999a9b30885631e6533220aed34a1ce8bac0b4998798a669a86...
INFO[2021-11-09T13:15:30Z] Using caching version of cmd: RUN yarn build:prod && /usr/local/bin/node-prune
INFO[2021-11-09T13:15:30Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:a58c6d51271df2339bdf41d26a95ca1baff212e5c440e4c5c932c31c5f858dfe...
INFO[2021-11-09T13:15:29Z] Executing 0 build triggers
INFO[2021-11-09T13:15:29Z] Base image from previous stage 1 found, using saved tar at path /kaniko/stages/1
INFO[2021-11-09T13:15:27Z] Deleting filesystem...
INFO[2021-11-09T13:15:26Z] Saving file base/node_modules for later use
INFO[2021-11-09T13:15:26Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:15:26Z] RUN rm -rf ./node_modules/@<#company#>/*
INFO[2021-11-09T13:15:26Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:15:26Z] Changed working directory to /base
INFO[2021-11-09T13:15:26Z] cmd: workdir
INFO[2021-11-09T13:15:26Z] WORKDIR ${BASE_PATH}
INFO[2021-11-09T13:15:16Z] Using caching version of cmd: RUN rm -rf ./node_modules/@<#company#>/*
INFO[2021-11-09T13:15:16Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:64dbe7fec074806e5b2952d59ff3c306701411daff4d2d19adb7c1fcb357e043...
INFO[2021-11-09T13:15:15Z] Executing 0 build triggers
INFO[2021-11-09T13:15:15Z] Base image from previous stage 3 found, using saved tar at path /kaniko/stages/3
INFO[2021-11-09T13:15:14Z] Deleting filesystem...
INFO[2021-11-09T13:15:10Z] Saving file base for later use
INFO[2021-11-09T13:15:04Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:15:04Z] RUN yarn install
INFO[2021-11-09T13:15:04Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:15:04Z] ENV PATH=${BASE_PATH}/node_modules/.bin:$PATH
INFO[2021-11-09T13:15:04Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:15:04Z] Changed working directory to /base
INFO[2021-11-09T13:15:04Z] cmd: workdir
INFO[2021-11-09T13:15:04Z] WORKDIR ${BASE_PATH}
INFO[2021-11-09T13:14:55Z] Using caching version of cmd: RUN yarn install
INFO[2021-11-09T13:14:55Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:54fbc78dae5e4dec2c5b6ea7dc9fe61ba1a64ede51b6494b46078c8c573a3bf2...
INFO[2021-11-09T13:14:54Z] Executing 0 build triggers
INFO[2021-11-09T13:14:54Z] Base image from previous stage 3 found, using saved tar at path /kaniko/stages/3
INFO[2021-11-09T13:14:53Z] Deleting filesystem...
INFO[2021-11-09T13:14:50Z] Storing source image from stage 3 at path /kaniko/stages/3
INFO[2021-11-09T13:14:41Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:14:41Z] RUN yarn install --production
INFO[2021-11-09T13:14:41Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:14:41Z] ENV PATH=${BASE_PATH}/node_modules/.bin:$PATH
INFO[2021-11-09T13:14:41Z] Taking snapshot of files...
INFO[2021-11-09T13:14:41Z] COPY yarn.lock ./
INFO[2021-11-09T13:14:41Z] Taking snapshot of files...
INFO[2021-11-09T13:14:41Z] COPY --from=package_copy ${BASE_PATH} ./
INFO[2021-11-09T13:14:41Z] Taking snapshot of files...
INFO[2021-11-09T13:14:41Z] COPY --from=builder_base ${BASE_PATH} ./
INFO[2021-11-09T13:14:41Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:14:41Z] Changed working directory to /base
INFO[2021-11-09T13:14:41Z] cmd: workdir
INFO[2021-11-09T13:14:41Z] WORKDIR ${BASE_PATH}
INFO[2021-11-09T13:14:39Z] Unpacking rootfs as cmd COPY --from=builder_base ${BASE_PATH} ./ requires it.
INFO[2021-11-09T13:14:39Z] Using caching version of cmd: RUN yarn install --production
INFO[2021-11-09T13:14:38Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:ab0d3c811867a67615b745e48cf02049620ce5b66c8897eb0e25160c8d13aeb2...
INFO[2021-11-09T13:14:38Z] Executing 0 build triggers
INFO[2021-11-09T13:14:38Z] Base image from previous stage 1 found, using saved tar at path /kaniko/stages/1
INFO[2021-11-09T13:14:38Z] Deleting filesystem...
INFO[2021-11-09T13:14:38Z] Saving file base for later use
INFO[2021-11-09T13:14:38Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:14:38Z] RUN node bin/buildPackages.js delete-unused-packages ${TARGET_APP_PATH}
INFO[2021-11-09T13:14:38Z] Taking snapshot of files...
INFO[2021-11-09T13:14:38Z] COPY ./bin ./bin
INFO[2021-11-09T13:14:38Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:14:38Z] RUN find ./* \! -name "package.json" -not -type d -mindepth 0 -maxdepth 99 -print | xargs rm -f
INFO[2021-11-09T13:14:38Z] Taking snapshot of files...
INFO[2021-11-09T13:14:36Z] COPY . ./
INFO[2021-11-09T13:14:35Z] Taking snapshot of files...
INFO[2021-11-09T13:14:35Z] Creating directory /base
INFO[2021-11-09T13:14:35Z] Changed working directory to /base
INFO[2021-11-09T13:14:35Z] cmd: workdir
INFO[2021-11-09T13:14:35Z] WORKDIR ${BASE_PATH}
INFO[2021-11-09T13:14:33Z] Unpacking rootfs as cmd COPY . ./ requires it.
INFO[2021-11-09T13:14:33Z] Using caching version of cmd: RUN node bin/buildPackages.js delete-unused-packages ${TARGET_APP_PATH}
INFO[2021-11-09T13:14:33Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:adef2c4430203075927923951782388dc5b042f5333ea63f6412daacb206051f...
INFO[2021-11-09T13:14:33Z] Using caching version of cmd: RUN find ./* \! -name "package.json" -not -type d -mindepth 0 -maxdepth 99 -print | xargs rm -f
INFO[2021-11-09T13:14:33Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:86c0db46cef7919b481ccf8c4c48cc5ab1536995f766dac0e2b366a18404b01e...
INFO[2021-11-09T13:14:32Z] Executing 0 build triggers
INFO[2021-11-09T13:14:32Z] Base image from previous stage 0 found, using saved tar at path /kaniko/stages/0
INFO[2021-11-09T13:14:32Z] Deleting filesystem...
INFO[2021-11-09T13:14:32Z] Saving file base for later use
INFO[2021-11-09T13:14:32Z] Storing source image from stage 1 at path /kaniko/stages/1
INFO[2021-11-09T13:14:31Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:14:31Z] RUN apk update && apk add curl bash git && curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin
INFO[2021-11-09T13:14:31Z] Taking snapshot of files...
INFO[2021-11-09T13:14:31Z] Creating directory /base
INFO[2021-11-09T13:14:31Z] Changed working directory to /base
INFO[2021-11-09T13:14:31Z] cmd: workdir
INFO[2021-11-09T13:14:31Z] WORKDIR ${BASE_PATH}
INFO[2021-11-09T13:14:29Z] Using caching version of cmd: RUN apk update && apk add curl bash git && curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin
INFO[2021-11-09T13:14:29Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:f5712a60dfbf0f56ac8034d2bfdb4e1a515e02812eefe3b0f687b8c54a6e83be...
INFO[2021-11-09T13:14:29Z] Executing 0 build triggers
INFO[2021-11-09T13:14:29Z] Base image from previous stage 0 found, using saved tar at path /kaniko/stages/0
INFO[2021-11-09T13:14:29Z] Deleting filesystem...
INFO[2021-11-09T13:14:28Z] Storing source image from stage 0 at path /kaniko/stages/0
INFO[2021-11-09T13:14:28Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:14:28Z] ENV PROJECT_ID=${PROJECT_ID}
INFO[2021-11-09T13:14:28Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:14:28Z] RUN test -n "$PROJECT_ID" || (echo "PROJECT_ID not set. Need to set PROJECT_ID to the GCP project ID you're deploying to" && false)
INFO[2021-11-09T13:14:28Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:14:28Z] ARG PROJECT_ID
INFO[2021-11-09T13:14:28Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:14:28Z] ENV TARGET_APP_PATH=${TARGET_APP_PATH}
INFO[2021-11-09T13:14:28Z] Found cached layer, extracting to filesystem
INFO[2021-11-09T13:14:28Z] RUN test -n "$TARGET_APP_PATH" || (echo "TARGET_APP_PATH not set. Need to set TARGET_APP_PATH to the path of the project you're deploying" && false)
INFO[2021-11-09T13:14:28Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:14:28Z] ARG TARGET_APP_PATH
INFO[2021-11-09T13:14:28Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:14:28Z] ENV BUILD_PATH=/build
INFO[2021-11-09T13:14:28Z] No files changed in this command, skipping snapshotting.
INFO[2021-11-09T13:14:28Z] ENV BASE_PATH=/base
INFO[2021-11-09T13:14:28Z] Skipping unpacking as no commands require it.
INFO[2021-11-09T13:14:28Z] Using caching version of cmd: RUN test -n "$PROJECT_ID" || (echo "PROJECT_ID not set. Need to set PROJECT_ID to the GCP project ID you're deploying to" && false)
INFO[2021-11-09T13:14:28Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:9008b15c2d17ed724026e0fc0e438c23bab218408b70c4a07595716664d403bc...
INFO[2021-11-09T13:14:28Z] Using caching version of cmd: RUN test -n "$TARGET_APP_PATH" || (echo "TARGET_APP_PATH not set. Need to set TARGET_APP_PATH to the path of the project you're deploying" && false)
INFO[2021-11-09T13:14:28Z] Checking for cached layer gcr.io/<#company#>-dev/<#company#>/auth-api-run/cache:b3bdb640c65d7ae9d010df71e5da1f79cfcf3e7deb0d29aeb4090a25b9c9e1e8...
INFO[2021-11-09T13:14:28Z] Executing 0 build triggers
INFO[2021-11-09T13:14:27Z] Retrieving image node:12-alpine
INFO[2021-11-09T13:14:27Z] Retrieving image manifest node:12-alpine
INFO[2021-11-09T13:14:27Z] Retrieving image node:12-alpine
INFO[2021-11-09T13:14:27Z] Retrieving image manifest node:12-alpine
INFO[2021-11-09T13:14:27Z] Built cross stage deps: map[1:[/base] 2:[/base] 4:[/base] 5:[/base/node_modules] 6:[/build/node_modules/@<#company#> /build/services/auth-api/dist /build/services/auth-api/package*.json /build/services/auth-api/.env*]]
INFO[2021-11-09T13:14:26Z] Retrieving image node:12-alpine
INFO[2021-11-09T13:14:26Z] Retrieving image manifest node:12-alpine
INFO[2021-11-09T13:14:26Z] Retrieving image node:12-alpine
INFO[2021-11-09T13:14:26Z] Retrieving image manifest node:12-alpine
INFO[2021-11-09T13:14:26Z] Using dockerignore file: /workspace/preact-apps/.dockerignore
INFO[2021-11-09T13:14:26Z] Resolved base name base to runner
INFO[2021-11-09T13:14:26Z] Resolved base name builder_base to build
INFO[2021-11-09T13:14:26Z] Resolved base name base_installer to production_installer
INFO[2021-11-09T13:14:26Z] Resolved base name base_installer to installer
INFO[2021-11-09T13:14:26Z] Resolved base name builder_base to base_installer
INFO[2021-11-09T13:14:26Z] Resolved base name base to package_copy
INFO[2021-11-09T13:14:26Z] Resolved base name base to builder_base
INFO[2021-11-09T13:14:26Z] Resolved base name node:12-alpine to base
gcr.io/kaniko-project/executor:v1.3.0
Status: Downloaded newer image for gcr.io/kaniko-project/executor:v1.3.0
Digest: sha256:b9eec410fa32cd77cdb7685c70f86a96debb8b087e77e63d7fe37eaadb178709
v1.3.0: Pulling from kaniko-project/executor
Pulling image: gcr.io/kaniko-project/executor:v1.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment