Skip to content

Commit

Permalink
PMM-12899 use a dedicated folder for yarn cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Mar 31, 2024
1 parent 757e825 commit 8a0c440
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/local/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ echo $fb_commit_sha > fbCommitSha
# Create cache directories.
test -d "${root_dir}/go-path" || mkdir -p "go-path"
test -d "${root_dir}/go-build" || mkdir -p "go-build"
test -d "${root_dir}/yarn-cache" || mkdir -p "yarn-cache"

PATH_TO_SCRIPTS="sources/pmm/src/github.com/percona/pmm/build/scripts"
export RPMBUILD_DOCKER_IMAGE=perconalab/rpmbuild:3
Expand Down
3 changes: 3 additions & 0 deletions build/scripts/build-server-rpm
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ build() {
if [ -d "${root_dir}/go-build" ]; then
volume_mounts+=" -v ${root_dir}/go-build:/home/builder/.cache/go-build"
fi
if [ -d "${root_dir}/yarn-cache" ]; then
volume_mounts+=" -v ${root_dir}/yarn-cache:/home/builder/.yarn"
fi
if [ -d "${root_dir}/go-path" ]; then
volume_mounts+=" -v ${root_dir}/go-path:/home/builder/go/pkg/mod"
fi
Expand Down

0 comments on commit 8a0c440

Please sign in to comment.