Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[minor] Add dependencies used by MAS Core and Manage backup and restore #432

Merged
merged 10 commits into from
Aug 23, 2023
7 changes: 0 additions & 7 deletions build/bin/.functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ function echo_highlight() {
}


# Install yq
# ----------
function install_yq() {
python -m pip install yq || exit 1
}


# These should be loaded already, but just incase!
# ------------------------------------------------
if [[ -z "$BUILD_SYSTEM_ENV_LOADED" ]]; then
Expand Down
2 changes: 2 additions & 0 deletions image/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ RUN umask 0002 && \
bash /tmp/install/install-skopeo.sh && \
bash /tmp/install/install-aws.sh && \
bash /tmp/install/install-helm.sh && \
bash /tmp/install/install-mongo-tools.sh && \
bash /tmp/install/install-yq.sh && \
rm -rf /tmp/install && \
rm /opt/app-root/src/.wget-hsts /opt/app-root/src/README.md /opt/app-root/src/LICENSE

Expand Down
20 changes: 20 additions & 0 deletions image/cli/install/install-mongo-tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# Install Mongo Shell
set -e

curl "https://downloads.mongodb.com/compass/mongodb-mongosh-shared-openssl11-1.10.5.x86_64.rpm" -o mongodb-mongosh-shared-openssl11-1.10.5.x86_64.rpm
rpm -i mongodb-mongosh-shared-openssl11-1.10.5.x86_64.rpm

mongosh --version
rm mongodb-mongosh-shared-openssl11-1.10.5.x86_64.rpm

# Install Mongo Tools
curl "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-rhel80-x86_64-100.8.0.tgz" -o mongodb-database-tools-rhel80-x86_64-100.8.0.tgz
tar xvfz mongodb-database-tools-rhel80-x86_64-100.8.0.tgz

mv mongodb-database-tools-rhel80-x86_64-100.8.0/bin/* /usr/local/bin/
rm -rf mongodb-database-tools-rhel80-x86_64-100.8.0
rm mongodb-database-tools-rhel80-x86_64-100.8.0.tgz

mongodump --version
10 changes: 10 additions & 0 deletions image/cli/install/install-yq.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Install yq CLI
set -e

curl -L "https://github.com/mikefarah/yq/releases/download/v4.35.1/yq_linux_amd64" > yq
mv yq /usr/local/bin/
chmod 755 /usr/local/bin/yq

yq --version