Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22a7f0099
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22a7f0099
Commits
c109d8fb
Commit
c109d8fb
authored
4 years ago
by
scott.wang
Browse files
Options
Downloads
Patches
Plain Diff
Add ci used current commit id
parent
b6a5888e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+3
-2
3 additions, 2 deletions
.travis.yml
test/integrate/dubbo/go-client/Dockerfile
+4
-0
4 additions, 0 deletions
test/integrate/dubbo/go-client/Dockerfile
test/integrate/dubbo/go-server/Dockerfile
+4
-0
4 additions, 0 deletions
test/integrate/dubbo/go-server/Dockerfile
with
11 additions
and
2 deletions
.travis.yml
+
3
−
2
View file @
c109d8fb
...
...
@@ -15,6 +15,7 @@ install: true
# define ci-stage
script
:
-
COMMITID=$(git rev-parse HEAD)
# license-check
# start zookeeper registry insecure listen in [:]:2181
-
echo 'start license check'
...
...
@@ -31,8 +32,8 @@ script:
# start zookeeper registry insecure listen in [:]:2181
-
docker run -d --network host zookeeper
-
ROOTDIR=$(pwd)
-
cd ./test/integrate/dubbo/go-client && docker build . -t ci-consumer && cd $ROOTDIR
-
cd ./test/integrate/dubbo/go-server && docker build . -t ci-provider && cd $ROOTDIR
-
cd ./test/integrate/dubbo/go-client && docker build . -t ci-consumer
--build-arg COMMITID=${COMMITID}
&& cd $ROOTDIR
-
cd ./test/integrate/dubbo/go-server && docker build . -t ci-provider
--build-arg COMMITID=${COMMITID}
&& cd $ROOTDIR
-
docker run -d --network host ci-provider
-
docker run -it --network host ci-consumer
...
...
This diff is collapsed.
Click to expand it.
test/integrate/dubbo/go-client/Dockerfile
+
4
−
0
View file @
c109d8fb
...
...
@@ -7,8 +7,12 @@ WORKDIR /go/src/github.com/apache/dubbo-go/test/integrate/dubbo/go-client
ENV
CONF_CONSUMER_FILE_PATH "client.yml"
ENV
APP_LOG_CONF_FILE "log.yml"
ARG
COMMITID
ADD
. /go/src/github.com/apache/dubbo-go/test/integrate/dubbo/go-client
RUN
go get
-u
github.com/apache/dubbo-go@ARG
RUN
go
install
github.com/apache/dubbo-go/test/integrate/dubbo/go-client
CMD
go-client
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test/integrate/dubbo/go-server/Dockerfile
+
4
−
0
View file @
c109d8fb
...
...
@@ -7,8 +7,12 @@ WORKDIR /go/src/github.com/apache/dubbo-go/test/integrate/dubbo/go-server
ENV
CONF_PROVIDER_FILE_PATH "server.yml"
ENV
APP_LOG_CONF_FILE "log.yml"
ARG
COMMITID
ADD
. /go/src/github.com/apache/dubbo-go/test/integrate/dubbo/go-server
RUN
go get
-u
github.com/apache/dubbo-go@ARG
RUN
go
install
github.com/apache/dubbo-go/test/integrate/dubbo/go-server
CMD
go-server
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment