-
Notifications
You must be signed in to change notification settings - Fork 404
delete source/downloads after building in script, not in dockerfile #2000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
ae8c00d
d936f36
7c3c92f
881e6e1
5f74d47
36e4637
2b15b10
6aa8a31
74f43d9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| root = true | ||
|
|
||
| [*] | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
|
|
||
| [*.sh] | ||
| indent_style = tab | ||
| tab_width = 4 | ||
|
|
||
| [*.Dockerfile] | ||
| indent_style = tab | ||
| tab_width = 4 |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -32,7 +32,7 @@ RUN apk add --no-cache \ | |||||
| zlib-dev \ | ||||||
| bison \ | ||||||
| nss-tools \ | ||||||
| # file watcher | ||||||
| # file watcher \ | ||||||
| libstdc++ \ | ||||||
| linux-headers \ | ||||||
| # Dev tools \ | ||||||
|
|
@@ -49,7 +49,6 @@ RUN apk add --no-cache \ | |||||
|
|
||||||
| WORKDIR /usr/local/src/php | ||||||
| RUN git clone --branch=PHP-8.4 https://github.com/php/php-src.git . && \ | ||||||
| # --enable-embed is only necessary to generate libphp.so, we don't use this SAPI directly | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why removing this comment?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because we use libphp.so embed SAPI directly and therefore directly rely on --enable-embed.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment is still relevant. We don't use the embed SAPI, but we need to use this flag to build because it builds libphp as a side effect
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| ./buildconf --force && \ | ||||||
| EXTENSION_DIR=/usr/lib/frankenphp/modules ./configure \ | ||||||
| --enable-embed \ | ||||||
|
|
@@ -71,7 +70,7 @@ RUN git clone --branch=PHP-8.4 https://github.com/php/php-src.git . && \ | |||||
| # Install e-dant/watcher (necessary for file watching) | ||||||
| WORKDIR /usr/local/src/watcher | ||||||
| RUN git clone https://github.com/e-dant/watcher . && \ | ||||||
| cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && \ | ||||||
| cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && \ | ||||||
| cmake --build build/ && \ | ||||||
| cmake --install build | ||||||
|
|
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,15 +142,15 @@ RUN if [ -n "${BUILD_PACKAGES}" ]; then \ | |
| rpm-build \ | ||
| sudo \ | ||
| zlib-devel && \ | ||
| curl -o ruby.tar.gz -fsSL https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.4.tar.gz && \ | ||
| tar -xzf ruby.tar.gz && \ | ||
| cd ruby-* && \ | ||
| ./configure --without-baseruby && \ | ||
| make && \ | ||
| make install && \ | ||
| cd .. && \ | ||
| rm -rf ruby* && \ | ||
| gem install fpm; \ | ||
| curl -o ruby.tar.gz -fsSL https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.4.tar.gz && \ | ||
| tar -xzf ruby.tar.gz && \ | ||
| cd ruby-* && \ | ||
| ./configure --without-baseruby && \ | ||
| make && \ | ||
| make install && \ | ||
| cd .. && \ | ||
| rm -rf ruby* && \ | ||
| gem install fpm; \ | ||
| fi | ||
|
|
||
| WORKDIR /go/src/app | ||
|
|
@@ -167,9 +167,4 @@ COPY --link caddy caddy | |
| COPY --link internal internal | ||
| COPY --link package package | ||
|
|
||
| RUN --mount=type=secret,id=github-token \ | ||
| GITHUB_TOKEN=$(cat /run/secrets/github-token) ./build-static.sh && \ | ||
| if [ -n "${BUILD_PACKAGES}" ]; then \ | ||
| ./build-packages.sh; \ | ||
| fi; \ | ||
|
Comment on lines
-171
to
-174
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. getting rid of this entirely all together in another PR |
||
| rm -Rf dist/static-php-cli/source/* | ||
| RUN --mount=type=secret,id=github-token GITHUB_TOKEN=$(cat /run/secrets/github-token) ./build-static.sh | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,16 @@ | ||
| <?php | ||
| ignore_user_abort(true); | ||
| require_once __DIR__.'/_executor.php'; | ||
| return function () { | ||
| if($_GET['finish'] ?? false) { | ||
| frankenphp_finish_request(); | ||
| } | ||
| echo 'hi'; | ||
| flush(); | ||
| $status = (string) connection_status(); | ||
| error_log("request {$_GET['i']}: " . $status); | ||
| }; | ||
| <?php | ||
|
|
||
| ignore_user_abort(true); | ||
|
|
||
| require_once __DIR__.'/_executor.php'; | ||
|
|
||
| return function () { | ||
| if($_GET['finish'] ?? false) { | ||
| frankenphp_finish_request(); | ||
| } | ||
|
|
||
| echo 'hi'; | ||
| flush(); | ||
| $status = (string) connection_status(); | ||
| error_log("request {$_GET['i']}: " . $status); | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| Hello | ||
| Hello |
Uh oh!
There was an error while loading. Please reload this page.