Small revamp
This commit is contained in:
parent
3afecdfe52
commit
68fc785123
|
@ -3,8 +3,8 @@ LABEL authors="Vladimir <opa_oz> Levin"
|
||||||
|
|
||||||
RUN curl https://dl.min.io/client/mc/release/linux-amd64/mc \
|
RUN curl https://dl.min.io/client/mc/release/linux-amd64/mc \
|
||||||
--create-dirs \
|
--create-dirs \
|
||||||
-o $HOME/minio-binaries/mc
|
-o /minio-binaries/mc
|
||||||
RUN chmod +x $HOME/minio-binaries/mc
|
RUN chmod +x /minio-binaries/mc
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh -l
|
#!/bin/sh -l
|
||||||
|
|
||||||
export PATH=$PATH:$HOME/minio-binaries/
|
export PATH=$PATH:/minio-binaries/
|
||||||
|
|
||||||
insecure_option=""
|
insecure_option=""
|
||||||
if [[ "$YA_INSECURE" == "true" ]]; then
|
if [[ "$YA_INSECURE" == "true" ]]; then
|
||||||
|
@ -12,5 +12,5 @@ if [[ "$YA_RECURSIVE" == "true" ]]; then
|
||||||
recursive_option="--recursive"
|
recursive_option="--recursive"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$HOME/minio-binaries/mc alias set ${insecure_option:+"$insecure_option"} target "$YA_ENDPOINT" "$YA_ACCESS_KEY" "$YA_SECRET_KEY"
|
mc alias set ${insecure_option:+"$insecure_option"} target "$YA_ENDPOINT" "$YA_ACCESS_KEY" "$YA_SECRET_KEY"
|
||||||
$HOME/minio-binaries/mc ${insecure_option:+"$insecure_option"} cp ${recursive_option:+"$recursive_option"} $1 "target/$2"
|
mc ${insecure_option:+"$insecure_option"} cp ${recursive_option:+"$recursive_option"} $1 "target/$2"
|
Loading…
Reference in New Issue