File tree Expand file tree Collapse file tree 14 files changed +63
-42
lines changed Expand file tree Collapse file tree 14 files changed +63
-42
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
42
42
ENV PGDATA /var/lib/postgresql/data
43
43
VOLUME /var/lib/postgresql/data
44
44
45
- COPY ./ docker-entrypoint.sh /
45
+ COPY docker-entrypoint.sh /
46
46
47
47
ENTRYPOINT ["/docker-entrypoint.sh" ]
48
48
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
15
15
pass=" PASSWORD '$POSTGRES_PASSWORD '"
16
16
authMethod=md5
17
17
else
18
- # The - option suppresses leading tabs but *not* spaces. :)
18
+ # The - option suppresses leading tabs but *not* spaces. :)
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
WARNING: No password has been set for the database.
@@ -33,14 +33,17 @@ if [ "$1" = 'postgres' ]; then
33
33
op=' ALTER'
34
34
else
35
35
op=' CREATE'
36
- gosu postgres postgres --single -E << -EOSQL
37
- CREATE DATABASE "$POSTGRES_USER "
36
+ gosu postgres postgres --single -jE << -EOSQL
37
+ CREATE DATABASE "$POSTGRES_USER " ;
38
38
EOSQL
39
+ echo
39
40
fi
40
41
41
- gosu postgres postgres --single << -EOSQL
42
- $op USER "$POSTGRES_USER " WITH SUPERUSER $pass
42
+ gosu postgres postgres --single -jE << -EOSQL
43
+ $op USER "$POSTGRES_USER " WITH SUPERUSER $pass ;
43
44
EOSQL
45
+ echo
46
+
44
47
{ echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
45
48
46
49
if [ -d /docker-entrypoint-initdb.d ]; then
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
42
42
ENV PGDATA /var/lib/postgresql/data
43
43
VOLUME /var/lib/postgresql/data
44
44
45
- COPY ./ docker-entrypoint.sh /
45
+ COPY docker-entrypoint.sh /
46
46
47
47
ENTRYPOINT ["/docker-entrypoint.sh" ]
48
48
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
15
15
pass=" PASSWORD '$POSTGRES_PASSWORD '"
16
16
authMethod=md5
17
17
else
18
- # The - option suppresses leading tabs but *not* spaces. :)
18
+ # The - option suppresses leading tabs but *not* spaces. :)
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
WARNING: No password has been set for the database.
@@ -33,14 +33,17 @@ if [ "$1" = 'postgres' ]; then
33
33
op=' ALTER'
34
34
else
35
35
op=' CREATE'
36
- gosu postgres postgres --single -E << -EOSQL
37
- CREATE DATABASE "$POSTGRES_USER "
36
+ gosu postgres postgres --single -jE << -EOSQL
37
+ CREATE DATABASE "$POSTGRES_USER " ;
38
38
EOSQL
39
+ echo
39
40
fi
40
41
41
- gosu postgres postgres --single << -EOSQL
42
- $op USER "$POSTGRES_USER " WITH SUPERUSER $pass
42
+ gosu postgres postgres --single -jE << -EOSQL
43
+ $op USER "$POSTGRES_USER " WITH SUPERUSER $pass ;
43
44
EOSQL
45
+ echo
46
+
44
47
{ echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
45
48
46
49
if [ -d /docker-entrypoint-initdb.d ]; then
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
42
42
ENV PGDATA /var/lib/postgresql/data
43
43
VOLUME /var/lib/postgresql/data
44
44
45
- COPY ./ docker-entrypoint.sh /
45
+ COPY docker-entrypoint.sh /
46
46
47
47
ENTRYPOINT ["/docker-entrypoint.sh" ]
48
48
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
15
15
pass=" PASSWORD '$POSTGRES_PASSWORD '"
16
16
authMethod=md5
17
17
else
18
- # The - option suppresses leading tabs but *not* spaces. :)
18
+ # The - option suppresses leading tabs but *not* spaces. :)
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
WARNING: No password has been set for the database.
@@ -33,14 +33,17 @@ if [ "$1" = 'postgres' ]; then
33
33
op=' ALTER'
34
34
else
35
35
op=' CREATE'
36
- gosu postgres postgres --single -E << -EOSQL
37
- CREATE DATABASE "$POSTGRES_USER "
36
+ gosu postgres postgres --single -jE << -EOSQL
37
+ CREATE DATABASE "$POSTGRES_USER " ;
38
38
EOSQL
39
+ echo
39
40
fi
40
41
41
- gosu postgres postgres --single << -EOSQL
42
- $op USER "$POSTGRES_USER " WITH SUPERUSER $pass
42
+ gosu postgres postgres --single -jE << -EOSQL
43
+ $op USER "$POSTGRES_USER " WITH SUPERUSER $pass ;
43
44
EOSQL
45
+ echo
46
+
44
47
{ echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
45
48
46
49
if [ -d /docker-entrypoint-initdb.d ]; then
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
42
42
ENV PGDATA /var/lib/postgresql/data
43
43
VOLUME /var/lib/postgresql/data
44
44
45
- COPY ./ docker-entrypoint.sh /
45
+ COPY docker-entrypoint.sh /
46
46
47
47
ENTRYPOINT ["/docker-entrypoint.sh" ]
48
48
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
15
15
pass=" PASSWORD '$POSTGRES_PASSWORD '"
16
16
authMethod=md5
17
17
else
18
- # The - option suppresses leading tabs but *not* spaces. :)
18
+ # The - option suppresses leading tabs but *not* spaces. :)
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
WARNING: No password has been set for the database.
@@ -33,14 +33,17 @@ if [ "$1" = 'postgres' ]; then
33
33
op=' ALTER'
34
34
else
35
35
op=' CREATE'
36
- gosu postgres postgres --single -E << -EOSQL
37
- CREATE DATABASE "$POSTGRES_USER "
36
+ gosu postgres postgres --single -jE << -EOSQL
37
+ CREATE DATABASE "$POSTGRES_USER " ;
38
38
EOSQL
39
+ echo
39
40
fi
40
41
41
- gosu postgres postgres --single << -EOSQL
42
- $op USER "$POSTGRES_USER " WITH SUPERUSER $pass
42
+ gosu postgres postgres --single -jE << -EOSQL
43
+ $op USER "$POSTGRES_USER " WITH SUPERUSER $pass ;
43
44
EOSQL
45
+ echo
46
+
44
47
{ echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
45
48
46
49
if [ -d /docker-entrypoint-initdb.d ]; then
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
42
42
ENV PGDATA /var/lib/postgresql/data
43
43
VOLUME /var/lib/postgresql/data
44
44
45
- COPY ./ docker-entrypoint.sh /
45
+ COPY docker-entrypoint.sh /
46
46
47
47
ENTRYPOINT ["/docker-entrypoint.sh" ]
48
48
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
15
15
pass=" PASSWORD '$POSTGRES_PASSWORD '"
16
16
authMethod=md5
17
17
else
18
- # The - option suppresses leading tabs but *not* spaces. :)
18
+ # The - option suppresses leading tabs but *not* spaces. :)
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
WARNING: No password has been set for the database.
@@ -33,14 +33,17 @@ if [ "$1" = 'postgres' ]; then
33
33
op=' ALTER'
34
34
else
35
35
op=' CREATE'
36
- gosu postgres postgres --single -E << -EOSQL
37
- CREATE DATABASE "$POSTGRES_USER "
36
+ gosu postgres postgres --single -jE << -EOSQL
37
+ CREATE DATABASE "$POSTGRES_USER " ;
38
38
EOSQL
39
+ echo
39
40
fi
40
41
41
- gosu postgres postgres --single << -EOSQL
42
- $op USER "$POSTGRES_USER " WITH SUPERUSER $pass
42
+ gosu postgres postgres --single -jE << -EOSQL
43
+ $op USER "$POSTGRES_USER " WITH SUPERUSER $pass ;
43
44
EOSQL
45
+ echo
46
+
44
47
{ echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
45
48
46
49
if [ -d /docker-entrypoint-initdb.d ]; then
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
42
42
ENV PGDATA /var/lib/postgresql/data
43
43
VOLUME /var/lib/postgresql/data
44
44
45
- COPY ./ docker-entrypoint.sh /
45
+ COPY docker-entrypoint.sh /
46
46
47
47
ENTRYPOINT ["/docker-entrypoint.sh" ]
48
48
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
15
15
pass=" PASSWORD '$POSTGRES_PASSWORD '"
16
16
authMethod=md5
17
17
else
18
- # The - option suppresses leading tabs but *not* spaces. :)
18
+ # The - option suppresses leading tabs but *not* spaces. :)
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
WARNING: No password has been set for the database.
@@ -33,14 +33,17 @@ if [ "$1" = 'postgres' ]; then
33
33
op=' ALTER'
34
34
else
35
35
op=' CREATE'
36
- gosu postgres postgres --single -E << -EOSQL
37
- CREATE DATABASE "$POSTGRES_USER "
36
+ gosu postgres postgres --single -jE << -EOSQL
37
+ CREATE DATABASE "$POSTGRES_USER " ;
38
38
EOSQL
39
+ echo
39
40
fi
40
41
41
- gosu postgres postgres --single << -EOSQL
42
- $op USER "$POSTGRES_USER " WITH SUPERUSER $pass
42
+ gosu postgres postgres --single -jE << -EOSQL
43
+ $op USER "$POSTGRES_USER " WITH SUPERUSER $pass ;
43
44
EOSQL
45
+ echo
46
+
44
47
{ echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
45
48
46
49
if [ -d /docker-entrypoint-initdb.d ]; then
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
42
42
ENV PGDATA /var/lib/postgresql/data
43
43
VOLUME /var/lib/postgresql/data
44
44
45
- COPY ./ docker-entrypoint.sh /
45
+ COPY docker-entrypoint.sh /
46
46
47
47
ENTRYPOINT ["/docker-entrypoint.sh" ]
48
48
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
15
15
pass=" PASSWORD '$POSTGRES_PASSWORD '"
16
16
authMethod=md5
17
17
else
18
- # The - option suppresses leading tabs but *not* spaces. :)
18
+ # The - option suppresses leading tabs but *not* spaces. :)
19
19
cat >&2 << -'EOWARN '
20
20
****************************************************
21
21
WARNING: No password has been set for the database.
@@ -33,14 +33,17 @@ if [ "$1" = 'postgres' ]; then
33
33
op=' ALTER'
34
34
else
35
35
op=' CREATE'
36
- gosu postgres postgres --single -E << -EOSQL
37
- CREATE DATABASE "$POSTGRES_USER "
36
+ gosu postgres postgres --single -jE << -EOSQL
37
+ CREATE DATABASE "$POSTGRES_USER " ;
38
38
EOSQL
39
+ echo
39
40
fi
40
41
41
- gosu postgres postgres --single << -EOSQL
42
- $op USER "$POSTGRES_USER " WITH SUPERUSER $pass
42
+ gosu postgres postgres --single -jE << -EOSQL
43
+ $op USER "$POSTGRES_USER " WITH SUPERUSER $pass ;
43
44
EOSQL
45
+ echo
46
+
44
47
{ echo ; echo " host all \" $POSTGRES_USER \" 0.0.0.0/0 $authMethod " ; } >> " $PGDATA " /pg_hba.conf
45
48
46
49
if [ -d /docker-entrypoint-initdb.d ]; then
You can’t perform that action at this time.
0 commit comments