testing jenkins docker
This commit is contained in:
26
.idea/workspace.xml
generated
26
.idea/workspace.xml
generated
@@ -22,7 +22,11 @@
|
|||||||
<select />
|
<select />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="458cde88-df3d-44bc-9d57-a33823e2f1a6" name="Default Changelist" comment="" />
|
<list default="true" id="458cde88-df3d-44bc-9d57-a33823e2f1a6" name="Default Changelist" comment="">
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/Dockerfile" beforeDir="false" afterPath="$PROJECT_DIR$/Dockerfile" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/Jenkinsfile" beforeDir="false" afterPath="$PROJECT_DIR$/Jenkinsfile" afterDir="false" />
|
||||||
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
@@ -195,13 +199,6 @@
|
|||||||
<option name="presentableId" value="Default" />
|
<option name="presentableId" value="Default" />
|
||||||
<updated>1598862102028</updated>
|
<updated>1598862102028</updated>
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00003" summary="adding processes for history search adding custom redis appender">
|
|
||||||
<created>1598962802209</created>
|
|
||||||
<option name="number" value="00003" />
|
|
||||||
<option name="presentableId" value="LOCAL-00003" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1598962802209</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00004" summary="Adding logic for events">
|
<task id="LOCAL-00004" summary="Adding logic for events">
|
||||||
<created>1599036875005</created>
|
<created>1599036875005</created>
|
||||||
<option name="number" value="00004" />
|
<option name="number" value="00004" />
|
||||||
@@ -538,7 +535,14 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1601287462400</updated>
|
<updated>1601287462400</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="52" />
|
<task id="LOCAL-00052" summary="testing jenkins docker">
|
||||||
|
<created>1601287668529</created>
|
||||||
|
<option name="number" value="00052" />
|
||||||
|
<option name="presentableId" value="LOCAL-00052" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1601287668529</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="53" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="UnknownFeatures">
|
<component name="UnknownFeatures">
|
||||||
@@ -681,13 +685,13 @@
|
|||||||
</state>
|
</state>
|
||||||
<state x="277" y="57" key="SettingsEditor/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600935670743" />
|
<state x="277" y="57" key="SettingsEditor/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600935670743" />
|
||||||
<state x="277" y="57" key="SettingsEditor/0.0.1536.824@0.0.1536.824" timestamp="1600868466042" />
|
<state x="277" y="57" key="SettingsEditor/0.0.1536.824@0.0.1536.824" timestamp="1600868466042" />
|
||||||
<state x="361" y="145" key="Vcs.Push.Dialog.v2" timestamp="1601287464000">
|
<state x="361" y="145" key="Vcs.Push.Dialog.v2" timestamp="1601287670071">
|
||||||
<screen x="0" y="0" width="1536" height="824" />
|
<screen x="0" y="0" width="1536" height="824" />
|
||||||
</state>
|
</state>
|
||||||
<state x="451" y="183" key="Vcs.Push.Dialog.v2/-1920.0.1536.832/0.0.1920.1040@0.0.1920.1040" timestamp="1600275760386" />
|
<state x="451" y="183" key="Vcs.Push.Dialog.v2/-1920.0.1536.832/0.0.1920.1040@0.0.1920.1040" timestamp="1600275760386" />
|
||||||
<state x="361" y="145" key="Vcs.Push.Dialog.v2/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600350277680" />
|
<state x="361" y="145" key="Vcs.Push.Dialog.v2/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600350277680" />
|
||||||
<state x="2371" y="183" key="Vcs.Push.Dialog.v2/0.0.1536.824/1920.0.1920.1040@1920.0.1920.1040" timestamp="1600351824385" />
|
<state x="2371" y="183" key="Vcs.Push.Dialog.v2/0.0.1536.824/1920.0.1920.1040@1920.0.1920.1040" timestamp="1600351824385" />
|
||||||
<state x="361" y="145" key="Vcs.Push.Dialog.v2/0.0.1536.824@0.0.1536.824" timestamp="1601287464000" />
|
<state x="361" y="145" key="Vcs.Push.Dialog.v2/0.0.1536.824@0.0.1536.824" timestamp="1601287670071" />
|
||||||
<state x="478" y="145" width="579" height="592" key="find.popup" timestamp="1599656923861">
|
<state x="478" y="145" width="579" height="592" key="find.popup" timestamp="1599656923861">
|
||||||
<screen x="0" y="0" width="1536" height="824" />
|
<screen x="0" y="0" width="1536" height="824" />
|
||||||
</state>
|
</state>
|
||||||
|
|||||||
22
Dockerfile
22
Dockerfile
@@ -1,14 +1,18 @@
|
|||||||
FROM openjdk:14 as builder
|
FROM maven:3.6.3-jdk-14 as builder
|
||||||
WORKDIR application
|
WORKDIR application
|
||||||
RUN java -Djarmode=layertools -jar ${project.build.finalName}.jar extract
|
COPY ./ ./
|
||||||
|
RUN mvn clean install
|
||||||
|
|
||||||
|
FROM openjdk:14 as layerBuilder
|
||||||
|
WORKDIR application
|
||||||
|
ARG JAR_FILE=application/target/*.jar
|
||||||
|
COPY --from=builder ${JAR_FILE} application.jar
|
||||||
|
RUN java -Djarmode=layertools -jar application.jar extract
|
||||||
|
|
||||||
FROM openjdk:14
|
FROM openjdk:14
|
||||||
LABEL PROJECT_NAME=${project.artifactId} \
|
|
||||||
PROJECT=${project.id}
|
|
||||||
|
|
||||||
WORKDIR application
|
WORKDIR application
|
||||||
COPY --from=builder application/dependencies/ ./
|
COPY --from=layerBuilder application/dependencies/ ./
|
||||||
COPY --from=builder application/spring-boot-loader/ ./
|
COPY --from=layerBuilder application/spring-boot-loader/ ./
|
||||||
COPY --from=builder application/snapshot-dependencies/ ./
|
COPY --from=layerBuilder application/snapshot-dependencies/ ./
|
||||||
COPY --from=builder application/application/ ./
|
COPY --from=layerBuilder application/application/ ./
|
||||||
ENTRYPOINT ["java", "-Djava.security.cgd=file:/dev/./urandom", "org.springframework.boot.loader.JarLauncher"]
|
ENTRYPOINT ["java", "-Djava.security.cgd=file:/dev/./urandom", "org.springframework.boot.loader.JarLauncher"]
|
||||||
|
|||||||
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -1,11 +1,6 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('build') {
|
|
||||||
steps {
|
|
||||||
sh "mvn clean package"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('docker-compose') {
|
stage('docker-compose') {
|
||||||
steps {
|
steps {
|
||||||
sh "docker-compose build"
|
sh "docker-compose build"
|
||||||
|
|||||||
Reference in New Issue
Block a user