From cdb2a8e13732bcf54a528598c0dd0b2bc2c6a137 Mon Sep 17 00:00:00 2001 From: Ryan Ahearn Date: Mon, 8 Aug 2022 14:43:37 -0400 Subject: [PATCH] Use make bootstrap to install dependencies in devcontainer entrypoint --- .../scripts/notify-admin-entrypoint.sh | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/devcontainer-admin/scripts/notify-admin-entrypoint.sh b/devcontainer-admin/scripts/notify-admin-entrypoint.sh index 11947087b..6c2dd0428 100755 --- a/devcontainer-admin/scripts/notify-admin-entrypoint.sh +++ b/devcontainer-admin/scripts/notify-admin-entrypoint.sh @@ -1,10 +1,10 @@ #!/bin/bash -set -ex +set -ex ################################################################### -# This script will get executed *once* the Docker container has +# This script will get executed *once* the Docker container has # been built. Commands that need to be executed with all available -# tools and the filesystem mount enabled should be located here. +# tools and the filesystem mount enabled should be located here. ################################################################### echo "RUNNING ENTRYPOINT SCRIPT" @@ -20,23 +20,12 @@ echo -e "alias lt='exa -al -T -L 2'" >> ~/.zshrc cd /workspace -# Warm up git index prior to display status in prompt else it will +# Warm up git index prior to display status in prompt else it will # be quite slow on every invocation of starship. git status pip3 install -r requirements.txt -pip3 install -r requirements_for_test.txt - -# npm rebuild node-sass -make generate-version-file -# make babel - -# npm ci install -if [ ! -d "/node_modules" ]; then - npm ci install -fi - -npm run build +make bootstrap # run flask # make run