1616# limitations under the License.
1717#
1818
19- FROM maven:3.8.4-jdk-8 as builder
20- RUN apt-get update \
21- && apt-get install git unzip tzdata \
22- && update-ca-certificates
19+ # FROM maven:3.8.4-jdk-8 as builder
20+ # RUN apt-get update \
21+ # && apt-get install git unzip tzdata \
22+ # && update-ca-certificates
2323
24- # Clone Karaf on 4.2.0 tag
25- RUN mkdir -p ~/.ssh/ && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts \
26- && git clone https://github.com/apache/karaf.git \
27- && cd karaf \
28- && git checkout tags/karaf-4.2.0 -b karaf-4.2.0-aet \
29- && git status
24+ # # Clone Karaf on 4.2.0 tag
25+ # RUN mkdir -p ~/.ssh/ && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts \
26+ # && git clone https://github.com/apache/karaf.git \
27+ # && cd karaf \
28+ # && git checkout tags/karaf-4.2.0 -b karaf-4.2.0-aet \
29+ # && git status
3030
31- WORKDIR /karaf
31+ # WORKDIR /karaf
3232
33- RUN sed -i 's/http/https/g' assemblies/features/base/pom.xml \
34- && sed -i 's/1.10.1/1.11.14/g' pom.xml
33+ # RUN sed -i 's/http/https/g' assemblies/features/base/pom.xml \
34+ # && sed -i 's/1.10.1/1.11.14/g' pom.xml
3535
36- # Build custom Karaf instance with bumped pax.logging to 1.11.14
37- RUN mvn clean install -DskipTests -Pfastinstall
36+ # # Build custom Karaf instance with bumped pax.logging to 1.11.14
37+ # RUN mvn clean install -DskipTests -Pfastinstall
3838
3939# ################################################################################
4040
@@ -52,9 +52,11 @@ ARG AET_ARTIFACT_DOWNLOAD_URL="https://github.com/wttech/aet/releases/download/$
5252RUN apk add --update bash tar jq curl tree && rm -rf /var/cache/apk/*
5353
5454# Copy custom Karaf version from builder to prevent downloading the original one
55- COPY --from=builder /root/.m2/repository/org/apache/karaf /home/karaf/.m2/repository/org/apache/karaf
55+ # COPY --from=builder /root/.m2/repository/org/apache/karaf /home/karaf/.m2/repository/org/apache/karaf
56+ COPY tmp-m2/repository/org/apache/karaf /home/karaf/.m2/repository/org/apache/karaf
5657
57- COPY --from=builder /karaf/assemblies/apache-karaf/target/apache-karaf-4.2.0.zip /tmp
58+ # COPY --from=builder /karaf/assemblies/apache-karaf/target/apache-karaf-4.2.0.zip /tmp
59+ COPY tmp-karaf/assemblies/apache-karaf/target/apache-karaf-4.2.0.zip /tmp
5860RUN mkdir -p /opt/karaf
5961RUN unzip -o /tmp/apache-karaf-4.2.0.zip -d /tmp && mv /tmp/apache-karaf-4.2.0/* /opt/karaf
6062RUN rm /tmp/apache-karaf-4.2.0.zip && rm -rf /tmp/apache-karaf-4.2.0
0 commit comments