Skip to content

Commit

Permalink
fix: build.sh and jib (#26)
Browse files Browse the repository at this point in the history
* test: ignore apollo

* feat: support jib

* feat: support dockerfile-maven-plugin

* chore: .gitignore add .idea/

* test: jib

* feat: support more jdk of docker from

* test: 3 ways of docker image build

* chore: update README.md

* test: adjust suit of skywalking to below docker

* chore:  test

* fix: optimization

* refactor: adjust docker

* test: adjust of docker

* refactor: adjust scripts and pom for docker

* fix: invalid expected token

* refactor: adjust scripts and pom for docker

* refactor: remove repoName and imageName

* test: build.sh

* test: docker of start-code.sh

* chore: update quickly_start.md

* feat: support remote debug

* test: remoteDebug

* fix: docker.tag

* test: docker.tag

* fix: error startup cmd for jib

* refactor: extract docker repsitory as pom properties

* fix: error reference for docker.repostiry

* refactor: adjust build.sh

* test: remove redundancy test

* refactor: adjust start-code.sh

* fix: under docker maven

* test: start-code.sh

* chore: remove redundancy ;

* Update quickly_start.tmpl.md

* fix: devops compatible

* fix: build and run image by jib

Co-authored-by: xieyuanqing <xieyuanqing@deepexi.com>
Co-authored-by: taccisum <liaojinfeng@deepexi.com>
Co-authored-by: taccisum <514162920@qq.com>
  • Loading branch information
4 people authored and xiangtch committed Aug 6, 2020
1 parent 948857e commit fa9c0f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>2.0.0</version>
<version>2.3.0</version>
<configuration>
<from>
<image>${jdk}</image>
Expand All @@ -139,14 +139,14 @@
<appRoot>/home</appRoot>
<workingDirectory>/home</workingDirectory>
<entrypoint>
<arg>/bin/sh</arg>
<arg>-c</arg>
<arg>/entrypoint.sh</arg>
</entrypoint>
<creationTime>USE_CURRENT_TIMESTAMP</creationTime>
</container>
<extraDirectories>
<paths>scripts</paths>
<paths>
<path>scripts</path>
</paths>
<permissions>
<permission>
<file>/entrypoint.sh</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cmd=\$\{cmd\}\'`

if(docker === 'Jib') {
tmpl += `
-cp resources/:classes/:libs/*
-cp /home/resources/:/home/classes/:/home/libs/*
${basePackage}.StartupApplication $@
\'`
} else {
Expand Down
2 changes: 1 addition & 1 deletion generators/app/templates/if_Dockerfile.build.tmpl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ h2 '准备构建Docker镜像'
if [ ! -z $IMAGE_NAME ];then
docker build --rm -t $IMAGE_NAME .
else
docker build --rm -t $APP_NAME:$VERSION .
docker build --rm -t $APP_NAME:v$VERSION .
fi

0 comments on commit fa9c0f7

Please sign in to comment.