File tree Expand file tree Collapse file tree 5 files changed +17
-1
lines changed Expand file tree Collapse file tree 5 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ find . -type f -print0 | xargs -0 sed -i "s/\-stackable0\.0\.0\-dev/-stackable${
3030# Create snapshot of the source code including custom patches
3131tar -czf /stackable/kafka-${NEW_VERSION}-src.tar.gz .
3232
33- # TODO: Try to install gradle via package manager (if possible) instead of fetching it from the internet
33+ # We patch Kafka to use our Nexus build repo instead
3434# We don't specify "-x test" to skip the tests, as we might bump some Kafka internal dependencies in the future and
3535# it's a good idea to run the tests in this case.
3636./gradlew clean releaseTarGz
Original file line number Diff line number Diff line change @@ -115,3 +115,16 @@ microdnf clean all
115115chown ${STACKABLE_USER_UID}:0 /stackable/patchable
116116rm -rf /patchable
117117EOF
118+
119+ # Make sure NPM and YARN use our build mirror
120+ # In theory YARN should (I believe) fall back to the npmrc file but we want to make sure...
121+ COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.npmrc /stackable/.npmrc
122+ COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.npmrc /root/.npmrc
123+
124+ # YARN v1
125+ COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.yarnrc /stackable/.yarnrc
126+ COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.yarnrc /root/.yarnrc
127+
128+ # YARN v2++
129+ COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.yarnrc.yml /stackable/.yarnrc.yml
130+ COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.yarnrc.yml /root/.yarnrc.yml
Original file line number Diff line number Diff line change 1+ registry = https://build-repo.stackable.tech/repository/npm-public/
Original file line number Diff line number Diff line change 1+ registry "https://build-repo.stackable.tech/repository/npm-public/"
Original file line number Diff line number Diff line change 1+ npmRegistryServer : " https://build-repo.stackable.tech/repository/npm-public/"
You can’t perform that action at this time.
0 commit comments