Skip to content

Commit

Permalink
update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Oguzhan Yilmaz committed Jun 25, 2023
1 parent 4df5344 commit bee8439
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dockerfiles/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function debug_echo {

debug_echo "Docker entrypoint script started to run"

pip3 install --upgrade balcony
pip3 install --upgrade --no-input -q balcony

if [[ $BALCONY_DEBUG -eq 1 ]]; then
echo "Debugging mode is enabled."
Expand Down Expand Up @@ -82,7 +82,7 @@ fi
# ------ Generate provider "aws" block to provider.tf file

echo "--------------------------"
batcat $GEN_TF_DIR/provider.tf
cat $GEN_TF_DIR/provider.tf
echo "--------------------------"


Expand All @@ -96,7 +96,8 @@ if [[ -f $GEN_TF_DIR/generated_imports.tf ]]; then
echo "File $GEN_TF_DIR/generated_imports.tf exists."
echo "Balcony has generated the following import blocks:"
echo "--------------------------"
batcat $GEN_TF_DIR/generated_imports.tf
cat $GEN_TF_DIR/generated_imports.tf
cp $GEN_TF_DIR/generated_imports.tf /balcony-output
echo "--------------------------"

else
Expand All @@ -119,7 +120,9 @@ echo "You may see stderr output of terraform above this. It is expected, as the

debug_echo "Terraform has finished generating the terraform code"
echo "--------------------------"
batcat tf_generated.tf
cat tf_generated.tf
echo "--------------------------"
set +x

cp tf_generted.tf /balcony-output
exit 0

0 comments on commit bee8439

Please sign in to comment.