655aab8b by Adam Heath

Importing into a fresh repository.

1 parent 8b1ea3b9
FROM docker.brainfood.com/dumb-init
ADD /overlay/ /
RUN ["apt-docker", \
"-y", "install", "mysql-server-5.5", \
";" ]
RUN ["save-data-dir", "/var/lib/mysql", "mysql-server" ]
EXPOSE 3306
version: '2'
services:
build:
image: docker.brainfood.com/mysql-server
build:
context: .
args:
- http_proxy
- https_proxy
ports:
- 3306
#!/bin/bash
set -e
data_dir=/var/lib/mysql
if [[ -d $data_dir ]]; then
declare -a files=(
$(find "$data_dir" -mindepth 1 -maxdepth 1 -not -name lost+found 2>/dev/null)
)
if [[ ${#files[*]} -eq 0 ]]; then
tar -zxf /var/lib/docker-init/data/mysql-server.data.tar.gz -C "$data_dir"
fi
fi
[mysqld]
innodb_file_per_table
bind-address = *