-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-35910
- Loading branch information
Showing
710 changed files
with
33,612 additions
and
21,963 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
benchmarks/memory/scripts/docker-connect → ...arks/docker-runner/scripts/docker-connect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
DOCKER_ID=$(\ | ||
docker ps --format '{{.Image}}:{{.ID}}' | \ | ||
grep "gatsby-generic-benchmark" | \ | ||
head -n 1 | \ | ||
sed 's/gatsby\-generic\-benchmark://'\ | ||
) | ||
|
||
echo $DOCKER_ID |
9 changes: 5 additions & 4 deletions
9
benchmarks/memory/scripts/docker-start → ...hmarks/docker-runner/scripts/docker-start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
DOCKER_ID=$(./scripts/docker-get-id) | ||
if [ -n "$DOCKER_ID" ]; then | ||
echo "\nA gatsby-memory container is already running with id $DOCKER_ID." | ||
echo "\nA gatsby-generic-benchmark container is already running with id $DOCKER_ID." | ||
echo "Please use that container, or run \`yarn docker:stop\` to stop it.\n" | ||
return 1 | ||
fi | ||
|
||
MEMORY_LIMIT="${DOCKER_MEMORY_LIMIT:-2g}" | ||
BENCHMARK_SITE="${DOCKER_BENCHMARK_SITE:-$(pwd)}" | ||
|
||
DOCKER_ID=$(\ | ||
docker run -td \ | ||
--mount type=bind,source="$(pwd)/../..",target=/usr/src/gatsby \ | ||
--mount type=bind,source="$(pwd)",target=/usr/src/app \ | ||
--mount type=bind,source="${BENCHMARK_SITE}",target=/usr/src/app \ | ||
--publish 9229:9229 \ | ||
--publish 9000:9000 \ | ||
--memory="${MEMORY_LIMIT}" \ | ||
--memory-swap="${MEMORY_LIMIT}" \ | ||
gatsby-memory \ | ||
gatsby-generic-benchmark \ | ||
| head -c 12 \ | ||
) | ||
|
||
sleep 1 | ||
docker exec $DOCKER_ID bash -c "/usr/src/app/scripts/docker-write-memory &" | ||
docker exec $DOCKER_ID bash -c "/usr/src/gatsby/benchmarks/docker-runner/scripts/docker-write-memory &" | ||
|
||
echo "\nStarted container id ${DOCKER_ID} with ${MEMORY_LIMIT} of memory! Run \`yarn docker:connect\` to connect to the container.\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
benchmarks/memory/scripts/docker-stop → benchmarks/docker-runner/scripts/docker-stop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.