File tree Expand file tree Collapse file tree 3 files changed +22
-14
lines changed Expand file tree Collapse file tree 3 files changed +22
-14
lines changed Original file line number Diff line number Diff line change 1
- FROM fedora:41
1
+ FROM fedora:41 AS builder
2
2
3
3
ARG HTTPD_SOURCES="https://dlcdn.apache.org/httpd/httpd-2.4.63.tar.gz"
4
4
5
- RUN yum install gcc wget apr-devel apr-util-devel openssl-devel pcre-devel redhat-rpm-config wcstools git autoconf -y
5
+ RUN dnf install gcc apr-devel apr-util-devel openssl-devel pcre-devel redhat-rpm-config autoconf wcstools -y
6
6
7
7
ENV CONF=httpd/mod_proxy_cluster.conf
8
8
ENV HTTPD=${HTTPD_SOURCES}
9
9
10
10
# make sure you have copy of the local repository at place
11
11
# (our function "httpd_create" takes care of that)
12
- ADD mod_proxy_cluster /
13
- ADD run.sh /tmp
12
+ COPY mod_proxy_cluster /
13
+
14
+ ADD ${HTTPD} .
15
+
16
+ RUN mkdir /httpd && tar xvf $(filename $HTTPD) --strip 1 -C /httpd
14
17
15
- RUN wget $HTTPD
16
- RUN mkdir httpd
17
- RUN tar xvf $(filename $HTTPD) --strip 1 -C httpd
18
- RUN ls
19
18
WORKDIR /httpd
19
+
20
20
RUN ./configure --enable-proxy \
21
21
--enable-proxy-http \
22
22
--enable-proxy-ajp \
@@ -41,6 +41,18 @@ RUN for m in advertise mod_proxy_cluster balancers mod_manager; \
41
41
cd $OLDPWD; \
42
42
done;
43
43
44
+ RUN rm -rf /test/httpd/mod_proxy_cluster
45
+
46
+ FROM fedora:41
47
+
48
+ RUN dnf install pcre apr-util wcstools -y
49
+
50
+ COPY --from=builder /usr/local/apache2 /usr/local/apache2
51
+
52
+ COPY --from=builder /test /test
53
+
54
+ COPY run.sh /tmp
55
+
44
56
WORKDIR /usr/local/apache2
45
57
46
58
CMD /tmp/run.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- pwd
4
- ls -lt
5
-
6
- # wget and copy the prepared conf file and include it
3
+ # copy the prepared conf file and include it
7
4
cd /test/
8
5
if [ -f $CONF ]; then
9
6
FILECONF=$( filename $CONF )
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ COPY target/*.jar ./lib/
14
14
15
15
COPY $TESTSUITE_TOMCAT_CONFIG ./conf/server.xml
16
16
COPY $TESTSUITE_TOMCAT_CONTEXT ./conf/context.xml
17
- COPY start.sh ./
18
- RUN chmod +x start.sh
17
+ COPY --chmod=755 start.sh ./
19
18
20
19
ENV cluster_port=6666
21
20
ENV cluster_address=127.0.0.1
You can’t perform that action at this time.
0 commit comments