Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
docker
/
mysql-server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
655aab8b
authored
2017-01-31 13:18:26 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Importing into a fresh repository.
1 parent
8b1ea3b9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
0 deletions
Dockerfile
docker-compose.yml
overlay/etc/docker-init/runtime/pre-config/10-mysql.sh
overlay/etc/mysql/conf.d/docker.cnf
Dockerfile
0 → 100644
View file @
655aab8
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
docker-compose.yml
0 → 100644
View file @
655aab8
version
:
'
2'
services
:
build
:
image
:
docker.brainfood.com/mysql-server
build
:
context
:
.
args
:
-
http_proxy
-
https_proxy
ports
:
-
3306
overlay/etc/docker-init/runtime/pre-config/10-mysql.sh
0 → 100755
View file @
655aab8
#!/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
overlay/etc/mysql/conf.d/docker.cnf
0 → 100644
View file @
655aab8
[mysqld]
innodb_file_per_table
bind-address = *
Please
register
or
sign in
to post a comment