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
docker: parametrize risk and OS for image builds (core18 etc) #2673
Conversation
7ba7dae
to
f549380
Compare
2de1ceb
to
02ef490
Compare
Codecov Report
@@ Coverage Diff @@
## master #2673 +/- ##
==========================================
+ Coverage 87.9% 89.19% +1.29%
==========================================
Files 229 210 -19
Lines 16317 14313 -2004
Branches 2486 2166 -320
==========================================
- Hits 14343 12767 -1576
+ Misses 1436 1094 -342
+ Partials 538 452 -86
Continue to review full report at Codecov.
|
Rebased. |
This will need conflict resolution work applied. Thanks |
02ef490
to
d58bd3d
Compare
@sergiusens ready. |
Mind telling me how to configure hub.docker.com to automatically build with a matrix of environment variables? |
@sergiusens is there a problem to configure 4 builds with separate environment variables manually? https://docs.docker.com/docker-hub/builds/#environment-variables-for-builds I don't use Docker Hub autobuilds. I push images from Travis after their tests are finished. Otherwise you will also need to configure testing on Docker Hub. The CI configuration for |
d58bd3d
to
26bd7de
Compare
26bd7de
to
14b3e3b
Compare
Rebased. Should work for |
Shouldn't the X-Ubuntu-Series header be parameterised too? It's hardcoded to 16 now |
We are going to close this PR due to lack of activity. |
Lack of activity? WTF? There's lack of activity because there's lack of PR review, which is not to blame to the PR creator. |
Sorry about that, you're right. I'm going to reopen this and see what we can do. I like the consolidation of the Dockerfiles, but do not fully understand the effects on our CI & images yet. I started experimenting with the Docker images a couple months ago incorporating the approach taken here as the starting point, but have not yet found the time to get back to it. https://github.com/cjp256/snapcraft-docker-image/blob/master/Dockerfile. I'll do my best to put some cycles on it next week. |
I've rebased this 5 times already over this year. I feel like I just need to apply to be a product owner for Docker users in this project. ) |
Thank you for your patience, I will merge as soon as conflicts are resolved (last time 🤞) |
@sergiusens can you answer #2673 (comment)? |
It should not, the name is unfortunate, but it relates to API version around snaps |
Signed-off-by: Anatoli Babenia <anatoli@rainforce.org>
To avoid changing Dockerfile as described in https://forum.snapcraft.io/t/creating-docker-images-for-snapcraft/11739 Signed-off-by: Anatoli Babenia <anatoli@rainforce.org>
e045307
to
d192601
Compare
@sergiusens conflict are resolved. Last time! :D |
@MarcusTomlinson fyi, seems CLA check thing is down |
Yeah, was an issue in LP (https://bugs.launchpad.net/launchpad/+bug/1921727), should be fixed now. |
@abitrolly did you use your same email to author the commit? |
@sergiusens everything is the same. You can compare with any https://github.com/snapcore/snapcraft/pulls?q=is%3Apr+author%3Aabitrolly+is%3Aclosed |
The GitHub user: https://github.com/abitrolly is not a member of: https://github.com/CanonicalContributorAgreement Please signed the Canonical Contributor Agreement here: https://ubuntu.com/legal/contributors/agreement (Note that even once you've signed the agreement, it can take a few hours for you to be added) |
@MarcusTomlinson but it was. So what happened? |
We are doing better CLA checking now. One minor commit made it into master and our previous check completed skipped the check so it seems you had never signed the CLA. Since this change is bigger than a minor change, we would require you to sign it before merging this. If proceeding, I would be a valid contact which is required in the form. |
Signed again. |
I checked history, and it seems it passed before as there were commits on master which is not longer looked at in the new checks |
Should the docs be changed now that this PR has been merged? |
@knocte which docs? |
I see that both https://snapcraft.io/docs/snapcraft-docker-images and https://github.com/snapcore/snapcraft/tree/master/docker need to mention how to build for specific Ubuntu |
Leave only relevant details and mention how to specify Ubuntu version Addresses canonical#2673 (comment)
I sent the PR to update |
Leave only relevant details and mention how to specify Ubuntu version Addresses canonical#2673 (comment)
This PR allows to change Ubuntu version and risk level of docker image from command line without editing Dockerfiles as advised at https://forum.snapcraft.io/t/creating-docker-images-for-snapcraft/11739
./runtests.sh static
?./runtests.sh tests/unit
?