You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -114,6 +118,8 @@ Container images are configured using parameters passed at runtime (such as thos
114
118
|`-e MYSQL_DATABASE=<USER DB NAME>`| Specify the name of a database to be created on image startup. |
115
119
|`-e MYSQL_USER=<MYSQL USER>`| This user will have superuser access to the database specified by MYSQL_DATABASE. |
116
120
|`-e MYSQL_PASSWORD=<DATABASE PASSWORD>`| Set this to the password you want to use for you MYSQL_USER (minimum 4 characters). |
121
+
|`-e MYSQL_ROOT_PASSWORD_FILE=/location/of/file`| Set this to the location of a text file containing your password. |
122
+
|`-e REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql`| Set this to ingest sql files from an http/https endpoint (comma seperated array). |
117
123
|`-v /config`| Contains the db itself and all assorted settings. |
118
124
119
125
## User / Group Identifiers
@@ -137,7 +143,7 @@ If you didn't set a password during installation, (see logs for warning) use
137
143
`mysqladmin -u root password <PASSWORD>`
138
144
to set one at the docker prompt...
139
145
140
-
NOTE changing the MYSQL_ROOT_PASSWORD variable after the container has set up the initial databases has no effect, use the mysqladmin tool to change your mariadb password.
146
+
NOTE changing the MYSQL_ROOT_PASSWORD or MYSQL_ROOT_PASSWORD_FILE variable after the container has set up the initial databases has no effect, use the mysqladmin tool to change your mariadb password.
141
147
142
148
NOTE if you want to use (MYSQL_DATABASE MYSQL_USER MYSQL_PASSWORD) **all three** of these variables need to be set you cannot pick and choose.
143
149
@@ -146,6 +152,15 @@ Unraid users, it is advisable to edit the template/webui after setup and remove
146
152
Find custom.cnf in /config for config changes (restart container for them to take effect)
147
153
, the databases in /config/databases and the log in /config/log/myqsl
148
154
155
+
### Bootstrapping a new instance
156
+
157
+
We support a one time run of custom sql files on init. In order to use this place `*.sql` files in:
158
+
159
+
```
160
+
/config/initdb.d/
161
+
```
162
+
This will have the same effect as setting the `REMOTE_SQL` environment variable. The sql will only be run on the containers first boot and setup.
163
+
149
164
150
165
151
166
## Support Info
@@ -212,6 +227,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
212
227
213
228
## Versions
214
229
230
+
***27.10.19:** - Bump to 10.4, ability use custom sql on initial init ,defining root passwords via file.
215
231
***23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
216
232
***07.03.19:** - Add ability to setup a database and default user on first spinup.
217
233
***26.01.19:** - Add pipeline logic and multi arch.
Copy file name to clipboardExpand all lines: readme-vars.yml
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,8 @@ opt_param_env_vars:
40
40
- { env_var: "MYSQL_DATABASE", env_value: "<USER DB NAME>", desc: "Specify the name of a database to be created on image startup." }
41
41
- { env_var: "MYSQL_USER", env_value: "<MYSQL USER>", desc: "This user will have superuser access to the database specified by MYSQL_DATABASE." }
42
42
- { env_var: "MYSQL_PASSWORD", env_value: "<DATABASE PASSWORD>", desc: "Set this to the password you want to use for you MYSQL_USER (minimum 4 characters)." }
43
+
- { env_var: "MYSQL_ROOT_PASSWORD_FILE", env_value: "/location/of/file", desc: "Set this to the location of a text file containing your password." }
44
+
- { env_var: "REMOTE_SQL", env_value: "http://URL1/your.sql,https://URL2/your.sql", desc: "Set this to ingest sql files from an http/https endpoint (comma seperated array)." }
43
45
opt_param_usage_include_vols: false
44
46
opt_param_usage_include_ports: false
45
47
opt_param_device_map: false
@@ -53,7 +55,7 @@ app_setup_block: |
53
55
`mysqladmin -u root password <PASSWORD>`
54
56
to set one at the docker prompt...
55
57
56
-
NOTE changing the MYSQL_ROOT_PASSWORD variable after the container has set up the initial databases has no effect, use the mysqladmin tool to change your mariadb password.
58
+
NOTE changing the MYSQL_ROOT_PASSWORD or MYSQL_ROOT_PASSWORD_FILE variable after the container has set up the initial databases has no effect, use the mysqladmin tool to change your mariadb password.
57
59
58
60
NOTE if you want to use (MYSQL_DATABASE MYSQL_USER MYSQL_PASSWORD) **all three** of these variables need to be set you cannot pick and choose.
59
61
@@ -62,8 +64,18 @@ app_setup_block: |
62
64
Find custom.cnf in /config for config changes (restart container for them to take effect)
63
65
, the databases in /config/databases and the log in /config/log/myqsl
64
66
67
+
### Bootstrapping a new instance
68
+
69
+
We support a one time run of custom sql files on init. In order to use this place `*.sql` files in:
70
+
71
+
```
72
+
/config/initdb.d/
73
+
```
74
+
This will have the same effect as setting the `REMOTE_SQL` environment variable. The sql will only be run on the containers first boot and setup.
75
+
65
76
# changelog
66
77
changelogs:
78
+
- { date: "27.10.19:", desc: "Bump to 10.4, ability use custom sql on initial init ,defining root passwords via file." }
67
79
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
68
80
- { date: "07.03.19:", desc: "Add ability to setup a database and default user on first spinup." }
69
81
- { date: "26.01.19:", desc: "Add pipeline logic and multi arch." }
0 commit comments