Commit de7230c1 authored by Alex Thomae's avatar Alex Thomae 👓
Browse files

Merge branch 'NokiDev-swarm-launcher' into 'master'

Added LAUNCH_MAC_ADDRESS handler

See merge request !29
parents e59537ed 8ccae135
Pipeline #360092569 passed with stages
in 1 minute and 50 seconds
......@@ -77,6 +77,7 @@ The following environment variables are important if you don't supply a `/docker
| `LAUNCH_EXTRA_HOSTS` | - | NO | Space separated list of HostName:Mapping pairs |
| `LAUNCH_DNS` | - | NO | Space separated list of DNS servers |
| `LAUNCH_DNS_SEARCH` | - | NO | Space separated list of DNS search domains |
| `LAUNCH_MAC_ADDRESS` | - | NO | Valid mac address for the launched container |
**Note**: Make sure you check out the [documentation](docs/).
......
......@@ -259,6 +259,10 @@ xEOF
done
fi
# Specific Mac Address for the container
if [ -n "${LAUNCH_MAC_ADDRESS}" ]; then
echo " mac_address: ${LAUNCH_MAC_ADDRESS}" >> ${COMPOSE_FILE}
fi
# run on the host network - it's incompatible with ports or with named networks
if [ "${LAUNCH_HOST_NETWORK}" = true ]; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment