Skip to content
Snippets Groups Projects
Commit e9a93df0 authored by Jan Krčmář's avatar Jan Krčmář Committed by honza801@ADMIN.META
Browse files

initial commit

parents
No related branches found
No related tags found
No related merge requests found
FROM eclipse-temurin:17-jre-alpine
ENV VERSION=1.4.3
RUN mkdir /opt/toolbox
COPY toolbox/ /opt/toolbox/
# unzip toolbox
RUN cd /opt/toolbox && unzip -o cdh-toolbox-${VERSION}.zip
CMD /opt/toolbox/init.sh
# Container parameters
```
DB_HOST:=localhost
DB_NAME:=postgres
DB_USER:=postgres
DB_PASSWORD:=password
```
File added
File added
#!/bin/bash
: ${DB_HOST:=localhost}
: ${DB_NAME:=postgres}
: ${DB_USER:=postgres}
: ${DB_PASSWORD:=password}
# execute database update
cd /opt/toolbox/db
echo "Updating database..."
./database_updater.sh --url jdbc:postgresql://$DB_HOST:5432/$DB_NAME --login $DB_USER --password $DB_PASSWORD
echo "Database updated."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment