File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed
Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 11ARG HTTPD_SOURCES="https://dlcdn.apache.org/httpd/httpd-2.4.62.tar.gz"
2+ ARG CFLAGS=""
3+ ARG LFLAGS=""
4+ ARG HTTPD_DEFAULT_FLAGS="--enable-proxy --enable-proxy-http --enable-proxy-ajp --enable-proxy-wstunnel --enable-proxy-hcheck --with-port=8000"
5+ ARG HTTPD_EXTRA_FLAGS=""
26
37FROM fedora:40
48
5- RUN yum install gcc wget apr-devel apr-util-devel openssl-devel pcre-devel redhat-rpm-config wcstools git autoconf -y
9+ RUN yum install gcc wget apr-devel apr-util-devel openssl-devel pcre-devel redhat-rpm-config wcstools git autoconf gcovr -y
610
711ARG HTTPD_SOURCES
12+ ARG CFLAGS
13+ ARG LFLAGS
14+ ARG HTTPD_DEFAULT_FLAGS
15+ ARG HTTPD_EXTRA_FLAGS
816
917ENV CONF=httpd/mod_proxy_cluster.conf
1018ENV HTTPD=${HTTPD_SOURCES}
19+ ENV CFLAGS="${CFLAGS}"
20+ ENV LDFLAGS="${LDFLAGS}"
21+ ENV HTTPD_FLAGS="${HTTPD_DEFAULT_FLAGS} ${HTTPD_EXTRA_FLAGS}"
1122
1223# make sure you have copy of the local repository at place
1324# (our function "httpd_create" takes care of that)
@@ -19,12 +30,7 @@ RUN mkdir httpd
1930RUN tar xvf $(filename $HTTPD) --strip 1 -C httpd
2031RUN ls
2132WORKDIR /httpd
22- RUN ./configure --enable-proxy \
23- --enable-proxy-http \
24- --enable-proxy-ajp \
25- --enable-proxy-wstunnel \
26- --enable-proxy-hcheck \
27- --with-port=8000
33+ RUN ./configure ${HTTPD_FLAGS}
2834RUN make
2935RUN make install
3036
@@ -39,7 +45,7 @@ RUN for m in advertise mod_proxy_cluster balancers mod_manager; \
3945 ./configure --with-apxs=/usr/local/apache2/bin/apxs; \
4046 make clean; \
4147 make || exit 1; \
42- cp *.so / usr/local/apache2/modules; \
48+ for f in *.so; do ln -s "$PWD/$f" / usr/local/apache2/modules/$f; done ; \
4349 cd $OLDPWD; \
4450 done;
4551
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- pwd
4- ls -lt
5-
63# wget and copy the prepared conf file and include it
74cd /test/
85if [ -f $CONF ]; then
You can’t perform that action at this time.
0 commit comments