MinioK8sBuckets/build_docker_image.sh
Pierre Hubert b25b7aa2a5
All checks were successful
continuous-integration/drone/push Build is passing
Create docker image & test in docker
2023-05-08 18:04:11 +02:00

15 lines
304 B
Bash
Executable File

#!/bin/bash
cargo build --release
TEMP_DIR=$(mktemp -d)
cp target/release/minio-operator "$TEMP_DIR"
# Download mc
wget -O "$TEMP_DIR/mc" https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x "$TEMP_DIR/mc"
docker build -f Dockerfile "$TEMP_DIR" -t pierre42100/minio_operator
rm -r $TEMP_DIR