Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-docker-entrypoints
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-docker-entrypoints
Commits
74ba257e
Commit
74ba257e
authored
Apr 19, 2018
by
kalvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f
parent
ddf25537
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
run.sh
dev/common/mysql/run.sh
+6
-6
No files found.
dev/common/mysql/run.sh
View file @
74ba257e
...
@@ -113,6 +113,9 @@ init() {
...
@@ -113,6 +113,9 @@ init() {
export
MY_UID
=
"48"
export
MY_UID
=
"48"
export
MY_GID
=
"48"
export
MY_GID
=
"48"
groupadd
-g
${
MY_GID
}
-r
${
MY_GROUP
}
&&
\
adduser
${
MY_USER
}
-u
${
MY_UID
}
-M
-s
/sbin/nologin
-g
${
MY_GROUP
}
export
MYSQL_DEF_DAT
=
"/var/lib/mysql"
export
MYSQL_DEF_DAT
=
"/var/lib/mysql"
export
MYSQL_DEF_LOG
=
"/var/log/mysql"
export
MYSQL_DEF_LOG
=
"/var/log/mysql"
export
MYSQL_DEF_PID
=
"/var/run/mysqld"
export
MYSQL_DEF_PID
=
"/var/run/mysqld"
...
@@ -122,11 +125,6 @@ init() {
...
@@ -122,11 +125,6 @@ init() {
export
MYSQL_LOG_ERROR
=
"
${
MYSQL_DEF_LOG
}
/error.log"
export
MYSQL_LOG_ERROR
=
"
${
MYSQL_DEF_LOG
}
/error.log"
export
MYSQL_LOG_QUERY
=
"
${
MYSQL_DEF_LOG
}
/query.log"
export
MYSQL_LOG_QUERY
=
"
${
MYSQL_DEF_LOG
}
/query.log"
groupadd
-g
${
MY_GID
}
-r
${
MY_GROUP
}
&&
\
adduser
${
MY_USER
}
-u
${
MY_UID
}
-M
-s
/sbin/nologin
-g
${
MY_GROUP
}
run
"curl -o /etc/my.cnf http://192.168.3.60/QA/qg-docker-entrypoints/raw/master/dev/common/mysql/my.cnf"
run
"rm -rf
${
MYSQL_BASE_INCL
}
"
run
"rm -rf
${
MYSQL_BASE_INCL
}
"
run
"rm -rf
${
MYSQL_CUST_INCL1
}
"
run
"rm -rf
${
MYSQL_CUST_INCL1
}
"
run
"rm -rf
${
MYSQL_CUST_INCL2
}
"
run
"rm -rf
${
MYSQL_CUST_INCL2
}
"
...
@@ -158,6 +156,8 @@ init() {
...
@@ -158,6 +156,8 @@ init() {
run
"chmod 0775
${
MYSQL_DEF_SCK
}
"
run
"chmod 0775
${
MYSQL_DEF_SCK
}
"
run
"chmod 0775
${
MYSQL_DEF_PID
}
"
run
"chmod 0775
${
MYSQL_DEF_PID
}
"
run
"chmod 0775
${
MYSQL_DEF_LOG
}
"
run
"chmod 0775
${
MYSQL_DEF_LOG
}
"
run
"curl -o /etc/my.cnf http://192.168.3.60/QA/qg-docker-entrypoints/raw/master/dev/common/mysql/my.cnf"
}
}
...
@@ -376,7 +376,7 @@ fi
...
@@ -376,7 +376,7 @@ fi
### Start
### Start
###
###
log
"info"
"Starting
$(
mysqld
--version
)
"
log
"info"
"Starting
$(
mysqld
--version
)
"
exec
mysqld
&
exec
mysqld
###
###
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment