Pierre Hubert
e2598d7509
Some checks reported errors
continuous-integration/drone/push Build was killed
Add base operator logic Reviewed-on: #1
15 lines
304 B
Bash
Executable File
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
|
|
|