-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e083219
commit c099c03
Showing
26 changed files
with
341 additions
and
136 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
BASE_DIR="$(git rev-parse --show-toplevel)" | ||
BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" | ||
BUILD_DESC= | ||
VCS_REF="$(git rev-parse HEAD)" | ||
|
||
prebuild () { | ||
local source | ||
local dockerfile | ||
source="$BASE_DIR/$1" | ||
dockerfile=${source}/Dockerfile | ||
readmefile=${source}/README.md | ||
|
||
if [ -f $readmefile ]; then | ||
echo "\n\n$(cat ${BASE_DIR}/SPONSOR.md)" >>$readmefile | ||
BUILD_DESC="$(sed '3q;d' $readmefile)" | ||
fi | ||
|
||
if [ -f $dockerfile ]; then | ||
echo "\n\n$(cat ${BASE_DIR}/src/Metafile)" >>$dockerfile | ||
fi | ||
|
||
echo "::set-output name=BUILD_DATE::${BUILD_DATE}" | ||
echo "::set-output name=BUILD_DESC::${BUILD_DESC}" | ||
echo "::set-output name=VCS_REF::${VCS_REF}" | ||
} | ||
|
||
mkdir -p /tmp/buildx 2>/dev/null | ||
prebuild $1 |
Large diffs are not rendered by default.
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
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 @@ | ||
################################################################################ | ||
|
||
ARG BUILD_DATE | ||
ARG BUILD_DESC | ||
ARG BUILD_NAME | ||
ARG BUILD_VERSION | ||
ARG VCS_REF | ||
|
||
LABEL org.label-schema.schema-version="1.0" | ||
LABEL org.label-schema.name="$BUILD_NAME" | ||
LABEL org.label-schema.build-date="$BUILD_DATE" | ||
LABEL org.label-schema.version="$BUILD_VERSION" | ||
LABEL org.label-schema.description="$BUILD_DESC" | ||
LABEL org.label-schema.vcs-ref="$VCS_REF" | ||
LABEL org.label-schema.url="https://hub.docker.com/r/$BUILD_NAME" | ||
LABEL org.label-schema.vcs-url="https://github.com/shinsenter/php" | ||
LABEL org.label-schema.vendor="SHIN Company" | ||
LABEL maintainer="[email protected]" | ||
LABEL publisher="https://hub.docker.com/u/shinsenter" | ||
|
||
################################################################################ |
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 |
---|---|---|
|
@@ -60,9 +60,4 @@ FROM scratch | |
COPY --from=build /usr/src/s6/ / | ||
ENTRYPOINT ["/init"] | ||
|
||
################################################################################ | ||
|
||
ARG BUILD_NUMBER | ||
LABEL build_number="$BUILD_NUMBER" | ||
LABEL maintainer="[email protected]" | ||
LABEL publisher="https://hub.docker.com/u/shinsenter" | ||
################################################################################ |
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 |
---|---|---|
|
@@ -78,7 +78,7 @@ ENV S6_SERVICES_GRACETIME=3000 | |
|
||
################################################################################ | ||
|
||
ARG BUILD_NUMBER | ||
LABEL build_number="$BUILD_NUMBER" | ||
LABEL maintainer="[email protected]" | ||
LABEL publisher="https://hub.docker.com/u/shinsenter" | ||
LABEL category="os" | ||
LABEL category="base" | ||
|
||
################################################################################ |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# shinsenter/php | ||
|
||
🧭 Production-ready Docker images for PHP, support PHP CLI and many types of PHP web applications. | ||
|
||
See: https://hub.docker.com/r/shinsenter/php | ||
|
||
## Supported platforms | ||
|
||
Currently, the supported architectures are: | ||
|
||
- linux/amd64 | ||
- linux/arm/v7 | ||
- linux/arm64 | ||
- linux/ppc64le | ||
|
||
You do not need to use a platform-specific tag (although you can), Docker will automatically choose the appropriate architecture. |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# shinsenter/php | ||
|
||
🧭 Production-ready Docker images for PHP, support PHP CLI and many types of PHP web applications. | ||
|
||
See: https://hub.docker.com/r/shinsenter/php | ||
|
||
## Supported platforms | ||
|
||
Currently, the supported architectures are: | ||
|
||
- linux/amd64 | ||
- linux/arm/v7 | ||
- linux/arm64 | ||
- linux/ppc64le | ||
|
||
You do not need to use a platform-specific tag (although you can), Docker will automatically choose the appropriate architecture. |
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
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
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
Oops, something went wrong.