Run update.sh
This commit is contained in:
parent
cbbe664fa3
commit
3bb697134e
|
|
@ -51,6 +51,44 @@ Then point your web server to port 9000 of the container.
|
|||
|
||||
Note: This exposes the FastCGI socket to the Internet. Make sure to add proper firewall rules or use a private Docker network instead to prevent a direct access.
|
||||
|
||||
### Loading plugins
|
||||
|
||||
This image bundles all official adminer plugins. You can find the list of plugins on GitHub: https://github.com/vrana/adminer/tree/master/plugins.
|
||||
|
||||
To load plugins you can pass a list of filenames in `ADMINER_PLUGINS`:
|
||||
|
||||
$ docker run --link some_database:db -p 8080:8080 -e ADMINER_PLUGINS='tables-filter tinymce' adminer
|
||||
|
||||
If a plugin *requires* parameters to work correctly you will need to add a custom file to the container:
|
||||
|
||||
$ docker run --link some_database:db -p 8080:8080 -e ADMINER_PLUGINS='login-servers' adminer
|
||||
Unable to load plugin file "login-servers", because it has required parameters: servers
|
||||
Create a file "/var/www/html/plugins-enabled/login-servers.php" with the following contents to load the plugin:
|
||||
|
||||
<?php
|
||||
require_once('plugins/login-servers.php');
|
||||
|
||||
/** Set supported servers
|
||||
* @param array array($domain) or array($domain => $description) or array($category => array())
|
||||
* @param string
|
||||
*/
|
||||
return new AdminerLoginServers(
|
||||
$servers = ???,
|
||||
$driver = 'server'
|
||||
);
|
||||
|
||||
To load a custom plugin you can add PHP scripts that return the instance of the plugin object to `/var/www/html/plugins-enabled/`.
|
||||
|
||||
### Choosing a design
|
||||
|
||||
The image bundles all the designs that are available in the source package of adminer. You can find the list of designs on GitHub: https://github.com/vrana/adminer/tree/master/designs.
|
||||
|
||||
To use a bundled design you can pass its name in `ADMINER_DESIGN`:
|
||||
|
||||
$ docker run --link some_database:db -p 8080:8080 -e ADMINER_DESIGN='nette' adminer
|
||||
|
||||
To use a custom design you can add a file called `/var/www/html/adminer.css`.
|
||||
|
||||
## Supported Drivers
|
||||
|
||||
While Adminer supports a wide range of database drivers this image only supports the following out of the box:
|
||||
|
|
|
|||
|
|
@ -18,8 +18,10 @@ WARNING:
|
|||
|
||||
- [`1.11.13`, `mainline`, `1`, `1.11`, `latest` (*mainline/jessie/Dockerfile*)](https://github.com/nginxinc/docker-nginx/blob/0c7611139f2ce7c5a6b1febbfd5b436c8c7d2d53/mainline/jessie/Dockerfile)
|
||||
- [`1.11.13-alpine`, `mainline-alpine`, `1-alpine`, `1.11-alpine`, `alpine` (*mainline/alpine/Dockerfile*)](https://github.com/nginxinc/docker-nginx/blob/0c7611139f2ce7c5a6b1febbfd5b436c8c7d2d53/mainline/alpine/Dockerfile)
|
||||
- [`1.10.3`, `stable`, `1.10` (*stable/jessie/Dockerfile*)](https://github.com/nginxinc/docker-nginx/blob/014e624239987a0a46bee5b44088a8c5150bf0bb/stable/jessie/Dockerfile)
|
||||
- [`1.10.3-alpine`, `stable-alpine`, `1.10-alpine` (*stable/alpine/Dockerfile*)](https://github.com/nginxinc/docker-nginx/blob/014e624239987a0a46bee5b44088a8c5150bf0bb/stable/alpine/Dockerfile)
|
||||
- [`1.12.0`, `stable`, `1.12` (*stable/stretch/Dockerfile*)](https://github.com/nginxinc/docker-nginx/blob/4d1f7f8ec281117d1d79bed4c6bc28b86039ca84/stable/stretch/Dockerfile)
|
||||
- [`1.12.0-perl`, `stable-perl`, `1.12-perl` (*stable/stretch-perl/Dockerfile*)](https://github.com/nginxinc/docker-nginx/blob/4d1f7f8ec281117d1d79bed4c6bc28b86039ca84/stable/stretch-perl/Dockerfile)
|
||||
- [`1.12.0-alpine`, `stable-alpine`, `1.12-alpine` (*stable/alpine/Dockerfile*)](https://github.com/nginxinc/docker-nginx/blob/4d1f7f8ec281117d1d79bed4c6bc28b86039ca84/stable/alpine/Dockerfile)
|
||||
- [`1.12.0-alpine-perl`, `stable-alpine-perl`, `1.12-alpine-perl` (*stable/alpine-perl/Dockerfile*)](https://github.com/nginxinc/docker-nginx/blob/4d1f7f8ec281117d1d79bed4c6bc28b86039ca84/stable/alpine-perl/Dockerfile)
|
||||
|
||||
For detailed information about the published artifacts of each of the above supported tags (image metadata, transfer size, etc), please see [the `repos/nginx` directory](https://github.com/docker-library/repo-info/blob/master/repos/nginx) in [the `docker-library/repo-info` GitHub repo](https://github.com/docker-library/repo-info).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue