Skip to content

Commit

Permalink
debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nzlosh committed Feb 13, 2025
1 parent d037671 commit 7dbc2f5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/apt-packages/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ runs:
# install dev dependencies for Python YAML and LDAP packages
# https://github.com/StackStorm/st2-auth-ldap
./scripts/github/install-apt-packages-use-cache.sh
- name: Install Mongo Shell
shell: bash
run: |
# Required as part of switch to GHA image ubuntu-22.04
./scripts/github/install-mongosh.sh
16 changes: 16 additions & 0 deletions scripts/github/install-mongosh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

# Some GHA require mongosh, which isn't nativefly available on ubuntu 22.04

set -x

sudo apt-get update
sudo apt-get install -y curl
export OS_CODENAME="$(source /etc/os-release && echo \"${VERSION_CODENAME}\")"

# Add MongoDB (7.0) repository signing key and apt repository
curl -1sLf https://pgp.mongodb.com/server-7.0.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/mongodb-org-7.0.gpg
echo "deb http://repo.mongodb.org/apt/ubuntu "${OS_CODENAME}"/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list

sudo apt-get update
sudo apt-get install -y mongodb-mongosh
5 changes: 5 additions & 0 deletions tools/launchdev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set +x

# Default TERM to "ansi" when it is empty.
export TERM="${TERM:-ansi}"
# TERM is 'unknown' when run in github actions which causes tmux to fail, so force it to "ansi".
test "$TERM" = "unknown" && export TERM="ansi"

function usage() {
cat<<EOF >&2
Usage: $0 [start|stop|restart|startclean] [-r runner_count] [-s scheduler_count] [-w workflow_engine_count] [-g] [-x] [-c] [-6]
Expand Down

0 comments on commit 7dbc2f5

Please sign in to comment.