add servicemix container build

This commit is contained in:
Thomas Peetz
2025-06-17 23:35:35 +02:00
committed by Thomas Peetz
parent 23a48d2472
commit 26f8b992af
2 changed files with 25 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM openjdk:8-jdk-alpine
#ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
ENV SERVICEMIX_VERSION_MAJOR=7
ENV SERVICEMIX_VERSION_MINOR=0
ENV SERVICEMIX_VERSION_PATCH=1
ENV SERVICEMIX_VERSION=${SERVICEMIX_VERSION_MAJOR}.${SERVICEMIX_VERSION_MINOR}.${SERVICEMIX_VERSION_PATCH}
RUN wget http://dlcdn.apache.org/servicemix/servicemix-${SERVICEMIX_VERSION_MAJOR}/${SERVICEMIX_VERSION}/apache-servicemix-${SERVICEMIX_VERSION}.zip; \
unzip -d /opt apache-servicemix-${SERVICEMIX_VERSION}.zip; \
rm -f apache-servicemix-${SERVICEMIX_VERSION}.zip; \
ln -s /opt/apache-servicemix-${SERVICEMIX_VERSION} /opt/servicemix; \
mkdir /deploy; \
sed -i 's/^\(felix\.fileinstall\.dir\s*=\s*\).*$/\1\/deploy/' /opt/servicemix/etc/org.apache.felix.fileinstall-deploy.cfg; \
sed -i 's/http:\/\//https:\/\//' /opt/servicemix/etc/org.ops4j.pax.url.mvn.cfg
VOLUME ["/deploy"]
EXPOSE 1099 8101 8181 61616 44444
ENTRYPOINT ["/opt/servicemix/bin/servicemix"]
+5
View File
@@ -0,0 +1,5 @@
.PHONY: clean docker
docker:
docker build -t kontor-servicemix:0.2.0-SNAPSHOT .