Remove run_docker_gpu.sh (#2003)

* Remove run_docker_gpu.sh

* remove shell formatting check from CI

Co-authored-by: Malte Pietsch <malte.pietsch@deepset.ai>
This commit is contained in:
Sara Zan 2022-01-27 12:20:43 +01:00 committed by GitHub
parent 9af1292cda
commit 3c02aa50d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 58 deletions

View File

@ -1,12 +0,0 @@
name: formatting_check
on: [push, pull_request]
jobs:
formatting_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: shell_check
run: .github/workflows/shell_check.sh

View File

@ -1,31 +0,0 @@
#!/usr/bin/env bash
# Purpose : Make sure all *.sh scripts are good
# Author : Ky-Anh Huynh
set +x
set +e
if [[ -z "${USE_CURRENT_DIRECTORY:-}" ]]; then
cd "$(git rev-parse --show-toplevel)" || exit
fi
: "${SHELL_CHECK_EXCLUDE:=}"
# We are using shellcheck version ~ 0.7
if [[ "$OSTYPE" =~ linux.* ]] && ! shellcheck --version 2>/dev/null | grep -qs 'version: 0.7'; then
echo >&2 ":: Downloading shellcheck to $(pwd -P)..."
wget --quiet -cO shellcheck.txz https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz
tar xJf shellcheck.txz
PATH="$(pwd -P)"/shellcheck-v0.7.1/:$PATH
export PATH
fi
while read -r file; do
echo >&2 ":: Checking $file..."
shellcheck -e "${SHELL_CHECK_EXCLUDE}" "$file" || exit
done < <( \
find . \
-type f \
-iname "*.sh"
)

View File

@ -1,15 +0,0 @@
#!/usr/bin/env sh
# Run Haystack API(on GPU) and Elasticsearch using Docker.
#
# docker-compose doesn't support GPUs in the current version. As a workaround,
# this script runs haystack-api and Elasticsearch Docker Images separately.
#
# To use GPU with Docker, ensure nvidia-docker(https://github.com/NVIDIA/nvidia-docker) is installed.
docker run -d -p 9200:9200 -e "discovery.type=single-node" elasticsearch:7.9.2
# alternative: for a demo you can also use this elasticsearch image with already indexed GoT articles
#docker run -d -p 9200:9200 -e "discovery.type=single-node" deepset/elasticsearch-game-of-thrones
# wait for Elasticsearch server to start
sleep 30
docker run --net=host --gpus all -e READER_MODEL_PATH=deepset/roberta-base-squad2 -d deepset/haystack-gpu:latest