Skip to content
Merged
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
8 changes: 0 additions & 8 deletions .mvn/maven.config

This file was deleted.

3 changes: 0 additions & 3 deletions .mvn/wrapper/maven-wrapper.properties

This file was deleted.

4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG MYSQL_VERSION

ARG JMX_PROMETHEUS_VERSION=0.12.0

RUN apk add --no-cache \
RUN apk add -q --no-cache \
bash \
ca-certificates \
maven \
Expand Down Expand Up @@ -55,7 +55,7 @@ EXPOSE 8080 8000 9404

# Downgrading wait-for-it is necessary until this PR is merged
# https://github.com/vishnubob/wait-for-it/pull/68
RUN apk add --no-cache \
RUN apk add -q --no-cache \
bash \
ca-certificates \
curl \
Expand Down
15 changes: 7 additions & 8 deletions download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ if [ -z "$DISTRO" ]; then
exit 1
fi

echo "Setting up Maven Wrapper"
mvn -N wrapper:wrapper -Dmaven=3.9.11
export MAVEN_ARGS="-B -ntp --show-version"

echo "Downloading Operaton ${VERSION} for ${DISTRO}"

Expand All @@ -32,11 +31,11 @@ if [ "${SNAPSHOT}" = "true" ]; then
ARTIFACT_BASE_URL="https://github.com/operaton/operaton/releases/download/early-access/"

# get the database settings file from the main repo since snapshots are not published
wget https://raw.githubusercontent.com/operaton/operaton/refs/heads/main/database/pom.xml -O dbpom.xml
wget -q https://raw.githubusercontent.com/operaton/operaton/refs/heads/main/database/pom.xml -O dbpom.xml
db_settings_pom_file=dbpom.xml
else
# extract the database settings file from the main artifact
./mvnw dependency:get -U -B --global-settings /tmp/settings.xml \
mvn dependency:get -U -B --global-settings /tmp/settings.xml \
-DgroupId="org.operaton.bpm" -DartifactId="operaton-database-settings" \
-Dversion="${ARTIFACT_VERSION}" -Dpackaging="pom" -Dtransitive=false

Expand All @@ -52,7 +51,7 @@ esac
distro_file_name="${ARTIFACT}-${ARTIFACT_VERSION}.tar.gz"
distro_file_url="${ARTIFACT_BASE_URL}${ARTIFACT}-${ARTIFACT_VERSION}.tar.gz"

wget "$distro_file_url"
wget -q "$distro_file_url"

# Unpack distro to /operaton directory
mkdir -p /operaton
Expand All @@ -73,10 +72,10 @@ if [ -z "$POSTGRESQL_VERSION" ]; then
POSTGRESQL_VERSION=$(xmlstarlet sel -t -v //_:version.postgresql "$db_settings_pom_file")
fi

./mvnw dependency:copy -B \
mvn dependency:copy -B \
-Dartifact="com.mysql:mysql-connector-j:${MYSQL_VERSION}:jar" \
-DoutputDirectory=/tmp/
./mvnw dependency:copy -B \
mvn dependency:copy -B \
-Dartifact="org.postgresql:postgresql:${POSTGRESQL_VERSION}:jar" \
-DoutputDirectory=/tmp/

Expand Down Expand Up @@ -124,7 +123,7 @@ EOF
esac

# download Prometheus JMX Exporter.
./mvnw dependency:copy -B \
mvn dependency:copy -B \
-Dartifact="io.prometheus.jmx:jmx_prometheus_javaagent:${JMX_PROMETHEUS_VERSION}:jar" \
-DoutputDirectory=/tmp/

Expand Down
295 changes: 0 additions & 295 deletions mvnw

This file was deleted.

Loading