[COE-30] Make CNI container image available on the Quay.io container registry Created: 29/Nov/18  Updated: 24/Jan/19  Resolved: 18/Jan/19

Status: Resolved
Project: coe
Component/s: None
Affects Version/s: None
Fix Version/s: Neon

Type: Story Priority: Medium
Reporter: Michael Vorburger Assignee: Michael Vorburger
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
blocks COE-10 COE Deployment and Packaging for Kube... Open
blocks COE-32 Watcher container image, build and pu... Open
blocks COE-33 ODL with CoE containerized Open
blocks COE-56 COE Container builds automated on Doc... Resolved
blocks COE-55 CSIT should use (locally built, not r... Confirmed
is blocked by COE-22 Create CNI docker image and odlcni Ya... Resolved
Relates
relates to INTPAK-12 Add Jenkins jobs that do Packer build... Open
Epic Link: COE Deployment and Packaging

 Description   

Once we have a way to "manually" build the CNI container in COE-22, let the goal of this separate new issue be to build the CNI container image on Jenkins build and push it to a registry such as Docker Hub and/or https://quay.io ...



 Comments   
Comment by Michael Vorburger [ 29/Nov/18 ]

Back in March there was an email thread "COE builds using docker system" about this which never went anywhere AFAIK...

https://git.opendaylight.org/gerrit/#/c/68911/ (not saying we'll use that, just for reference)

Comment by Michael Vorburger [ 06/Dec/18 ]

In last week's TSC, zxiiro said that whenever we (CoE folks) were ready and really wanted this, to open a helpdesk ticket and he/someone would assist from the infra side. 

dfarrell07 in today's #opendaylight-integration IRC weekly meeting expressed interested in helping with this and/or COE-33 ? He pointed to INTPAK-12.

It's not something for tomorrow morning as I haven't even got to being able to build that image locally, and I first need to progress on where I actually use that image - but I'll get back.

Comment by Michael Vorburger [ 06/Dec/18 ]

Note that the goal of this issue is to build and push a container image of some Go code, not an ODL distribution (and same for another container in COE-32; but not COE-33 which is an ODL image).

Comment by Luis Gomez [ 06/Dec/18 ]

OK, changed comment to right ticket

Comment by Michael Vorburger [ 16/Jan/19 ]

I'll see how hard it is to get the POC container with odlovs-cni from COE-22 (which BTW I'm not really even sure works yet) deployed on Quay.io ... I wonder if Go is available there, or if we need to do something like https://git.opendaylight.org/gerrit/#/c/78105/6/odlCNIPlugin/odlovs-cni/Dockerfile ...

Comment by Michael Vorburger [ 16/Jan/19 ]

watch (WIP) https://quay.io/repository/vorburger/test-opendaylight-coe-cni/ (FYI https://quay.io/organization/opendaylight reserved for future use...)

> I wonder if Go is available there, or if we need to do something like https://git.opendaylight.org/gerrit/#/c/78105/6/odlCNIPlugin/odlovs-cni/Dockerfile ...

yeah, it builds (only) off a Dockerfile and can't launch a "native" (non-containerized) Go build from a Makefile or build.sh ...

Comment by Michael Vorburger [ 18/Jan/19 ]

With my first 3-4 related changes required for this just merged, I've now set up a build trigger on https://quay.io/repository/opendaylight/opendaylight-coe-cni/ :

  • Please enter the HTTP or SSH style URL used to clone your git repository : https://git.opendaylight.org/gerrit/coe.git
  • Please select the location of the Dockerfile to build when this trigger is invoked : /odlCNIPlugin/odlovs-cni/Dockerfile
  • Please select the context for the Docker build : /odlCNIPlugin/odlovs-cni

which then gave me this information:

Please note: If the trigger continuously fails to build, it will be automatically disabled. It can be re-enabled from the build trigger list. In order to use this trigger, the following first requires action:

1. You must give the following public key read access to the git repository:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0gURKttJAy2B1Ohm56hLfGk9dQLcdYzjpq1xcNNot41aJF2m2NBw8Prn//TGCBGOsjLFO/T5pQFkd8Q85dhRKq8ZRHGPVxEEVvvZUv0mjG9LyLIZeY4CWTBoH38V+pJDoyDRtQKzlIBS4TeYkUdyB54k4LFLDCm0s7WEOFoY4rLigMqVcsWRSnEhBP5hi1I3u0LUbvLCv06TCi8p2ufxrWqY6m+w3sOa4MZgG5GmtMVjTAdmjCrGv3lMMO9RxTdxO1IyUTgqhP7+3kYLpMD/1ePwmOm/R9gjNH9A+Zx8sTNlIoELOoKVq2Xo3ycGv78bfzNEzoJHFh/2cVHDQ96mX

2. You must set your repository to POST to the following URL to trigger a build: (For more information, refer to the Custom Git Triggers documentation.)

https://$token:D...R@quay.io/webhooks/push/trigger/9...e

The ... are perhaps best not posted here, I'll send them by private email to anyone who asks for it, for COE-56.

I've deleted https://quay.io/repository/vorburger/test-opendaylight-coe-cni again to avoid future confusion.

Considering this done, but follow-up required in COE-56 (by others than me).

Comment by Michael Vorburger [ 24/Jan/19 ]

Because zxiiro in COE-56 opted for using Docker Hub instead of Quay.io, I have deleted https://quay.io/repository/opendaylight/opendaylight-coe-cni/ again.

Generated at Wed Feb 07 19:15:26 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.