-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sources in version 5.38 to use proper Perl version
- Loading branch information
Showing
9 changed files
with
80 additions
and
20 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM ubi9/perl-538 | ||
|
||
# Add application sources | ||
ADD app-src . | ||
|
||
# Set the paths to local Perl modules | ||
ENV PATH=/opt/app-root/src/extlib/bin:${PATH} | ||
ENV PERL5LIB=/opt/app-root/src/extlib/lib/perl5 | ||
|
||
# Install the dependencies | ||
RUN cpanm --notest -l extlib Module::CoreList && \ | ||
cpanm --notest -l extlib --installdeps . | ||
|
||
# Install Plack as an FCGI server | ||
RUN cpanm --notest -l extlib Plack::Handler::FCGI FCGI::ProcManager | ||
RUN patch --read-only=ignore -d ./extlib/lib/perl5 -p2 < /opt/app-root/Plack-1.0047-Work-around-mod_fcgid-bogus-SCRIPT_NAME-PATH_INFO.patch | ||
RUN printf '\ | ||
FcgidInitialEnv MODFCGID_VIRTUAL_LOCATION /\n\ | ||
PassEnv HOME\n\ | ||
FcgidInitialEnv "HOME" "%s"\n\ | ||
PassEnv PATH\n\ | ||
FcgidInitialEnv "PATH" "%s"\n\ | ||
PassEnv PERL5LIB\n\ | ||
FcgidInitialEnv "PERL5LIB" "%s"\n\ | ||
<Location />\n\ | ||
SetHandler fcgid-script\n\ | ||
Options +ExecCGI\n\ | ||
FcgidWrapper "/opt/app-root/psgiwrapper /usr/bin/env plackup -s FCGI ./app.psgi" virtual\n\ | ||
</Location>\n' "$HOME" "$PATH" "$PERL5LIB"> /opt/app-root/etc/httpd.d/40-psgi.conf | ||
|
||
# Run scripts uses standard ways to run the application | ||
CMD exec httpd -C 'Include /opt/app-root/etc/httpd.conf' -D FOREGROUND |
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,14 @@ | ||
FROM ubi9/perl-538 | ||
|
||
# Add application sources to a directory that the assemble script expects them | ||
# and set permissions so that the container runs without root access | ||
USER 0 | ||
ADD app-src /tmp/src | ||
RUN chown -R 1001:0 /tmp/src | ||
USER 1001 | ||
|
||
# Install the dependencies | ||
RUN /usr/libexec/s2i/assemble | ||
|
||
# Set the default command for the resulting image | ||
CMD /usr/libexec/s2i/run |
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