MinioK8sBuckets/build_docker_image.sh
Pierre Hubert e2598d7509
Some checks reported errors
continuous-integration/drone/push Build was killed
Implement base operator (#1)
Add base operator logic

Reviewed-on: #1
2023-05-08 16:20:15 +00: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