655aab8b by Adam Heath

Importing into a fresh repository.

1 parent 8b1ea3b9
1 FROM docker.brainfood.com/dumb-init
2
3 ADD /overlay/ /
4
5 RUN ["apt-docker", \
6 "-y", "install", "mysql-server-5.5", \
7 ";" ]
8
9 RUN ["save-data-dir", "/var/lib/mysql", "mysql-server" ]
10
11 EXPOSE 3306
1 version: '2'
2
3 services:
4 build:
5 image: docker.brainfood.com/mysql-server
6 build:
7 context: .
8 args:
9 - http_proxy
10 - https_proxy
11 ports:
12 - 3306
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
1 [mysqld]
2 innodb_file_per_table
3 bind-address = *