mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-23 07:03:45 +00:00
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:
parent
9af1292cda
commit
3c02aa50d0
12
.github/workflows/formatting.yaml
vendored
12
.github/workflows/formatting.yaml
vendored
@ -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
|
|
31
.github/workflows/shell_check.sh
vendored
31
.github/workflows/shell_check.sh
vendored
@ -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"
|
|
||||||
)
|
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user