File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ language : java
2+ jdk :
3+ - openjdk8
4+ script :
5+ - mvn package docker:build
Original file line number Diff line number Diff line change 1818 <properties >
1919 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
2020 <java .version>1.8</java .version>
21+ <docker .image.prefix>codeurjc</docker .image.prefix>
2122 </properties >
22-
23+
2324 <name >spring-cloud-aws-sample</name >
2425 <description >Sample project demonstrating using S3 and RDS with Spring Cloud AWS</description >
2526
7879 <groupId >org.springframework.boot</groupId >
7980 <artifactId >spring-boot-maven-plugin</artifactId >
8081 </plugin >
82+ <plugin >
83+ <groupId >com.spotify</groupId >
84+ <artifactId >docker-maven-plugin</artifactId >
85+ <version >0.4.11</version >
86+ <configuration >
87+ <imageName >${docker.image.prefix} /${project.artifactId} </imageName >
88+ <dockerDirectory >src/main/docker</dockerDirectory >
89+ <resources >
90+ <resource >
91+ <targetPath >/</targetPath >
92+ <directory >${project.build.directory} </directory >
93+ <include >${project.build.finalName} .jar</include >
94+ </resource >
95+ </resources >
96+ </configuration >
97+ </plugin >
8198 </plugins >
8299 </build >
83100
Original file line number Diff line number Diff line change 1+ FROM openjdk:8u111-jre-alpine
2+ VOLUME /tmp
3+ ADD spring-cloud-aws-sample-0.0.1-SNAPSHOT.jar app.jar
4+ RUN sh -c 'touch /app.jar'
5+ ENV JAVA_OPTS=""
6+ ENTRYPOINT [ "sh" , "-c" , "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]
You can’t perform that action at this time.
0 commit comments