-
Notifications
You must be signed in to change notification settings - Fork 886
Migration from CircleCI1.0 to CircleCI2.0 #2168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ctelfer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem ready to be merged right? There are various commented sections in the config.yml and Makefile that presumably should be either uncommented or removed.
.circleci/config.yml
Outdated
| exclusive: false | ||
| - run: make circle-ci | ||
| #- run: make build-builder | ||
| # - run: mkdir -p images |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused here w.r.t. the build-builder target. It's added to the Makefile below, but it seems to be commented out here. Is it needed or not?
|
@ctelfer , This is still WIP. Forgot to add it on the title. Modified it now. |
f328905 to
8351d54
Compare
e7e4abd to
ecc60cb
Compare
|
Now it is ready for review. |
86d4e2e to
d5d5ce5
Compare
Dockerfile.ci
Outdated
| FROM golang:1.10 | ||
| RUN apt-get update && apt-get -y install iptables | ||
|
|
||
| RUN go get github.com/tools/godep \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't think godep is still used in this repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will remove it and test it once to make sure there is no failure.
| - image: 'circleci/golang:1.10' | ||
| environment: | ||
| Dockerfile: Dockerfile.ci | ||
| dockerargs: --privileged -e CIRCLECI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if here we need privileged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we dont run container without privileged option, lot of testing which invoke system calls failed. I already came across during my testing
Makefile
Outdated
| ./bin/dnet: | ||
| make build | ||
|
|
||
| coveralls: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can remove coveralls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| all-local: build-local check-local integration-tests-local clean | ||
| all-local: build-local check-local clean | ||
|
|
||
| ${build_image}.created: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was convenient locally to avoid building all the time the image. In theory the cache should do the job but we should give it a try
This commit will allow us to use newer version of CircleCI. Signed-off-by: selansen <elango.siva@docker.com>
- cleaned the make check - local build do not require context Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
|
@ctelfer @euanh can you guys give it try to see that your local development flow on linux is not affected? |
fcrisciani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do this
thaJeztah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL, noticed I had some review comment pending 😅
|
|
||
| WORKDIR /go/src/github.com/docker/libnetwork | ||
|
|
||
| COPY . . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this Dockerfile is exactly the same as the other, except for the COPY, correct?
Perhaps it's better to make it a multi-stage build, and for dev specify the target (docker build --target=dev)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have to check if the engine version of circle CI supports the multi stage builds
| RUN go get github.com/tools/godep \ | ||
| github.com/golang/lint/golint \ | ||
| RUN go get github.com/golang/lint/golint \ | ||
| golang.org/x/tools/cmd/cover \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just thinking of this, but I don't think combining all these in a single RUN provides any space saving (because there's no overlap and/or files being removed afterwards).
You could split these all into their own RUN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go get is called one time with multiple arguments, so maybe can do the fetch in parallel or something, instead splitting it will force to have 1 call per argument. Would keep this as is, hoping that go get can do some magic :D
|
I saw only one comment from you last week and addressed it :)
1) We have only two targets, local machine and circleCI. For CircleCI mount
doesn't work anymore. So we are using old dockerfile as it is for local and
using new Dockerfile.ci for circleCI. makefile will choose right one
depending on target.
2) Will spilt the run command as per your suggestion.
…On Tue, Jun 19, 2018 at 2:31 PM, Sebastiaan van Stijn < ***@***.***> wrote:
***@***.**** commented on this pull request.
LOL, noticed I had some review comment pending 😅
------------------------------
In Dockerfile.ci
<#2168 (comment)>:
> @@ -0,0 +1,13 @@
+FROM golang:1.10
+RUN apt-get update && apt-get -y install iptables
+
+RUN go get github.com/golang/lint/golint \
+ golang.org/x/tools/cmd/cover \
+ github.com/mattn/goveralls \
+ github.com/gordonklaus/ineffassign \
+ github.com/client9/misspell/cmd/misspell \
+ honnef.co/go/tools/cmd/gosimple
+
+WORKDIR /go/src/github.com/docker/libnetwork
+
+COPY . .
Looks like this Dockerfile is exactly the same as the other, except for
the COPY, correct?
Perhaps it's better to make it a multi-stage build, and for dev specify
the target (docker build --target=dev)?
------------------------------
In Dockerfile.build
<#2168 (comment)>:
> @@ -1,10 +1,11 @@
FROM golang:1.10
RUN apt-get update && apt-get -y install iptables
-RUN go get github.com/tools/godep \
- github.com/golang/lint/golint \
+RUN go get github.com/golang/lint/golint \
golang.org/x/tools/cmd/cover \
Just thinking of this, but I don't think combining all these in a single
RUN provides any space saving (because there's no overlap and/or files
being removed afterwards).
You could split these all into their own RUN
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2168 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKEKnw8Dg9bUbDg9li75WhR_-1tdWentks5t-UOUgaJpZM4USNc_>
.
|
This commit will allow us to use newer version of CircleCI.
Signed-off-by: selansen elango.siva@docker.com