Skip to content

Conversation

@jimson-msft
Copy link
Contributor

No description provided.

@jimson-msft jimson-msft requested a review from a team as a code owner October 20, 2021 23:33
@@ -0,0 +1,238 @@
#! /bin/bash
Copy link
Collaborator

@shishirb-MSFT shishirb-MSFT Oct 21, 2021

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

Copy link
Contributor Author

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

then


echo "[INFO] Installing build dependencies"
Copy link
Collaborator

@shishirb-MSFT shishirb-MSFT Oct 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo "[INFO] Installing build dependencies"

Duplicate log line. See line 75. #Resolved

@shishirb-MSFT
Copy link
Collaborator

shishirb-MSFT commented Oct 21, 2021

if [[ $"PLATFORM" != "unknown" ]]

$ should go after the opening quote "


In reply to: 948212963


Refers to: build/scripts/bootstrap.sh:67 in d7a831e. [](commit_id = d7a831e, deletion_comment = False)

@@ -0,0 +1,36 @@
# Dockerfile for building DO apt plugin for linux-arm (64bit).
Copy link
Collaborator

@shishirb-MSFT shishirb-MSFT Oct 21, 2021

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amd64

We recently came to the conclusion that we'll go native where possible. Isn't a native 20.04 image available in 1ES?

Copy link
Contributor Author

@jimson-msft jimson-msft Oct 21, 2021

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

@shishirb-MSFT shishirb-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jimson-msft jimson-msft merged commit 65696c3 into develop Oct 21, 2021
@jimson-msft jimson-msft deleted the user/jimson/ubuntu20.04_arm64 branch October 21, 2021 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants