Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ include the following:

- **[Pi4J v2.0 Builder](https://hub.docker.com/repository/docker/pi4j/pi4j-builder:2.0)** `pi4j/pi4j-builder:2.0` :
This image is derived from `pi4j/pi4j-builder-native` and additionally includes pre-cached Maven
build plugins and dependencies for [Pi4J v2.0](http://github.com/Pi4J/pi4j-v2) builds. This image's
build plugins and dependencies for [Pi4J v2+](http://github.com/Pi4J/pi4j) builds. This image's
entry point is a Maven shell. If not explicitly provided, the default maven build arguments will be:
`clean install -DskipTests -Pnative,cross-compile`. This will effectively build all Pi4J projects including
the native library projects which will be cross-compiled for RaspberryPi/ARM (32-bit & 64-bit) devices.
Expand Down
2 changes: 1 addition & 1 deletion pi4j-builder-2.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN echo "========================================================="
# of all Maven build plugins and dependencies. When complete we will
# simply delete the project sources from the image and leave the M2
# repository cache as part of the container image
RUN git clone --single-branch --branch main https://github.com/Pi4J/pi4j-v2 /pi4j
RUN git clone --single-branch --branch main https://github.com/Pi4J/pi4j /pi4j
RUN cd /pi4j && \
mvn dependency:go-offline -DexcludeGroupIds=com.pi4j -Pnative && \
rm -R /pi4j
Expand Down
4 changes: 2 additions & 2 deletions pi4j-builder-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ RUN $JAVA_HOME/bin/java -version
RUN java -version

# install Apache Maven
ENV MAVEN_VERSION=3.9.11
ENV MAVEN_VERSION=4.0.0-rc-5
ENV MAVEN_HOME=/opt/maven
ENV PATH=${MAVEN_HOME}/bin:${PATH}

# Install Maven
RUN apt-get install -y curl tar && \
curl -fsSL https://downloads.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz | tar -xz -C /opt && \
curl -fsSL https://downloads.apache.org/maven/maven-4/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz | tar -xz -C /opt && \
mv /opt/apache-maven-${MAVEN_VERSION} ${MAVEN_HOME} && \
rm -rf /var/lib/apt/lists/*

Expand Down