-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script that uses Docker image to update Bikeshed cache
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Abort on error | ||
set -e | ||
# Echo commands | ||
set -x | ||
|
||
function cleanup() { | ||
docker rm -v bikeshed-tmp | ||
} | ||
|
||
BIKESHED_ROOT=/usr/local/lib/python3.8/site-packages/bikeshed | ||
|
||
docker build -t bikeshed docker/bikeshed --no-cache | ||
docker create --name bikeshed-tmp bikeshed | ||
trap cleanup EXIT | ||
|
||
rm -r .bikeshed-include | ||
rm -r .spec-data | ||
|
||
docker cp bikeshed-tmp:"${BIKESHED_ROOT}"/boilerplate/webauthn .bikeshed-include | ||
docker cp bikeshed-tmp:"${BIKESHED_ROOT}"/spec-data .spec-data | ||
|
||
echo "Now be sure to run:" | ||
echo " git add .spec-data/ .bikeshed-include/" | ||
echo "" |