first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
FROM openjdk:8-jdk
LABEL maintainer="phith0n <root@leavesongs.com>"
ARG VERSION=17.12.01
RUN set -ex \
&& cd /usr/src \
&& wget http://archive.apache.org/dist/ofbiz/apache-ofbiz-${VERSION}.zip \
&& unzip apache-ofbiz-${VERSION}.zip \
&& mv apache-ofbiz-${VERSION} apache-ofbiz \
&& rm -rf /usr/src/apache-ofbiz-${VERSION}.zip
RUN set -ex \
&& cd /usr/src/apache-ofbiz \
&& sed -i 's/at\.bxm\.gradleplugins:gradle-svntools-plugin:latest\.release/at.bxm.gradleplugins:gradle-svntools-plugin:2.2.1/g' build.gradle \
&& ./gradle/init-gradle-wrapper.sh \
&& sed -i 's|distributions-snapshots/gradle-3.2.1-20161121174103+0000|distributions/gradle-3.2.1|i' ./gradle/wrapper/gradle-wrapper.properties \
# && ./gradlew "ofbiz --load-data readers=seed,seed-initial,ext"
&& ./gradlew loadAll
WORKDIR /usr/src/apache-ofbiz
EXPOSE 8443
CMD [ "java", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005", "-jar", "./build/libs/ofbiz.jar" ]

View File

@@ -0,0 +1,22 @@
FROM openjdk:8-jdk
LABEL maintainer="phith0n <root@leavesongs.com>"
ARG VERSION=18.12.09
RUN set -ex \
&& cd /usr/src \
&& wget -q http://archive.apache.org/dist/ofbiz/apache-ofbiz-${VERSION}.zip \
&& unzip apache-ofbiz-${VERSION}.zip \
&& mv apache-ofbiz-${VERSION} apache-ofbiz \
&& rm -rf /usr/src/apache-ofbiz-${VERSION}.zip
RUN set -ex \
&& cd /usr/src/apache-ofbiz \
&& sed -i '/throw new RequestHandlerException.*not accepted to prevent host header injection/,/You need to set host-headers-allowed property in security.properties file.")/s/^/\/\/ /' framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java \
&& ./gradle/init-gradle-wrapper.sh \
&& ./gradlew loadAll
# && ./gradlew "ofbiz --load-data readers=seed,seed-initial,ext"
WORKDIR /usr/src/apache-ofbiz
EXPOSE 8443
CMD [ "java", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005", "-jar", "./build/libs/ofbiz.jar" ]

View File

@@ -0,0 +1,22 @@
FROM openjdk:8-jdk
LABEL maintainer="phith0n <root@leavesongs.com>"
ARG VERSION=18.12.10
RUN set -ex \
&& cd /usr/src \
&& wget -q http://archive.apache.org/dist/ofbiz/apache-ofbiz-${VERSION}.zip \
&& unzip apache-ofbiz-${VERSION}.zip \
&& mv apache-ofbiz-${VERSION} apache-ofbiz \
&& rm -rf /usr/src/apache-ofbiz-${VERSION}.zip
RUN set -ex \
&& cd /usr/src/apache-ofbiz \
&& sed -i '/throw new RequestHandlerException.*not accepted to prevent host header injection/,/You need to set host-headers-allowed property in security.properties file.")/s/^/\/\/ /' framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java \
&& ./gradle/init-gradle-wrapper.sh \
&& ./gradlew loadAll
# && ./gradlew "ofbiz --load-data readers=seed,seed-initial,ext"
WORKDIR /usr/src/apache-ofbiz
EXPOSE 8443
CMD [ "java", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005", "-jar", "./build/libs/ofbiz.jar" ]

View File

@@ -0,0 +1,22 @@
FROM openjdk:8-jdk
LABEL maintainer="phith0n <root@leavesongs.com>"
ARG VERSION=18.12.14
RUN set -ex \
&& cd /usr/src \
&& wget -q http://archive.apache.org/dist/ofbiz/apache-ofbiz-${VERSION}.zip \
&& unzip apache-ofbiz-${VERSION}.zip \
&& mv apache-ofbiz-${VERSION} apache-ofbiz \
&& rm -rf /usr/src/apache-ofbiz-${VERSION}.zip
RUN set -ex \
&& cd /usr/src/apache-ofbiz \
&& sed -i '/throw new RequestHandlerException.*not accepted to prevent host header injection/,/You need to set host-headers-allowed property in security.properties file.")/s/^/\/\/ /' framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java \
&& ./gradle/init-gradle-wrapper.sh \
&& ./gradlew loadAll
# && ./gradlew "ofbiz --load-data readers=seed,seed-initial,ext"
WORKDIR /usr/src/apache-ofbiz
EXPOSE 8443
CMD [ "java", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005", "-jar", "./build/libs/ofbiz.jar" ]

View File

@@ -0,0 +1,22 @@
FROM openjdk:8-jdk
LABEL maintainer="phith0n <root@leavesongs.com>"
ARG VERSION=18.12.15
RUN set -ex \
&& cd /usr/src \
&& wget -q http://archive.apache.org/dist/ofbiz/apache-ofbiz-${VERSION}.zip \
&& unzip apache-ofbiz-${VERSION}.zip \
&& mv apache-ofbiz-${VERSION} apache-ofbiz \
&& rm -rf /usr/src/apache-ofbiz-${VERSION}.zip
RUN set -ex \
&& cd /usr/src/apache-ofbiz \
&& sed -i '/throw new RequestHandlerException.*not accepted to prevent host header injection/,/You need to set host-headers-allowed property in security.properties file.")/s/^/\/\/ /' framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java \
&& ./gradle/init-gradle-wrapper.sh \
&& ./gradlew loadAll
# && ./gradlew "ofbiz --load-data readers=seed,seed-initial,ext"
WORKDIR /usr/src/apache-ofbiz
EXPOSE 8443
CMD [ "java", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005", "-jar", "./build/libs/ofbiz.jar" ]