Skip to content

Commit

Permalink
Add script that uses Docker image to update Bikeshed cache
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun committed Sep 3, 2020
1 parent b4148f2 commit ef56e02
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions update-bikeshed-cache-docker.sh
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 ""

0 comments on commit ef56e02

Please sign in to comment.