Skip to content

Commit 0d73c41

Browse files
Updating the system with a network bridge
1 parent 0dd7f64 commit 0d73c41

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM openjdk:latest
22
COPY ./target/devops-0.1.0.1-jar-with-dependencies.jar /tmp
33
WORKDIR /tmp
4-
54
ENTRYPOINT ["java", "-jar", "devops-0.1.0.1-jar-with-dependencies.jar"]

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
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>

src/main/java/com/napier/sem/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)