-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0611bfa
commit 758cf20
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# To build this stack: | ||
# docker build -t quay.io/openshiftlabs/mad-coolstore-devspaces:1.0 . --platform linux/x86_64 | ||
# docker push quay.io/openshiftlabs/mad-coolstore-devspaces:1.0 | ||
# macOS M1: --platform linux/x86_64 | ||
|
||
FROM registry.redhat.io/devspaces/udi-rhel8:3.12 | ||
|
||
ENV MANDREL_VERSION=23.1.2.0-Final | ||
ENV MVN_VERSION=3.9.6 | ||
ENV GRAALVM_HOME="/usr/local/mandrel-java21-${MANDREL_VERSION}" | ||
ENV PATH="/usr/local/maven/apache-maven-${MVN_VERSION}/bin:${PATH}" | ||
ENV JAVA_HOME="/etc/alternatives/jre_21_openjdk" | ||
|
||
USER root | ||
|
||
RUN wget -O /tmp/mvn.tar.gz https://archive.apache.org/dist/maven/maven-3/${MVN_VERSION}/binaries/apache-maven-${MVN_VERSION}-bin.tar.gz && sudo tar -xvzf /tmp/mvn.tar.gz && rm -rf /tmp/mvn.tar.gz && mkdir /usr/local/maven && mv apache-maven-${MVN_VERSION}/ /usr/local/maven/ && alternatives --install /usr/bin/mvn mvn /usr/local/maven/apache-maven-${MVN_VERSION}/bin/mvn 1 | ||
|
||
RUN sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && sudo microdnf install -y zlib-devel gcc siege gcc-c++ && sudo curl -Lo /usr/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && sudo chmod a+x /usr/bin/jq | ||
|
||
RUN wget -O /tmp/mandrel.tar.gz https://github.com/graalvm/mandrel/releases/download/mandrel-${MANDREL_VERSION}/mandrel-java21-linux-amd64-${MANDREL_VERSION}.tar.gz && cd /usr/local && sudo tar -xvzf /tmp/mandrel.tar.gz && rm -rf /tmp/mandrel.tar.gz | ||
|
||
RUN ln -f -s /usr/lib/jvm/java21-openjdk/* ${HOME}/.java/current | ||
|
||
USER user |