Skip to content

Commit

Permalink
Added mysql Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nithin.jois committed Apr 10, 2018
1 parent db5371f commit fa863e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mysql.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM mysql:5.7

ENV MYSQL_ROOT_PASSWORD=hegemony86
ENV MYSQL_DATABASE=expenses

COPY restore_db/expenses_2018-04-08.sql /tmp/
RUN touch /docker-entrypoint-initdb.d/restore_db.sh && chmod +x /docker-entrypoint-initdb.d/restore_db.sh
RUN echo "mysql -u root --password=$MYSQL_ROOT_PASSWORD $MYSQL_DATABASE < /tmp/expenses_2018-04-08.sql" >> /docker-entrypoint-initdb.d/restore_db.sh

0 comments on commit fa863e9

Please sign in to comment.