Run update.sh

This commit is contained in:
Docker Library Bot 2021-09-09 10:08:37 -07:00
parent 6dba150719
commit f619ed4289
3 changed files with 85 additions and 38 deletions

View File

@ -24,9 +24,9 @@ WARNING:
# Supported tags and respective `Dockerfile` links # Supported tags and respective `Dockerfile` links
- [`1.12.2`, `1.12`, `latest`](https://github.com/erlef/docker-elixir/blob/2b5da5abf10f3026d01b6dda3c509f4f09f60063/1.12/Dockerfile) - [`1.12.3`, `1.12`, `latest`](https://github.com/erlef/docker-elixir/blob/a7a9a8ecd02b6e31e93cfa13d8c18de0328f6e1a/1.12/Dockerfile)
- [`1.12.2-slim`, `1.12-slim`, `slim`](https://github.com/erlef/docker-elixir/blob/2b5da5abf10f3026d01b6dda3c509f4f09f60063/1.12/slim/Dockerfile) - [`1.12.3-slim`, `1.12-slim`, `slim`](https://github.com/erlef/docker-elixir/blob/a7a9a8ecd02b6e31e93cfa13d8c18de0328f6e1a/1.12/slim/Dockerfile)
- [`1.12.2-alpine`, `1.12-alpine`, `alpine`](https://github.com/erlef/docker-elixir/blob/2b5da5abf10f3026d01b6dda3c509f4f09f60063/1.12/alpine/Dockerfile) - [`1.12.3-alpine`, `1.12-alpine`, `alpine`](https://github.com/erlef/docker-elixir/blob/a7a9a8ecd02b6e31e93cfa13d8c18de0328f6e1a/1.12/alpine/Dockerfile)
- [`1.11.4`, `1.11`](https://github.com/erlef/docker-elixir/blob/045351a425a16578309053fa8f729f046fcd616f/1.11/Dockerfile) - [`1.11.4`, `1.11`](https://github.com/erlef/docker-elixir/blob/045351a425a16578309053fa8f729f046fcd616f/1.11/Dockerfile)
- [`1.11.4-slim`, `1.11-slim`](https://github.com/erlef/docker-elixir/blob/045351a425a16578309053fa8f729f046fcd616f/1.11/slim/Dockerfile) - [`1.11.4-slim`, `1.11-slim`](https://github.com/erlef/docker-elixir/blob/045351a425a16578309053fa8f729f046fcd616f/1.11/slim/Dockerfile)
- [`1.11.4-alpine`, `1.11-alpine`](https://github.com/erlef/docker-elixir/blob/045351a425a16578309053fa8f729f046fcd616f/1.11/alpine/Dockerfile) - [`1.11.4-alpine`, `1.11-alpine`](https://github.com/erlef/docker-elixir/blob/045351a425a16578309053fa8f729f046fcd616f/1.11/alpine/Dockerfile)

View File

@ -24,16 +24,16 @@ WARNING:
# Supported tags and respective `Dockerfile` links # Supported tags and respective `Dockerfile` links
- [`16-alpine3.11`, `16.8-alpine3.11`, `16.8.0-alpine3.11`, `alpine3.11`, `current-alpine3.11`](https://github.com/nodejs/docker-node/blob/3047652162a4f83f68260aabfdbb688e58e7b152/16/alpine3.11/Dockerfile) - [`16-alpine3.11`, `16.9-alpine3.11`, `16.9.0-alpine3.11`, `alpine3.11`, `current-alpine3.11`](https://github.com/nodejs/docker-node/blob/efbd2fac720142152514b35efe49bda3402dba8c/16/alpine3.11/Dockerfile)
- [`16-alpine3.12`, `16.8-alpine3.12`, `16.8.0-alpine3.12`, `alpine3.12`, `current-alpine3.12`](https://github.com/nodejs/docker-node/blob/3047652162a4f83f68260aabfdbb688e58e7b152/16/alpine3.12/Dockerfile) - [`16-alpine3.12`, `16.9-alpine3.12`, `16.9.0-alpine3.12`, `alpine3.12`, `current-alpine3.12`](https://github.com/nodejs/docker-node/blob/efbd2fac720142152514b35efe49bda3402dba8c/16/alpine3.12/Dockerfile)
- [`16-alpine`, `16-alpine3.13`, `16.8-alpine`, `16.8-alpine3.13`, `16.8.0-alpine`, `16.8.0-alpine3.13`, `alpine`, `alpine3.13`, `current-alpine`, `current-alpine3.13`](https://github.com/nodejs/docker-node/blob/3047652162a4f83f68260aabfdbb688e58e7b152/16/alpine3.13/Dockerfile) - [`16-alpine`, `16-alpine3.13`, `16.9-alpine`, `16.9-alpine3.13`, `16.9.0-alpine`, `16.9.0-alpine3.13`, `alpine`, `alpine3.13`, `current-alpine`, `current-alpine3.13`](https://github.com/nodejs/docker-node/blob/efbd2fac720142152514b35efe49bda3402dba8c/16/alpine3.13/Dockerfile)
- [`16-alpine3.14`, `16.8-alpine3.14`, `16.8.0-alpine3.14`, `alpine3.14`, `current-alpine3.14`](https://github.com/nodejs/docker-node/blob/3047652162a4f83f68260aabfdbb688e58e7b152/16/alpine3.14/Dockerfile) - [`16-alpine3.14`, `16.9-alpine3.14`, `16.9.0-alpine3.14`, `alpine3.14`, `current-alpine3.14`](https://github.com/nodejs/docker-node/blob/efbd2fac720142152514b35efe49bda3402dba8c/16/alpine3.14/Dockerfile)
- [`16-bullseye`, `16.8-bullseye`, `16.8.0-bullseye`, `bullseye`, `current-bullseye`](https://github.com/nodejs/docker-node/blob/3047652162a4f83f68260aabfdbb688e58e7b152/16/bullseye/Dockerfile) - [`16-bullseye`, `16.9-bullseye`, `16.9.0-bullseye`, `bullseye`, `current-bullseye`](https://github.com/nodejs/docker-node/blob/efbd2fac720142152514b35efe49bda3402dba8c/16/bullseye/Dockerfile)
- [`16-bullseye-slim`, `16.8-bullseye-slim`, `16.8.0-bullseye-slim`, `bullseye-slim`, `current-bullseye-slim`](https://github.com/nodejs/docker-node/blob/3047652162a4f83f68260aabfdbb688e58e7b152/16/bullseye-slim/Dockerfile) - [`16-bullseye-slim`, `16.9-bullseye-slim`, `16.9.0-bullseye-slim`, `bullseye-slim`, `current-bullseye-slim`](https://github.com/nodejs/docker-node/blob/efbd2fac720142152514b35efe49bda3402dba8c/16/bullseye-slim/Dockerfile)
- [`16`, `16-buster`, `16.8`, `16.8-buster`, `16.8.0`, `16.8.0-buster`, `buster`, `current`, `current-buster`, `latest`](https://github.com/nodejs/docker-node/blob/3047652162a4f83f68260aabfdbb688e58e7b152/16/buster/Dockerfile) - [`16`, `16-buster`, `16.9`, `16.9-buster`, `16.9.0`, `16.9.0-buster`, `buster`, `current`, `current-buster`, `latest`](https://github.com/nodejs/docker-node/blob/efbd2fac720142152514b35efe49bda3402dba8c/16/buster/Dockerfile)
- [`16-buster-slim`, `16-slim`, `16.8-buster-slim`, `16.8-slim`, `16.8.0-buster-slim`, `16.8.0-slim`, `buster-slim`, `current-buster-slim`, `current-slim`, `slim`](https://github.com/nodejs/docker-node/blob/3047652162a4f83f68260aabfdbb688e58e7b152/16/buster-slim/Dockerfile) - [`16-buster-slim`, `16-slim`, `16.9-buster-slim`, `16.9-slim`, `16.9.0-buster-slim`, `16.9.0-slim`, `buster-slim`, `current-buster-slim`, `current-slim`, `slim`](https://github.com/nodejs/docker-node/blob/efbd2fac720142152514b35efe49bda3402dba8c/16/buster-slim/Dockerfile)
- [`16-stretch`, `16.8-stretch`, `16.8.0-stretch`, `current-stretch`, `stretch`](https://github.com/nodejs/docker-node/blob/3047652162a4f83f68260aabfdbb688e58e7b152/16/stretch/Dockerfile) - [`16-stretch`, `16.9-stretch`, `16.9.0-stretch`, `current-stretch`, `stretch`](https://github.com/nodejs/docker-node/blob/efbd2fac720142152514b35efe49bda3402dba8c/16/stretch/Dockerfile)
- [`16-stretch-slim`, `16.8-stretch-slim`, `16.8.0-stretch-slim`, `current-stretch-slim`, `stretch-slim`](https://github.com/nodejs/docker-node/blob/3047652162a4f83f68260aabfdbb688e58e7b152/16/stretch-slim/Dockerfile) - [`16-stretch-slim`, `16.9-stretch-slim`, `16.9.0-stretch-slim`, `current-stretch-slim`, `stretch-slim`](https://github.com/nodejs/docker-node/blob/efbd2fac720142152514b35efe49bda3402dba8c/16/stretch-slim/Dockerfile)
- [`14-alpine`, `14-alpine3.11`, `14.17-alpine`, `14.17-alpine3.11`, `14.17.6-alpine`, `14.17.6-alpine3.11`, `fermium-alpine`, `fermium-alpine3.11`, `lts-alpine`, `lts-alpine3.11`](https://github.com/nodejs/docker-node/blob/dc340d0bf2119dee534106ef012e85861cda8b84/14/alpine3.11/Dockerfile) - [`14-alpine`, `14-alpine3.11`, `14.17-alpine`, `14.17-alpine3.11`, `14.17.6-alpine`, `14.17.6-alpine3.11`, `fermium-alpine`, `fermium-alpine3.11`, `lts-alpine`, `lts-alpine3.11`](https://github.com/nodejs/docker-node/blob/dc340d0bf2119dee534106ef012e85861cda8b84/14/alpine3.11/Dockerfile)
- [`14-alpine3.12`, `14.17-alpine3.12`, `14.17.6-alpine3.12`, `fermium-alpine3.12`, `lts-alpine3.12`](https://github.com/nodejs/docker-node/blob/dc340d0bf2119dee534106ef012e85861cda8b84/14/alpine3.12/Dockerfile) - [`14-alpine3.12`, `14.17-alpine3.12`, `14.17.6-alpine3.12`, `fermium-alpine3.12`, `lts-alpine3.12`](https://github.com/nodejs/docker-node/blob/dc340d0bf2119dee534106ef012e85861cda8b84/14/alpine3.12/Dockerfile)
- [`14-alpine3.13`, `14.17-alpine3.13`, `14.17.6-alpine3.13`, `fermium-alpine3.13`, `lts-alpine3.13`](https://github.com/nodejs/docker-node/blob/dc340d0bf2119dee534106ef012e85861cda8b84/14/alpine3.13/Dockerfile) - [`14-alpine3.13`, `14.17-alpine3.13`, `14.17.6-alpine3.13`, `fermium-alpine3.13`, `lts-alpine3.13`](https://github.com/nodejs/docker-node/blob/dc340d0bf2119dee534106ef012e85861cda8b84/14/alpine3.13/Dockerfile)

View File

@ -57,6 +57,8 @@ YOURLS is a set of PHP scripts that will allow you to run Your Own URL Shortener
# How to use this image # How to use this image
## Start a `yourls` server instance
```console ```console
$ docker run --name some-yourls --link some-mysql:mysql \ $ docker run --name some-yourls --link some-mysql:mysql \
-e YOURLS_SITE="https://example.com" \ -e YOURLS_SITE="https://example.com" \
@ -65,28 +67,7 @@ $ docker run --name some-yourls --link some-mysql:mysql \
-d yourls -d yourls
``` ```
The YOURLS instance accepts [a number of environment variables for configuration](https://yourls.org/#Config). The YOURLS instance accepts a number of environment variables for configuration, see *Environment Variables* section below.
A few notable/important examples for using this Docker image include:
- `-e YOURLS_DB_HOST=...` (defaults to the IP and port of the linked `mysql` container)
- `-e YOURLS_DB_USER=...` (defaults to "root")
- `-e YOURLS_DB_PASS=...` (defaults to the value of the `MYSQL_ROOT_PASSWORD` environment variable from the linked `mysql` container)
- `-e YOURLS_DB_NAME=...` (defaults to "yourls")
- `-e YOURLS_DB_PREFIX=...` (defaults to "yourls_", only set this when you need to override the default table prefix)
- `-e YOURLS_COOKIEKEY=...` (default to unique random SHA1s)
- `-e YOURLS_SITE=...` (yourls instance url)
- `-e YOURLS_USER=...` (yourls instance user name)
- `-e YOURLS_PASS=...` (yourls instance user password)
If the `YOURLS_DB_NAME` specified does not already exist on the given MySQL server, it will be created automatically upon startup of the `yourls` container, provided that the `YOURLS_DB_USER` specified has the necessary permissions to create it.
If you'd like to be able to access the instance from the host without the container's IP, standard port mappings can be used:
```console
$ docker run --name some-yourls --link some-mysql:mysql -p 8080:80 -d yourls
```
Then, access it via `http://localhost:8080/admin/` or `http://host-ip:8080/admin/` in a browser.
If you'd like to use an external database instead of a linked `mysql` container, specify the hostname and port with `YOURLS_DB_HOST` along with the password in `YOURLS_DB_PASS` and the username in `YOURLS_DB_USER` (if it is something other than `root`): If you'd like to use an external database instead of a linked `mysql` container, specify the hostname and port with `YOURLS_DB_HOST` along with the password in `YOURLS_DB_PASS` and the username in `YOURLS_DB_USER` (if it is something other than `root`):
@ -95,6 +76,71 @@ $ docker run --name some-yourlss -e YOURLS_DB_HOST=10.1.2.3:3306 \
-e YOURLS_DB_USER=... -e YOURLS_DB_PASS=... -d yourls -e YOURLS_DB_USER=... -e YOURLS_DB_PASS=... -d yourls
``` ```
## Connect to the YOURLS administration interface
If you'd like to be able to access the instance from the host without the container's IP, standard port mappings can be used:
```console
$ docker run --name some-yourls --link some-mysql:mysql -p 8080:80 -d yourls
```
Then, access it via `http://localhost:8080/admin/` or `http://<host-ip>:8080/admin/` in a browser.
**Note:** On first instantiation, reaching the root folder will generate an error. Access the YOURLS administration interface via the path `/admin/`.
## Environment Variables
When you start the `yourls` image, you can adjust the configuration of the YOURLS instance by passing one or more environment variables on the `docker run` command line.
The YOURLS instance accepts [a number of environment variables for configuration](https://yourls.org/#Config).
A few notable/important examples for using this Docker image include the following.
### `YOURLS_SITE`
**Required.**
YOURLS instance URL, no trailing slash, lowercase.
Example: `YOURLS_SITE="https://example.com"`
### `YOURLS_USER`
**Required.**
YOURLS instance username.
Example: `YOURLS_USER="example_username"`
### `YOURLS_PASS`
**Required.**
YOURLS instance password.
Example: `YOURLS_USER="example_password"`
### `YOURLS_DB_HOST`, `YOURLS_DB_USER`, `YOURLS_DB_PASS`
**Optional if linked `mysql` container.**
Host, user (defaults to "root") and password for the database.
### `YOURLS_DB_NAME`
**Optional.**
Database name, defaults to "yourls". The database must have been created before installing YOURLS.
### `YOURLS_DB_PREFIX`
**Optional.**
Database tables prefix, defaults to "yourls_". Only set this when you need to override the default table prefix.
## Docker Secrets
As an alternative to passing sensitive information via environment variables, `_FILE` may be appended to the previously listed environment variables, causing the initialization script to load the values for those variables from files present in the container. In particular, this can be used to load passwords from Docker secrets stored in `/run/secrets/<secret_name>` files. For example:
```console
$ docker run --name some-yourls -e YOURLS_DB_PASS_FILE=/run/secrets/mysql-root ... -d yourls:tag
```
Currently, this is supported for `YOURLS_DB_HOST`, `YOURLS_DB_USER`, `YOURLS_DB_PASS`, `YOURLS_DB_NAME`, `YOURLS_DB_PREFIX`, `YOURLS_SITE`, `YOURLS_USER`, and `YOURLS_PASS`.
## ... via [`docker stack deploy`](https://docs.docker.com/engine/reference/commandline/stack_deploy/) or [`docker-compose`](https://github.com/docker/compose) ## ... via [`docker stack deploy`](https://docs.docker.com/engine/reference/commandline/stack_deploy/) or [`docker-compose`](https://github.com/docker/compose)
Example `stack.yml` for `yourls`: Example `stack.yml` for `yourls`:
@ -116,15 +162,16 @@ services:
YOURLS_PASS: example_password YOURLS_PASS: example_password
mysql: mysql:
image: mysql:5.7 image: mysql
restart: always restart: always
environment: environment:
MYSQL_ROOT_PASSWORD: example MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: yourls
``` ```
[![Try in PWD](https://github.com/play-with-docker/stacks/raw/cff22438cb4195ace27f9b15784bbb497047afa7/assets/images/button.png)](http://play-with-docker.com?stack=https://raw.githubusercontent.com/docker-library/docs/be1a84b44ec3c028aa0ac5a9c8e413e43dfe05e4/yourls/stack.yml) [![Try in PWD](https://github.com/play-with-docker/stacks/raw/cff22438cb4195ace27f9b15784bbb497047afa7/assets/images/button.png)](http://play-with-docker.com?stack=https://raw.githubusercontent.com/docker-library/docs/6dba1507190ff91149046ce4bcbac43529d76bd4/yourls/stack.yml)
Run `docker stack deploy -c stack.yml yourls` (or `docker-compose -f stack.yml up`), wait for it to initialize completely, and visit `http://swarm-ip:8080/admin/`, `http://localhost:8080/admin/`, or `http://host-ip:8080/admin/` (as appropriate). Run `docker stack deploy -c stack.yml yourls` (or `docker-compose -f stack.yml up`), wait for it to initialize completely, and visit `http://swarm-ip:8080/admin/`, `http://localhost:8080/admin/`, or `http://<host-ip>:8080/admin/` (as appropriate).
## Adding additional libraries / extensions ## Adding additional libraries / extensions