-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build PHP for Multiple Stacks fix #50
Build PHP version in Docker containers using our Stack images instead of inside Vagrant VMs that have to be maintained to match the Stack run-time environment seperately. Additionally the `Makefile` and `$STACK/Dockerfile`s allow to build each PHP version for each Stack and can also be extended easily for future Stacks.
- Loading branch information
Showing
9 changed files
with
80 additions
and
73 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,3 +1 @@ | ||
.vagrant/ | ||
build/buildpack-php/* | ||
build/.vagrant/ | ||
build/dist/* |
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 @@ | ||
all: pinky trinity | ||
|
||
pinky-prepare: | ||
docker build -t pinkyphpbuild:latest Pinky | ||
|
||
pinky-build: | ||
docker run -e "STACK=pinky" -v $(shell pwd):/vagrant -ti pinkyphpbuild:latest /vagrant/php-build.sh $(version) | ||
|
||
pinky: pinky-prepare pinky-build | ||
|
||
trinity-prepare: | ||
docker build -t trinityphpbuild:latest Trinity | ||
|
||
trinity-build: | ||
docker run -e "STACK=trinity" -v $(shell pwd):/vagrant -ti trinityphpbuild:latest /vagrant/php-build.sh $(version) | ||
|
||
trinity: trinity-prepare trinity-build | ||
|
||
clean: | ||
rm -rf dist/* |
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,19 @@ | ||
FROM localhost:5000/cloudcontrol/ccpinky | ||
|
||
MAINTAINER cloudControl | ||
|
||
# Install packages required to build PHP that are not in the runtime stack | ||
RUN apt-get update && apt-get install -y \ | ||
autoconf \ | ||
freetds-dev \ | ||
libbison-dev \ | ||
libicu-dev \ | ||
libmcrypt-dev \ | ||
libreadline-dev \ | ||
re2c | ||
|
||
# Set symlinks for libsybdb so the PHP build can find it | ||
RUN ln -f -s /usr/lib/x86_64-linux-gnu/libsybdb.a /usr/lib/libsybdb.a \ | ||
&& ln -f -s /usr/lib/x86_64-linux-gnu/libsybdb.so /usr/lib/libsybdb.so | ||
|
||
CMD ["/bin/bash"] |
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 @@ | ||
FROM localhost:5000/cloudcontrol/trinity | ||
|
||
MAINTAINER cloudControl | ||
|
||
# Install packages required to build PHP that are not in the runtime stack | ||
RUN apt-get update && apt-get install -y \ | ||
autoconf \ | ||
freetds-dev \ | ||
libbison-dev \ | ||
re2c | ||
|
||
# Set symlinks for libsybdb so the PHP build can find it | ||
RUN ln -f -s /usr/lib/x86_64-linux-gnu/libsybdb.a /usr/lib/libsybdb.a \ | ||
&& ln -f -s /usr/lib/x86_64-linux-gnu/libsybdb.so /usr/lib/libsybdb.so | ||
|
||
CMD ["/bin/bash"] |
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
This file was deleted.
Oops, something went wrong.