mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-13 12:33:04 +02:00
The docker image was sharing the cache dir with the host and that was causing some permission problems in our ci (github actions).
15 lines
336 B
Bash
Executable file
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
|