added entrypoint back
This commit is contained in:
parent
9c2164483b
commit
c897b89d1c
2 changed files with 19 additions and 0 deletions
18
infrastrucure/docker/image/resources/entrypoint.sh
Executable file
18
infrastrucure/docker/image/resources/entrypoint.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
function main() {
|
||||
file_env POSTGRES_DB
|
||||
file_env POSTGRES_PASSWORD
|
||||
file_env POSTGRES_USER
|
||||
|
||||
create-pg-pass
|
||||
|
||||
# Idle process
|
||||
while true; do
|
||||
sleep 500000
|
||||
done
|
||||
}
|
||||
|
||||
source /usr/local/lib/functions.sh
|
||||
source /usr/local/lib/pg-functions.sh
|
||||
main
|
|
@ -10,6 +10,7 @@ apt-get -qqy install wget postgresql-client-13 restic > /dev/null;
|
|||
|
||||
update-ca-certificates
|
||||
|
||||
install -m 0700 /tmp/entrypoint.sh /
|
||||
install -m 0400 /tmp/functions.sh /usr/local/lib/
|
||||
install -m 0400 /tmp/pg-functions.sh /usr/local/lib/
|
||||
install -m 0400 /tmp/file-functions.sh /usr/local/lib/
|
||||
|
|
Loading…
Reference in a new issue