Skip to content
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

WX-1179 DRS image build updates #7179

Merged
merged 5 commits into from
Jul 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,13 @@ object Settings {
*/
val installLocalizerSettings: List[Setting[Seq[Instruction]]] = List(
dockerCustomSettings := List(
Instructions.From("ubuntu:latest"),
Instructions.Env("PATH", "$PATH:/usr/local/gcloud/google-cloud-sdk/bin"),
// instructions to install `crcmod`
Instructions.Run("apt-get -y update"),
Instructions.Run("apt-get -y install python3.11"),
Instructions.Run("apt -y install python3-pip"),
Instructions.Run("apt-get -y install gcc python3-dev python3-setuptools"),
Instructions.Run("apt-get -y install python3-pip"),
Copy link
Collaborator Author

@aednichols aednichols Jul 18, 2023

Choose a reason for hiding this comment

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

This is a stowaway change due to apt warning against use in scripts (unstable interface)

Instructions.Run("apt-get -y install curl gcc python3-dev python3-setuptools"),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, for some reason whatever image we were inheriting from does have curl, while ubuntu:latest does not.

Instructions.Run("pip3 uninstall crcmod"),
Instructions.Run("pip3 install --no-cache-dir -U crcmod"),
Instructions.Run("update-alternatives --install /usr/bin/python python /usr/bin/python3 1"),
Expand Down