-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A few more changes, getting dockerhub setup and building initial images
- Loading branch information
Showing
13 changed files
with
2,361 additions
and
1,668 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN mkdir compiler && \ | ||
apt-get update && \ | ||
apt-get -y install git build-essential gdb llvm-4.0-dev clang-4.0 unzip curl libcurl4-openssl-dev autoconf libssl-dev libgd-dev libzip-dev bison re2c libxml2-dev libsqlite3-dev libonig-dev vim clang | ||
|
||
RUN curl -L https://github.com/php/php-src/archive/PHP-7.4.zip -o PHP-7.4.zip && unzip PHP-7.4.zip && mv php-src-PHP-7.4 php | ||
|
||
WORKDIR php | ||
|
||
RUN ./buildconf && \ | ||
./configure --disable-cgi --with-ffi --with-openssl --enable-mbstring --with-pcre-jit --with-zlib --enable-bcmath --with-curl --with-gd --enable-pcntl --enable-zip && \ | ||
make -j16 && \ | ||
make install | ||
|
||
WORKDIR ../ | ||
|
||
RUN curl --silent --show-error https://getcomposer.org/installer | php | ||
|
||
ENV PHP="/usr/local/bin/php", PHP_7_4="/usr/local/bin/php", PHP_CS_FIXER_IGNORE_ENV="true" | ||
|
||
COPY php.ini /usr/local/lib/php.ini | ||
|
||
WORKDIR php-ast | ||
|
||
RUN git clone https://github.com/nikic/php-ast . && \ | ||
phpize && \ | ||
./configure && \ | ||
make && \ | ||
make install | ||
|
||
WORKDIR ../compiler | ||
|
||
CMD ["/bin/bash"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,34 +1,15 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN mkdir compiler && \ | ||
apt-get update && \ | ||
apt-get -y install git build-essential gdb llvm-4.0-dev clang-4.0 unzip curl libcurl4-openssl-dev autoconf libssl-dev libgd-dev libzip-dev bison re2c libxml2-dev libsqlite3-dev libonig-dev vim clang | ||
|
||
RUN curl -L https://github.com/php/php-src/archive/PHP-7.4.zip -o PHP-7.4.zip && unzip PHP-7.4.zip && mv php-src-PHP-7.4 php | ||
|
||
WORKDIR php | ||
|
||
RUN ./buildconf && \ | ||
./configure --disable-cgi --with-ffi --with-openssl --enable-mbstring --with-pcre-jit --with-zlib --enable-bcmath --with-curl --with-gd --enable-pcntl --enable-zip && \ | ||
make -j16 && \ | ||
make install | ||
FROM ircmaxell/php-compiler:16.04-dev | ||
|
||
WORKDIR ../ | ||
|
||
RUN curl --silent --show-error https://getcomposer.org/installer | php | ||
|
||
ENV PHP="/usr/local/bin/php", PHP_7_4="/usr/local/bin/php", PHP_CS_FIXER_IGNORE_ENV="true" | ||
|
||
COPY php.ini /usr/local/lib/php.ini | ||
RUN curl -L https://github.com/ircmaxell/php-compiler/archive/master.zip -o master.zip && \ | ||
unzip master.zip && \ | ||
mv php-compiler-master/* compiler/ | ||
|
||
WORKDIR php-ast | ||
WORKDIR compiler | ||
|
||
RUN git clone https://github.com/nikic/php-ast . && \ | ||
phpize && \ | ||
./configure && \ | ||
make && \ | ||
make install | ||
RUN php /composer.phar install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader | ||
|
||
WORKDIR ../compiler | ||
ENTRYPOINT ["php", "/compiler/bin/jit.php"] | ||
|
||
CMD ["/bin/bash"] | ||
CMD ["-r", "'echo \"Hello World\n\";'"] |
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.