diff --git a/.devcontainer/bootstrap.sh b/.devcontainer/bootstrap.sh deleted file mode 100755 index 1b4c33a..0000000 --- a/.devcontainer/bootstrap.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -ROOT="$( cd "$( dirname "$(readlink -f "$0")" )/.." >/dev/null 2>&1 && pwd )" - -GITHUB_TOKEN=$(grep github_token ${ROOT}/secrets.yaml | cut -d' ' -f2) -FILES=$(grep "{GITHUB_TOKEN}" ${ROOT}/requirements.txt | sed "s/{GITHUB_TOKEN}/${GITHUB_TOKEN}/g" | tr "\r\n" " ") - -python3 -m pip install --upgrade ${FILES} diff --git a/scripts/devcontainer b/scripts/devcontainer index c7f7791..7f67c6b 100755 --- a/scripts/devcontainer +++ b/scripts/devcontainer @@ -72,9 +72,9 @@ docker_start() { } bootstrap() { - if test -f "${ROOT}/.devcontainer/bootstrap.sh"; then + if test -f "${ROOT}/config/bootstrap.sh"; then log.info "Execute bootstrap.sh..." - ${docker} exec -it -w "${workdir}" "${container}" .devcontainer/bootstrap.sh "$1" + ${docker} exec -it -w "${workdir}" "${container}" config/bootstrap.sh "$1" fi }