fleet/tools/tuf/test/run_server.sh
Lucas Manuel Rodriguez 7839716b8d
Prepare TUF scripts for CI and support different dev setups (#5616)
* Prepare TUF scripts for CI and support different dev setups

* Allow only generating selected platforms for pkgs

* Force linux/amd64 on Dockerfile to support M1
2022-05-11 17:00:18 -03:00

11 lines
243 B
Bash
Executable File

#!/bin/bash
set -e
pkill file-server || true
echo "Running TUF server"
go run ./tools/file-server 8081 "${TUF_PATH}/repository" &
until curl --silent -o /dev/null http://localhost:8081/root.json; do
sleep 1
done
echo "TUF server started"