diff --git a/.github/workflows/formatting.yaml b/.github/workflows/formatting.yaml deleted file mode 100644 index 6c374fe96..000000000 --- a/.github/workflows/formatting.yaml +++ /dev/null @@ -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 diff --git a/.github/workflows/shell_check.sh b/.github/workflows/shell_check.sh deleted file mode 100755 index 02314d2d5..000000000 --- a/.github/workflows/shell_check.sh +++ /dev/null @@ -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" -) diff --git a/run_docker_gpu.sh b/run_docker_gpu.sh deleted file mode 100755 index 1c2523a82..000000000 --- a/run_docker_gpu.sh +++ /dev/null @@ -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