Dockerfile 616 B

1234567891011121314151617181920
  1. ## MySQL with Open Data Set from NYC Open Data (https://data.cityofnewyork.us)
  2. FROM mysql:latest
  3. ENV MYSQL_DATABASE="testdata" \
  4. MYSQL_ROOT_PASSWORD="rootpass" \
  5. MYSQL_USER="grafana" \
  6. MYSQL_PASSWORD="password"
  7. # Install requirement (wget)
  8. RUN apt-get update && apt-get install -y wget && apt-get install unzip
  9. # Fetch NYC Data Set
  10. RUN wget https://data.cityofnewyork.us/download/57g5-etyj/application%2Fzip -O /tmp/data.zip && \
  11. unzip -j /tmp/data.zip 311_Service_Requests_from_2015.csv -d /var/lib/mysql-files && \
  12. rm /tmp/data.zip
  13. ADD import_csv.sql /docker-entrypoint-initdb.d/
  14. EXPOSE 3306