pool/gen/gen_mock_docker.sh
positiveblue 16b80f269b
mock: stop sharing the gocache with the docker
The docker image was sharing the cache dir with the host and that was
causing some permission problems in our ci (github actions).
2022-08-04 22:36:43 -07:00

15 lines
336 B
Bash
Executable file

#!/bin/bash
set -e
# Directory of the script file, independent of where it's called from.
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
echo "Building mockgen docker image..."
docker build -t pool-gen-builder .
echo "Generating and formatting mock files..."
docker run \
--rm \
-v "$DIR/../:/build" \
pool-gen-builder