Importing into a fresh repository.
Showing
4 changed files
with
40 additions
and
0 deletions
Dockerfile
0 → 100644
docker-compose.yml
0 → 100644
1 | #!/bin/bash | ||
2 | |||
3 | set -e | ||
4 | data_dir=/var/lib/mysql | ||
5 | |||
6 | if [[ -d $data_dir ]]; then | ||
7 | declare -a files=( | ||
8 | $(find "$data_dir" -mindepth 1 -maxdepth 1 -not -name lost+found 2>/dev/null) | ||
9 | ) | ||
10 | if [[ ${#files[*]} -eq 0 ]]; then | ||
11 | tar -zxf /var/lib/docker-init/data/mysql-server.data.tar.gz -C "$data_dir" | ||
12 | fi | ||
13 | fi | ||
14 |
overlay/etc/mysql/conf.d/docker.cnf
0 → 100644
-
Please register or sign in to post a comment