Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joshmenden/2f6dcdd8f746453fe29d20ea9221a8e2 to your computer and use it in GitHub Desktop.
Save joshmenden/2f6dcdd8f746453fe29d20ea9221a8e2 to your computer and use it in GitHub Desktop.
FROM ubuntu:latest
ENV MYSQL_ALLOW_EMPTY_PASSWORD=true
ADD sakila-schema.sql /tmp/sakila-schema.sql
ADD sakila-data.sql /tmp/sakila-data.sql
RUN apt-get update && apt-get -y install mysql-server vim
RUN service mysql restart \
&& mysql -u root < /tmp/sakila-schema.sql \
&& mysql -u root < /tmp/sakila-data.sql
ENTRYPOINT mysqld_safe --bind-address=0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment