💥 change build script for PTTH_QUIC

main
_ 2022-10-08 15:31:29 +00:00
parent b104245c90
commit 4658bc0570
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Run from `ptth/`
set -euo pipefail set -euo pipefail
@ -8,11 +9,9 @@ DOCKER_TAG="ptth_quic:latest"
mkdir -p app_packages mkdir -p app_packages
pushd ../../ git archive --format=tar "$GIT_COMMIT" | docker build -f prototypes/quic_demo/Dockerfile -t "$DOCKER_TAG" --build-arg "git_version=$GIT_COMMIT" -
git archive --format=tar "$GIT_COMMIT" | sudo docker build -f prototypes/quic_demo/Dockerfile -t "$DOCKER_TAG" --build-arg "git_version=$GIT_COMMIT" -
popd
sudo docker run --rm "$DOCKER_TAG" \ docker run --rm "$DOCKER_TAG" \
tar -c \ tar -c \
app \ app \
quic_demo_relay_server \ quic_demo_relay_server \