File tree 5 files changed +91
-25
lines changed
5 files changed +91
-25
lines changed Original file line number Diff line number Diff line change
1
+ # flyctl launch added from .gitignore
2
+ ** /target
3
+ ** /* .class
4
+ ** /* .iml
5
+ ** /* .ipr
6
+ ** /.idea
7
+ ** /.classpath
8
+ ** /.settings
9
+ ** /.project
10
+ ** /.DS_Store
11
+ ** /notes
12
+
13
+ # flyctl launch added from .idea/.gitignore
14
+ # Default ignored files
15
+ .idea /shelf
16
+ .idea /workspace.xml
Original file line number Diff line number Diff line change
1
+ #
2
+ # Build stage
3
+ #
4
+ FROM maven:3.6.0-jdk-11-slim AS build
5
+ COPY src /home/app/src
6
+ COPY pom.xml /home/app
7
+ RUN mvn -f /home/app/pom.xml clean package
8
+
9
+ #
10
+ # Package stage
11
+ #
12
+ FROM openjdk:11-jre-slim
13
+ COPY --from=build /home/app/target/SkeletonWebApp-1.0-SNAPSHOT.jar /usr/local/lib/WebApp.jar
14
+ EXPOSE 8080
15
+ ENTRYPOINT ["java" , "-jar" , "/usr/local/lib/WebApp.jar" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # fly.toml file generated for cold-shape-5388 on 2022-11-25T13:50:10Z
2
+
3
+ app = " cold-shape-5388"
4
+ kill_signal = " SIGINT"
5
+ kill_timeout = 5
6
+ processes = []
7
+
8
+ [env ]
9
+
10
+ [experimental ]
11
+ allowed_public_ports = []
12
+ auto_rollback = true
13
+
14
+ [[services ]]
15
+ http_checks = []
16
+ internal_port = 8080
17
+ processes = [" app" ]
18
+ protocol = " tcp"
19
+ script_checks = []
20
+ [services .concurrency ]
21
+ hard_limit = 25
22
+ soft_limit = 20
23
+ type = " connections"
24
+
25
+ [[services .ports ]]
26
+ force_https = true
27
+ handlers = [" http" ]
28
+ port = 80
29
+
30
+ [[services .ports ]]
31
+ handlers = [" tls" , " http" ]
32
+ port = 443
33
+
34
+ [[services .tcp_checks ]]
35
+ grace_period = " 1s"
36
+ interval = " 15s"
37
+ restart_limit = 0
38
+ timeout = " 2s"
Original file line number Diff line number Diff line change 35
35
<target >1.8</target >
36
36
</configuration >
37
37
</plugin >
38
- <plugin >
39
- <groupId >org.codehaus.mojo</groupId >
40
- <artifactId >appassembler-maven-plugin</artifactId >
41
- <version >1.1.1</version >
42
- <configuration >
43
- <assembleDirectory >target</assembleDirectory >
44
- <programs >
45
- <program >
46
- <mainClass >com.develogical.WebServer</mainClass >
47
- <name >skeletonwebapp</name >
48
- </program >
49
- </programs >
50
- </configuration >
51
- <executions >
52
- <execution >
53
- <phase >package</phase >
54
- <goals >
55
- <goal >assemble</goal >
56
- </goals >
57
- </execution >
58
- </executions >
59
- </plugin >
60
- </plugins >
38
+ <plugin >
39
+ <groupId >org.apache.maven.plugins</groupId >
40
+ <artifactId >maven-shade-plugin</artifactId >
41
+ <version >3.4.1</version >
42
+ <executions >
43
+ <execution >
44
+ <phase >package</phase >
45
+ <goals >
46
+ <goal >shade</goal >
47
+ </goals >
48
+ <configuration >
49
+ <transformers >
50
+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
51
+ <mainClass >com.develogical.WebServer</mainClass >
52
+ </transformer >
53
+ </transformers >
54
+ </configuration >
55
+ </execution >
56
+ </executions >
57
+ </plugin >
58
+ </plugins >
61
59
</build >
62
- </project >
60
+ </project >
You can’t perform that action at this time.
0 commit comments