Skip to content

Commit f50f37c

Browse files
author
Dave MacFarlane
committed
Write script for dockerfile so we can change directory
1 parent 1e9c9f7 commit f50f37c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile.test.db

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ RUN cat /sql/0000-00-00-schema.sql \
1717
/instruments_sql/*.sql \
1818
/test_instrument.sql \
1919
/RB_files/*.sql \
20-
> /docker-entrypoint-initdb.d/0000-compiled.sql
20+
> /RB_files/0000-compiled.sql
21+
22+
RUN echo "#!/bin/sh" > /docker-entrypoint-initdb.d/0000-compiled.sh \
23+
&& echo "cd /RB_files" >> /docker-entrypoint-initdb.d/0000-compiled.sh \
24+
&& echo "mariadb -uroot LorisTest -p\$MYSQL_ROOT_PASSWORD < 0000-compiled.sql" >> /docker-entrypoint-initdb.d/0000-compiled.sh
2125

2226
RUN echo "USE LorisTest;" > /docker-entrypoint-initdb.d/0001-paths.sql \
2327
&& echo "UPDATE Config SET Value='${BASE_DIR}/' WHERE ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='base');" >> /docker-entrypoint-initdb.d/0001-paths.sql \

0 commit comments

Comments
 (0)