From 96742e2c48552c7913ff373f7431c7991b9171a6 Mon Sep 17 00:00:00 2001 From: Andrey Khrolenok Date: Sun, 1 Oct 2023 18:52:51 +0300 Subject: [PATCH] Move bootstrap.sh to config directory --- .devcontainer/bootstrap.sh | 8 -------- scripts/devcontainer | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) delete mode 100755 .devcontainer/bootstrap.sh 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 }