File tree Expand file tree Collapse file tree
src/main/java/com/napier/sem Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM openjdk:latest
22COPY ./target/devops-0.1.0.1-jar-with-dependencies.jar /tmp
33WORKDIR /tmp
4-
54ENTRYPOINT ["java" , "-jar" , "devops-0.1.0.1-jar-with-dependencies.jar" ]
Original file line number Diff line number Diff line change 1717 </dependencies >
1818
1919 <properties >
20- <maven .compiler.source>10 </maven .compiler.source>
21- <maven .compiler.target>10 </maven .compiler.target>
20+ <maven .compiler.source>17 </maven .compiler.source>
21+ <maven .compiler.target>17 </maven .compiler.target>
2222 </properties >
2323
2424 <build >
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public class Main
1111 public static void main (String [] args )
1212 {
1313 // Connect to MongoDB on local system - we're using port 27000
14- try (MongoClient mongoClient = new MongoClient ("mongo-dbserver " )){
14+ try (MongoClient mongoClient = new MongoClient ("mongo" )){
1515 // Get a database - will create when we use it
1616 MongoDatabase database = mongoClient .getDatabase ("mydb" );
1717 // Get a collection from the database
You can’t perform that action at this time.
0 commit comments