Skip to content

chore: added Docker image publishing#1171

Merged
mxschmitt merged 2 commits intomicrosoft:mainfrom
mxschmitt:docker-publishing
Mar 1, 2022
Merged

chore: added Docker image publishing#1171
mxschmitt merged 2 commits intomicrosoft:mainfrom
mxschmitt:docker-publishing

Conversation

@mxschmitt
Copy link
Copy Markdown
Contributor

@mxschmitt mxschmitt commented Feb 24, 2022

@mxschmitt mxschmitt marked this pull request as draft February 24, 2022 15:54
@mxschmitt mxschmitt force-pushed the docker-publishing branch 5 times, most recently from e33e596 to 01eade4 Compare February 25, 2022 14:26
@mxschmitt mxschmitt marked this pull request as ready for review February 28, 2022 20:56
@mxschmitt mxschmitt force-pushed the docker-publishing branch from 01eade4 to 66a9bdb Compare March 1, 2022 00:08
cd "$(dirname "$0")"

MCR_IMAGE_NAME="playwright-python"
PW_VERSION=$(python -c "from playwright._repo_version import version;print(version)")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Where does "playwright" come from? Do I need to be inside some venv for this to work? If so, sounds fragile! Any chance we can extract version to a separate file and just cat it here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Does not depend on venv. We install it globally on gha which is common practise.


publish_docker_images_with_arch_suffix focal amd64
publish_docker_images_with_arch_suffix focal arm64
publish_docker_manifest focal amd64 arm64
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see you don't publish bionic. Do we have a strong signal that we can do so? I'd keep it for now to minimize disturbance of our clients.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I’d drop bionic anyway in 2 months when ubuntu 22 ltd comes out.

# Install Python
apt-get install -y python3 python3-distutils curl && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The apt pip is very very old and does not work with our arm afaik.

@mxschmitt mxschmitt force-pushed the docker-publishing branch from 66a9bdb to 52a66e3 Compare March 1, 2022 10:27
@mxschmitt mxschmitt merged commit 0098ac0 into microsoft:main Mar 1, 2022
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.

2 participants