-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from devilbox/release-0.19
Use latest vhost-gen version
- Loading branch information
Showing
11 changed files
with
60 additions
and
173 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ set -u | |
set -o pipefail | ||
|
||
CWD="$(cd -P -- "$(dirname -- "$0")" && pwd -P)" | ||
DOCKER_NAME="${1}" | ||
|
||
|
||
### | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
FROM httpd:2.2 | ||
MAINTAINER "cytopia" <[email protected]> | ||
|
||
LABEL \ | ||
name="cytopia's apache 2.2 image" \ | ||
image="devilbox/apache-2.2" \ | ||
vendor="devilbox" \ | ||
license="MIT" | ||
|
||
### | ||
### Build arguments | ||
### | ||
ARG VHOST_GEN_GIT_REF=0.7 | ||
ARG VHOST_GEN_GIT_REF=0.10 | ||
ARG CERT_GEN_GIT_REF=0.2 | ||
|
||
ENV BUILD_DEPS \ | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
image = devilbox/apache-2.2 | ||
|
||
help: | ||
@printf "%s\n" "make build: Build" | ||
@printf "%s\n" "make rebuild: Rebuild" | ||
@printf "%s\n" "make test: Test" | ||
|
||
|
||
build: pull | ||
docker build -t $(image) . | ||
cd build; ./gen-readme.sh $(image) | ||
|
||
rebuild: pull | ||
docker build --no-cache -t $(image) . | ||
cd build; ./gen-readme.sh $(image) | ||
|
||
test: | ||
.ci/start-ci.sh $(image) $(ARG) | ||
|
||
pull: | ||
docker pull $(shell grep FROM Dockerfile | sed 's/^FROM//g'; done) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh -eu | ||
|
||
|
||
### | ||
### Globals | ||
### | ||
CWD="$(cd -P -- "$(dirname -- "$0")" && pwd -P)/.." | ||
IMAGE="${1}" | ||
|
||
### | ||
### Retrieve information afterwards and Update README.md | ||
### | ||
INFO="$( docker run -it --rm --entrypoint=httpd ${IMAGE} -V 2>&1 | tr -d "\r" )" | ||
|
||
echo "${INFO}" | ||
sed -i'' '/##[[:space:]]Version/q' "${CWD}/README.md" | ||
echo "" >> "${CWD}/README.md" | ||
echo '```' >> "${CWD}/README.md" | ||
echo "${INFO}" >> "${CWD}/README.md" | ||
echo '```' >> "${CWD}/README.md" |
This file contains 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