-
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.
Merge pull request #32 from openbridge/master
rebase
- Loading branch information
Showing
7 changed files
with
76 additions
and
16 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM alpine:3.11 | ||
MAINTAINER Thomas Spicer ([email protected]) | ||
ARG ALPINE_VERSION=3.11 | ||
FROM alpine:${ALPINE_VERSION} | ||
LABEL maintainer="Thomas Spicer ([email protected])" | ||
ARG ALPINE_VERSION | ||
|
||
ENV VAR_PREFIX=/var/run | ||
ENV LOG_PREFIX=/var/log/php-fpm | ||
|
@@ -14,7 +16,7 @@ RUN set -x \ | |
linux-headers \ | ||
curl \ | ||
unzip \ | ||
&& echo '@community http://dl-cdn.alpinelinux.org/alpine/v3.11/community' >> /etc/apk/repositories \ | ||
&& echo "@community http://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community" >> /etc/apk/repositories \ | ||
&& apk add --no-cache --update \ | ||
php7@community \ | ||
php7-dev@community \ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
# language setting | ||
language: none | ||
|
||
env: | ||
- PHP_VERSION=7.3 TAG=7.3 | ||
- PHP_VERSION=7.4 TAG=7.4 | ||
- PHP_VERSION=7.4 TAG=latest | ||
|
||
pre_ci: | ||
- docker build -t $SHIPPABLE_CONTAINER_NAME:latest | ||
- | | ||
if [ "$PHP_VERSION" == "7.4" ]; then | ||
docker build --build-arg ALPINE_VERSION=3.13 -t $SHIPPABLE_CONTAINER_NAME:$TAG | ||
else | ||
docker build -t $SHIPPABLE_CONTAINER_NAME:$TAG | ||
fi | ||
build: | ||
post_ci: | ||
- sudo pip install -U docker-compose awscli | ||
- docker commit $SHIPPABLE_CONTAINER_NAME | ||
post_ci: | ||
- sudo pip install -U docker-compose awscli | ||
- docker commit $SHIPPABLE_CONTAINER_NAME |