forked from kamba4/sunders
containerized the app
This commit is contained in:
parent
51b982d43b
commit
070ccc9a19
14 changed files with 118204 additions and 4 deletions
10
Containerfile.data_init
Normal file
10
Containerfile.data_init
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM docker.io/library/alpine
|
||||
|
||||
RUN apk add mariadb-client
|
||||
COPY ./data_init/*.sql /var/sunders/init.sql
|
||||
|
||||
CMD mariadb --host="$MYSQL_HOST" \
|
||||
--user="$CAMERA_USER" \
|
||||
--password="$CAMERA_USER_PASSWD" \
|
||||
${MYSQL_DB:+--database="$MYSQL_DB"} \
|
||||
< "/var/sunders/init.sql"
|
Loading…
Add table
Add a link
Reference in a new issue