-
Notifications
You must be signed in to change notification settings - Fork 21
Support Ubuntu 20.04 on amd64 and arm64 #96
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
Co-authored-by: Jimmy Song <55897143+jimson-msft@users.noreply.github.com> Cherry-picked from #89
| @@ -0,0 +1,238 @@ | |||
| #! /bin/bash | |||
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.
We don't need this script right? The one in build/scripts/bootstrap.sh works for ubuntu2004. #Resolved
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.
Oops yea, got brought over whe building the image
build/scripts/bootstrap.sh
Outdated
| then | ||
|
|
||
|
|
||
| echo "[INFO] Installing build dependencies" |
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.
| @@ -0,0 +1,36 @@ | |||
| # Dockerfile for building DO apt plugin for linux-arm (64bit). | |||
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.
Comment needs updating. In other Dockerfiles as well. Not urgent.. #Resolved
| # Example: | ||
| # docker run -ti --rm --entrypoint=/bin/bash -v D:\do-client-lite:/code -v D:\temp\build_client_lite\arm-linux-debug:/build custom-ubuntu2004-arm64 | ||
|
|
||
| FROM amd64/ubuntu:20.04 |
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.
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.
Yeah I had considered that in an earlier iteration. We can do a native build, but this requires us to setup another 1ES image + another set of pipeline yml files specifically for ubuntu 20.04.
The current 1ES image is named:
do-adu-build-<Semantic Version Number of current (really meaning subsequent) release>
So now we'll have two 1ES images for example, per version:
do-adu-build-ubuntu1804-0.8.0
do-adu-build-ubuntu2004-0.8.0
I don't think it's worth maintaining duplicate vm images for native builds, if we trust that the docker builds are doing what they're supposed to.
Another question may be - if we do native builds for Ubuntu 20.04, do we also run tests there? IMO it's unnecessary since we rely on Ubuntu 1804 for tests.
IMO we should rely on still having a single build image to support all our builds, and only run tests natively, and have CI/CD triggers for a single native build to save on compute resources.
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 goign to leave as is for now, if we do want to move to native builds at a later point in time - we still have the option to do so.
shishirb-MSFT
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.
![]()
No description provided.