File tree Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -49,4 +49,8 @@ nb-configuration.xml
49
49
create.sql
50
50
drop.sql
51
51
52
+ # Environment files that may contain secrets
53
+ .env
54
+ .env. *
55
+
52
56
* .dylib
Original file line number Diff line number Diff line change @@ -13,7 +13,12 @@ set "REGISTRY=crjavaruntimes${UNIQUE_IDENTIFIER}"
13
13
set " IMAGES_TAG = 1.0"
14
14
15
15
set " POSTGRES_DB_ADMIN = javaruntimesadmin"
16
- set " POSTGRES_DB_PWD = java-runtimes-p#ssw0rd-12046"
16
+
17
+ REM Prompt for PostgreSQL password if not already set
18
+ if not defined POSTGRES_DB_PWD (
19
+ echo Please enter the PostgreSQL database password:
20
+ set /p " POSTGRES_DB_PWD = "
21
+ )
17
22
set " POSTGRES_DB_VERSION = 14"
18
23
set " POSTGRES_SKU = Standard_B1ms"
19
24
set " POSTGRES_TIER = Burstable"
Original file line number Diff line number Diff line change @@ -114,7 +114,13 @@ createInfrastructure() {
114
114
IMAGES_TAG=" 1.0"
115
115
116
116
POSTGRES_DB_ADMIN=" javaruntimesadmin"
117
- POSTGRES_DB_PWD=" java-runtimes-p#ssw0rd-12046"
117
+
118
+ # Prompt for PostgreSQL password if not already set
119
+ if [ -z " $POSTGRES_DB_PWD " ]; then
120
+ echo " Please enter the PostgreSQL database password:"
121
+ read -s POSTGRES_DB_PWD
122
+ echo # Print a new line after the hidden input
123
+ fi
118
124
POSTGRES_DB_VERSION=" 14"
119
125
POSTGRES_SKU=" Standard_B1ms"
120
126
POSTGRES_TIER=" Burstable"
Original file line number Diff line number Diff line change @@ -26,7 +26,14 @@ export REGISTRY="crjavaruntimes${UNIQUE_IDENTIFIER}"
26
26
export IMAGES_TAG=" 1.0"
27
27
28
28
export POSTGRES_DB_ADMIN=" javaruntimesadmin"
29
- export POSTGRES_DB_PWD=" java-runtimes-p#ssw0rd-12046"
29
+
30
+ # Prompt for PostgreSQL password if not already set
31
+ if [ -z " $POSTGRES_DB_PWD " ]; then
32
+ echo " Please enter the PostgreSQL database password:"
33
+ read -s POSTGRES_DB_PWD
34
+ echo # Print a new line after the hidden input
35
+ fi
36
+ export POSTGRES_DB_PWD
30
37
export POSTGRES_DB_VERSION=" 14"
31
38
export POSTGRES_SKU=" Standard_B1ms"
32
39
export POSTGRES_TIER=" Burstable"
You can’t perform that action at this time.
0 commit comments