Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
java-spring-oidc-example
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
demo
java-spring-oidc-example
Commits
44608cd1
Commit
44608cd1
authored
Sep 18, 2019
by
陈健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将应用打成war包
parent
0f3d5e6b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
Dockerfile
Dockerfile
+1
-1
Jenkinsfile
jenkins/Jenkinsfile
+1
-0
pom.xml
pom.xml
+7
-0
No files found.
Dockerfile
View file @
44608cd1
...
...
@@ -4,6 +4,6 @@ ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
JHIPSTER_SLEEP=0
# add directly the war
ADD
*.war /usr/local/tomcat/webapps/ROOT.war
ADD
target/
*.war /usr/local/tomcat/webapps/ROOT.war
CMD
echo "The application will start in ${JHIPSTER_SLEEP}s..." && \
/usr/local/tomcat/bin/startup.sh && tail -f /usr/local/tomcat/logs/catalina.out
jenkins/Jenkinsfile
View file @
44608cd1
...
...
@@ -67,6 +67,7 @@ podTemplate(label: pod_label, cloud: 'kubernetes', containers: [
// 生成静态链接所有的库
sh
'mvn package -e -U -Dmaven.test.skip=true'
//sh 'make release-binary'
sh
'ls -al'
}
}
...
...
pom.xml
View file @
44608cd1
...
...
@@ -94,6 +94,13 @@
<target>
1.8
</target>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<configuration>
<warSourceDirectory>
src/main/resources/
</warSourceDirectory>
</configuration>
</plugin>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment