Skip to content

Commit 8a0c440

Browse files
committed
PMM-12899 use a dedicated folder for yarn cache
1 parent 757e825 commit 8a0c440

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

build/local/build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ echo $fb_commit_sha > fbCommitSha
4141
# Create cache directories.
4242
test -d "${root_dir}/go-path" || mkdir -p "go-path"
4343
test -d "${root_dir}/go-build" || mkdir -p "go-build"
44+
test -d "${root_dir}/yarn-cache" || mkdir -p "yarn-cache"
4445

4546
PATH_TO_SCRIPTS="sources/pmm/src/github.com/percona/pmm/build/scripts"
4647
export RPMBUILD_DOCKER_IMAGE=perconalab/rpmbuild:3

build/scripts/build-server-rpm

+3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ build() {
112112
if [ -d "${root_dir}/go-build" ]; then
113113
volume_mounts+=" -v ${root_dir}/go-build:/home/builder/.cache/go-build"
114114
fi
115+
if [ -d "${root_dir}/yarn-cache" ]; then
116+
volume_mounts+=" -v ${root_dir}/yarn-cache:/home/builder/.yarn"
117+
fi
115118
if [ -d "${root_dir}/go-path" ]; then
116119
volume_mounts+=" -v ${root_dir}/go-path:/home/builder/go/pkg/mod"
117120
fi

0 commit comments

Comments
 (0)