Skip to content

Commit

Permalink
Merge pull request #733 from jingjingxyk/experiment-feature
Browse files Browse the repository at this point in the history
Experiment feature
  • Loading branch information
jingjingxyk committed Aug 3, 2024
2 parents ab20dec + f27a338 commit 68b040c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/linux-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ jobs:
- name: Start Database
run: |
# 准备数据库容器
export PATH=/usr/libexec/docker/cli-plugins/:$PATH
docker-compose version
docker container ls -a
bash sapi/src/UnitTest/scripts/database/start.sh
- name: Show Build Result
Expand Down
35 changes: 35 additions & 0 deletions sapi/quickstart/linux/install-docker-compose.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env bash

set -ex
__DIR__=$(
cd "$(dirname "$0")"
pwd
)
__PROJECT__=$(
cd ${__DIR__}/../../../
pwd
)
cd ${__PROJECT__}

if ! docker info >/dev/null 2>&1; then
echo "This script uses docker, and it isn't running - please start docker and try again!"
echo "Docker does not seem to be running, run it first and retry"
exit 1
fi

docker info
ls -lh /usr/libexec/docker/cli-plugins/

if [ ! -f /usr/libexec/docker/cli-plugins/docker-compose ]; then

# show more version info
# https://github.com/docker/compose/releases
VERSION="v2.29.1"

curl -fsSL "https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

fi

docker-compose --version

0 comments on commit 68b040c

Please sign in to comment.