Skip to content

Commit 49217a5

Browse files
code review changes
1 parent 3980cc9 commit 49217a5

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

docker/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker-entrypoint.sh

docker/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
core_config_version: 0
2+
postgresql_config_version: 0

docker/createPostgresqlImage.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ esac
1111
curl -o jre.zip -s -X GET \
1212
"https://raw.githubusercontent.com/supertokens/jre/master/jre-15.0.1-${OS}.zip"
1313

14-
## fetching docker-entrypoint.sh from github
15-
curl -o docker-entrypoint.sh -s -X GET \
14+
## fetching docker-entrypoint.sh from github if file doesn't exists
15+
if [ ! -f docker-entrypoint.sh ]; then
16+
curl -o docker-entrypoint.sh -s -X GET \
1617
"https://raw.githubusercontent.com/supertokens/supertokens-docker-postgresql/master/docker-entrypoint.sh"
18+
fi
1719

1820
## marking docker-entrypoint.sh as executable
1921
chmod +x docker-entrypoint.sh
@@ -30,8 +32,7 @@ cp -r ../downloader downloader
3032
cp -r ../plugin-interface plugin-interface
3133
cp -r ../plugin plugin
3234
cp -r ../install ./
33-
cp -r ../temp/config.yaml ./
34-
cp -r ../temp/config.yaml config.yaml.original
35+
cp -r config.yaml ./
3536
cp -r ../version.yaml ./
3637

3738
## building the docker image
@@ -44,8 +45,5 @@ rm -rf downloader
4445
rm -rf plugin-interface
4546
rm -rf plugin
4647
rm -rf install
47-
rm -rf config.yaml
48-
rm -rf config.yaml.original
4948
rm -rf version.yaml
50-
rm -rf jre
51-
rm -rf docker-entrypoint.sh
49+
rm -rf jre

0 commit comments

Comments
 (0)