You should definitely go with the library golang image as a builder rather
than rely on external configuration in the CI executors.

This is what we use in OpenFaaS
https://github.com/openfaas/faas-cli/blob/master/Dockerfile.redist

On Fri, Aug 9, 2019, 5:39 PM Geoff Macartney <[email protected]>
wrote:

> Ah, I'm looking at the pull request job
>
> https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-client-pull-requests/
>
> That's a bit of a mismatch perhaps, doing one in Docker and the other not.
> At the very least we would need to keep the build environments matching,
> i.e. ensure that toolchain versions are the same between the jobs.
>
> Regarding the version of Go, am I right in thinking that the Go version is
> coming simply from the build node? We just specify label "ubuntu", and the
> builds look like they are done on Xenial nodes, for which the default
> version of Go is 1.6.2.  If we want a higher version then our only current
> option on Jenkins is to specify ubuntu&&bionic, which will give us a
> default version of Go of 1.10.4.  (Also there are only three build nodes
> for general project use at that version of Ubuntu, but I guess that's ok.)
>
>
>
>
>
> On Fri, 9 Aug 2019 at 17:13, Duncan Grant <[email protected]>
> wrote:
>
> > I think it is done with docker.  I'm looking at jobs like
> >
> >
> https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-client-master-docker/
> >  and
> >
> >
> https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-master-build-docker/
> > .
> > Unless those are the wrong jobs.
> >
> > On Fri, 9 Aug 2019 at 17:10, Geoff Macartney <[email protected]>
> > wrote:
> >
> > > I don't think the build is done with Docker is it? The Jenkins job
> Build
> > > step is just configured to run mvn clean install, so presumably uses
> the
> > > locally installed Go on the build machine.  I don't know anything much
> > how
> > > that aspect of things works though. How can we change the Go version,
> and
> > > how to do so without affecting anyone else?
> > >
> > > G
> > >
> > > On Fri, 9 Aug 2019 at 16:52, Duncan Grant <[email protected]>
> > > wrote:
> > >
> > > > So the CLI part of the build worked with the updated image.  But the
> > > build
> > > > is either hanging or failing during the UI build with an npm update
> > > error.
> > > > I'll try to look into that over the weekend.
> > > >
> > > > On Fri, 9 Aug 2019 at 11:03, Duncan Grant <[email protected]
> >
> > > > wrote:
> > > >
> > > > > I'm not totally sure how the jenkins build is set up but I assume
> it
> > is
> > > > > using a docker image built using the Dockerfile in apache/brooklyn?
> > > > > If I try to build that locally I end up with an image with Docker
> > 1.7.4
> > > > so
> > > > > possibly as a quick fix we could replace the current image with an
> > > > updated
> > > > > one.
> > > > > But is is installing docker using apt-get install do-lang so I
> assume
> > > it
> > > > > would be a bigger change to move to 1.12.
> > > > >
> > > > > I'll try running the build locally against Geoff's PR using the
> > docker
> > > > > image I just built to check whether that works.  That way we can
> > > consider
> > > > > splitting the big version change out into a separate change.
> > > > >
> > > > > On Fri, 9 Aug 2019 at 10:50, John McCabe <[email protected]>
> > wrote:
> > > > >
> > > > >> Regarding Go, I'd be inclined to jump to 1.12 asap.
> > > > >>
> > > > >> On Fri, Aug 9, 2019, 9:34 AM Geoff Macartney <
> > > [email protected]
> > > > >
> > > > >> wrote:
> > > > >>
> > > > >> > Hm that's a thought. I'll look at that, but the question on Go
> > > version
> > > > >> > still stands, I'd say, irrespective of this particular issue.
> What
> > > do
> > > > >> you
> > > > >> > think?
> > > > >> >
> > > > >> > G
> > > > >> >
> > > > >> > On Fri, 9 Aug 2019 at 00:16, John McCabe <[email protected]>
> > > wrote:
> > > > >> >
> > > > >> > > Hi Geoff,
> > > > >> > > Have you looked at the jsonpath package used by kubernetes.
> > > > >> > >
> > > > >> > >
> > https://github.com/kubernetes/client-go/tree/master/util/jsonpath
> > > > >> > >
> > > > >> > > It may be a better choice than an implementation with a single
> > > > >> > contributor.
> > > > >> > > Best,
> > > > >> > > John
> > > > >> > >
> > > > >> > >
> > > > >> > > On Thu, Aug 8, 2019 at 10:48 PM Geoff Macartney <
> > > > >> > [email protected]
> > > > >> > > >
> > > > >> > > wrote:
> > > > >> > >
> > > > >> > > > Hi all,
> > > > >> > > >
> > > > >> > > > I raised https://github.com/apache/brooklyn-client/pull/78
> to
> > > > >> update
> > > > >> > the
> > > > >> > > > jsonpath package (following the changes back in
> > > > >> > > > https://github.com/apache/brooklyn-client/pull/68), but I
> see
> > > the
> > > > >> > build
> > > > >> > > > has
> > > > >> > > > broken on Jenkins. It turns out the package I wanted to use
> > > > >> requires Go
> > > > >> > > 1.7
> > > > >> > > > at least, see comment on PR. We currently use Go 1.6 on
> > Jenkins.
> > > > >> > > >
> > > > >> > > > I think it's probably about time we updated to a more recent
> > Go
> > > > >> anyway.
> > > > >> > > > Would anyone object if I updated the README to specify a
> more
> > > > recent
> > > > >> > > > version? Could jump to the current 1.12, or just go as far
> as
> > > > 1.11?
> > > > >> > > >
> > > > >> > > > If that's OK, how do we go about getting the version of Go
> on
> > > the
> > > > >> > > > build.apache.org Jenkins servers updated?
> > > > >> > > >
> > > > >> > > > Geoff
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > > >
> > > > >
> > > > > --
> > > > > Duncan Grant
> > > > > Lead Software Engineer
> > > > >
> > > > > *Cloudsoft <https://cloudsoft.io/> *| Bringing Business to the
> Cloud
> > > > >
> > > > > GitHub: https://github.com/duncangrant/
> > > > >
> > > > >
> > > >
> > > > --
> > > > Duncan Grant
> > > > Lead Software Engineer
> > > >
> > > > *Cloudsoft <https://cloudsoft.io/> *| Bringing Business to the Cloud
> > > >
> > > > GitHub: https://github.com/duncangrant/
> > > >
> > >
> >
> >
> > --
> > Duncan Grant
> > Lead Software Engineer
> >
> > *Cloudsoft <https://cloudsoft.io/> *| Bringing Business to the Cloud
> >
> > GitHub: https://github.com/duncangrant/
> >
>

Reply via email to