Skip to content

Commit 3d64641

Browse files
committed
Java test project
1 parent 8dd6128 commit 3d64641

File tree

11 files changed

+521
-0
lines changed

11 files changed

+521
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
wrapperVersion=3.3.2
18+
distributionType=only-script
19+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM eclipse-temurin:11-jdk-jammy as builder
2+
WORKDIR /opt/app
3+
COPY .mvn/ .mvn
4+
COPY mvnw pom.xml ./
5+
RUN ./mvnw dependency:go-offline
6+
COPY ./src ./src
7+
RUN ./mvnw clean install
8+
9+
FROM eclipse-temurin:11-jre-jammy
10+
WORKDIR /opt/app
11+
EXPOSE 2020
12+
COPY --from=builder /opt/app/target/*.jar /opt/app/*.jar
13+
RUN rm -f /etc/localtime
14+
RUN ln -s /usr/share/zoneinfo/Africa/Lagos /etc/localtime
15+
ENTRYPOINT ["java", "-XX:+UseSerialGC", "-Xms256m", "-Xmx256m", "-jar", "/opt/app/*.jar"]

mvnw

Lines changed: 259 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)