Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #52 from jumpserver/dev
Browse files Browse the repository at this point in the history
feat: 添加 mongosh
  • Loading branch information
wojiushixiaobai authored Jul 12, 2024
2 parents 87bd511 + 01f72f9 commit cd5a83d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/jms-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
applets_version=$(curl -s https://api.github.com/repos/jumpserver/applets/releases/latest | grep "tag_name" | awk '{print $2}' | sed 's/"//g' | sed 's/,//g')
wget -qO opt/download/applets/pip_packages.zip https://github.com/jumpserver/applets/releases/download/${applets_version}/pip_packages.zip
- name: Get binaries
run: |
bash tools.sh
- name: Build and push
uses: docker/build-push-action@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ jobs:
rm -rf opt/player || echo ""
applets_version=$(curl -s https://api.github.com/repos/jumpserver/applets/releases/latest | grep "tag_name" | awk '{print $2}' | sed 's/"//g' | sed 's/,//g')
wget -qO opt/download/applets/pip_packages_${applets_version}.zip https://github.com/jumpserver/applets/releases/download/${applets_version}/pip_packages.zip
- name: Get binaries
run: |
bash tools.sh
- name: Create Tag
run: |
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.0.0
v4.0.1
9 changes: 8 additions & 1 deletion prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ MRD_VERSION=10.6.7
VIDEO_PLAYER_VERSION=0.1.9
OPENSSH_VERSION=v9.4.0.0
Client_VERSION=v2.1.3
MONGOSH_VERSION=2.2.12

DOWNLOAD_URL=https://download.jumpserver.org

Expand Down Expand Up @@ -47,4 +48,10 @@ wget --no-clobber https://github.com/jumpserver/clients/releases/download/${Clie
wget --no-clobber https://github.com/jumpserver/clients/releases/download/${Client_VERSION}/JumpServer-Client-Installer-mac-${Client_VERSION}-x64.dmg
wget --no-clobber https://github.com/jumpserver/clients/releases/download/${Client_VERSION}/JumpServer-Client-Installer-mac-${Client_VERSION}-arm64.dmg
wget --no-clobber https://github.com/jumpserver/clients/releases/download/${Client_VERSION}/JumpServer-Client-Installer-linux-${Client_VERSION}-amd64.deb
wget --no-clobber https://github.com/jumpserver/clients/releases/download/${Client_VERSION}/JumpServer-Client-Installer-linux-${Client_VERSION}-arm64.deb
wget --no-clobber https://github.com/jumpserver/clients/releases/download/${Client_VERSION}/JumpServer-Client-Installer-linux-${Client_VERSION}-arm64.deb

if [ "${USE_XPACK}" = "0" ]; then
for arch in x64 arm64 ppc64le s390x; do
wget --no-clobber https://downloads.mongodb.com/compass/mongosh-${MONGOSH_VERSION}-linux-${arch}.tgz
done
fi
12 changes: 12 additions & 0 deletions tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -ex

MONGOSH_VERSION=2.2.12

PROJECT_DIR=$(cd `dirname $0`; pwd)

cd ${PROJECT_DIR}/opt/download/public || exit 1

for arch in x64 arm64 ppc64le s390x; do
wget --no-clobber https://downloads.mongodb.com/compass/mongosh-${MONGOSH_VERSION}-linux-${arch}.tgz
done

0 comments on commit cd5a83d

Please sign in to comment.