Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions stackable-devel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ chown ${STACKABLE_USER_UID}:0 /stackable/patchable
rm -rf /patchable
EOF

ARG GITHUB_RUN_ATTEMPT="<unknown>"
ENV GITHUB_RUN_ATTEMPT=${GITHUB_RUN_ATTEMPT}

ARG GITHUB_RUN_ID="<unknown>"
ENV GITHUB_RUN_ID=${GITHUB_RUN_ID}

# Make sure NPM and YARN use our build mirror
# In theory YARN should (I believe) fall back to the npmrc file but we want to make sure...
COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.npmrc /stackable/.npmrc
Expand Down
6 changes: 6 additions & 0 deletions stackable-devel/stackable/.npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ fetch-retry-factor=1.97
# if this needs to be tweaked in the future. This value is also used in the factor tweaking above.
# See https://docs.npmjs.com/cli/v12/using-npm/config#fetch-timeout
fetch-timeout=300000

# By default, `npm/{npm-version} node/{node-version} {platform} {arch} workspaces/{workspaces} {ci}`
# is used. We set a custom user-agent to more easily identify it in relevant logs. See:
# - https://docs.npmjs.com/cli/v8/using-npm/config#user-agent
# - https://docs.npmjs.com/cli/v8/configuring-npm/npmrc#files
user-agent=npm (Workflow run id: ${GITHUB_RUN_ID}, Attempt: ${GITHUB_RUN_ATTEMPT})
Comment thread
NickLarsenNZ marked this conversation as resolved.
3 changes: 3 additions & 0 deletions stackable-devel/stackable/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
npmRegistryServer: "https://build-repo.stackable.tech/repository/npm-public/"

Check warning on line 1 in stackable-devel/stackable/.yarnrc.yml

View workflow job for this annotation

GitHub Actions / prek

1:1 [document-start] missing document start "---"

# By default, yarn retries failed HTTP requests after 3 seconds. We increase this to 50 seconds
# to spam the Nexus instance a little less. In combination with the timeout configured below, this
Expand All @@ -8,3 +8,6 @@
# By default, yarn times out after 1 minute. We increase this to 5 minutes to hopefully get less
# failing builds in CI. See https://yarnpkg.com/configuration/yarnrc#httpTimeout
httpTimeout: 5m

# Ideally, we would want to override the user-agent string here, but yarn currently doesn't support
# that. See https://github.com/yarnpkg/berry/issues/7146
Comment thread
Techassi marked this conversation as resolved.
Loading