Skip to content
Snippets Groups Projects
Commit 0a0a19c4 authored by Danylo Vanin (EPAM)'s avatar Danylo Vanin (EPAM) Committed by Oleksandr Kosse (EPAM)
Browse files

[GONRG-6413] Remove dynamic dowload from bootstrap

parent 2d5abe7a
No related branches found
No related tags found
3 merge requests!299Update Dev branch,!298Securityfix,!286[GONRG-6413] Remove dynamic dowload from bootstrap
......@@ -6,7 +6,8 @@ COPY ./deployment/ /opt/deployment
COPY ./devops/gc/bootstrap-osdu-module /opt/devops/gc/bootstrap-osdu-module
RUN chmod 775 /opt/bootstrap_policy.sh
RUN apk add py3-pip
RUN apk add py3-pip wget
RUN pip3 install -r /opt/requirements_bootstrap.txt -r /opt/devops/gc/bootstrap-osdu-module/requirements.txt
RUN wget --quiet https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc && mv mc /usr/bin/mc
CMD ["/bin/bash", "-c", "/opt/bootstrap_policy.sh && sleep 365d"]
......@@ -32,11 +32,7 @@ bootstrap_gcs() {
}
bootstrap_minio() {
echo "Installing Minio Client (mc) tool"
apk add wget
wget --quiet https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc && mv mc /usr/bin/mc
echo "mc tool installed successfully, configuring"
echo "Configuring mc tool"
mc alias set minio "${MINIO_HOST}":"${MINIO_PORT}" "${MINIO_ACCESS_KEY}" "${MINIO_SECRET_KEY}"
echo "Pushing archives to Minio bucket"
for file in /opt/policies/*;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment