Last active
January 19, 2022 19:46
-
-
Save Fishbowler/d550a4738c80191597f2db7340c5b5fd to your computer and use it in GitHub Desktop.
Bash alias for launching Openfire in a docker container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First param is the image tag | |
# Second param is optional and passed to the launcher | |
# examples: | |
# ofdocker latest | |
# ofdocker mybranch -demoboot | |
function ofdocker(){ | |
DOCKERCMD="docker run" | |
DOCKERCMD="${DOCKERCMD} --rm -it" | |
DOCKERCMD="${DOCKERCMD} -p 3478:3478/tcp -p 3479:3479/tcp -p 5222:5222/tcp -p 5223:5223/tcp" | |
DOCKERCMD="${DOCKERCMD} -p 5229:5229/tcp -p 5262:5262/tcp -p 5263:5263/tcp -p 5275:5275/tcp" | |
DOCKERCMD="${DOCKERCMD} -p 5276:5276/tcp -p 7070:7070/tcp -p 7444:7444/tcp -p 7777:7777/tcp" | |
DOCKERCMD="${DOCKERCMD} -p 9090:9090/tcp -p 9091:9091/tcp -p 5005:5005/tcp" | |
DOCKERCMD="${DOCKERCMD} openfire:$1 ${*:2}" | |
${DOCKERCMD} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment