dockerfiles

所属分类:Docker
开发工具:Shell
文件大小:0KB
下载次数:0
上传日期:2023-08-21 18:24:43
上 传 者sh-1993
说明:  dockerfiles的集合,即:FreeOrion服务器、Jamf Pro服务器。,
(Collection of my dockerfiles, i.e.: FreeOrion server, Jamf Pro server.,)

文件列表:
LICENSE (1071, 2023-08-21)
freeorion/ (0, 2023-08-21)
freeorion/Dockerfile (765, 2023-08-21)
freeorion/docker-compose.yml (229, 2023-08-21)
jamfpro/ (0, 2023-08-21)
jamfpro/.env_example (177, 2023-08-21)
jamfpro/docker-compose.yml (1024, 2023-08-21)
jamfpro/wait-for-it.sh (5227, 2023-08-21)

# This repository contains my Dockerfiles ## Directory structure - [jamfpro](https://github.com/magnusviri/dockerfiles/blob/master/./jamfpro) My attempt at a [Jamf Pro](https://github.com/magnusviri/dockerfiles/blob/master/https://www.jamf.com/) server. - [freeorion](https://github.com/magnusviri/dockerfiles/blob/master/./freeorion) My attempt at a [FreeOrion](https://github.com/magnusviri/dockerfiles/blob/master/https://freeorion.org/) hostless server. You are probably here for the Jamf Pro compose file. I had this as a separate repo, but I thought I was going to make so many Docker images that I should combine all of my Docker Compose files into one repo. And then I didn't make a whole bunch. So it's just these 2. I'm just going to leave them together though simply because I don't want to go through the work to split them up. ## Jamf Pro For more information, see my [Jamf Pro Readme](https://github.com/magnusviri/dockerfiles/blob/master/https://github.com/magnusviri/dockerfiles/tree/main/jamfpro). ## FreeOrion For more information, see my [FreeOrion Readme](https://github.com/magnusviri/dockerfiles/blob/master/https://github.com/magnusviri/dockerfiles/tree/main/freeorion). ## Really useful one-liners ### Apache Start apache and serve the current directory. docker run --rm -it -p8080:80 -v $(pwd):/usr/local/apache2/htdocs httpd ### asciicast2gif docker run --rm -v $PWD:/data asciinema/asciicast2gif https://asciinema.org/a/diFmnNEo94uA65B0HMu205B1w.cast demo.gif ### Jekyll Build and serve Jekyll docker run --rm -it -v $PWD:/srv/jekyll jekyll/builder jekyll build docker run --rm -it -p4000:4000 -v $PWD:/srv/jekyll jekyll/builder jekyll serve ## zsh function to run docker one-liners Add the following to your ~/.zshrc file. This has the ability to specify port and directory. On macOS it will also open a web browser to localhost. docker_fun() { port=$1 if [ -n "$3" ]; then port=$3 fi dir=$PWD if [ -n "$4" ]; then if [ -d "/$4" ]; then dir=$4 else echo "\"$4\" must be an absolute path (use \$PWD/ to get your current directory)." return fi fi echo $dir if [ $(uname) = "Darwin" ]; then open "http://localhost:$port" & fi echo docker run --rm -it -p$port:$2 -v"$dir":$5 $6 $7 docker run --rm -it -p$port:$2 -v"$dir":$5 $6 $7 } apache() { docker_fun 8080 80 "$1" "$2" /usr/local/apache2/htdocs httpd } jekyll() { echo 1 $1 2 $2 docker_fun 4000 4000 "$1" "$2" /srv/jekyll jekyll/builder /bin/bash } Change to the directory you want to be the site root and then run this. apache To specify a port apache 8180 To specify a port and directory apache 8180 $PWD/Sites ## License Copyright (c) 2021 James Reynolds - MIT License

近期下载者

相关文件


收藏者