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

Update Dockerfile-setup #2773

Merged
merged 1 commit into from Jun 13, 2023

Conversation

jsoref
Copy link
Contributor

@jsoref jsoref commented Jun 11, 2023

Problem

Neither dockerfile works.

  • jessie was eol
  • the cassandra urls were both dead

Solution

  • Upgrade debian from jessie to bullseye
    • Switch from mysql-client to mariadb-client
    • Change from msodbcsql to msodbcsql18
    • Replace deprecated apt-key with a trusted.gpg.d entry
  • Update cassandra url (and use an arg to reduce duplication)
  • Upgrade cassandra to 3.11.13
  • Mostly sync m1 and non-m1 Dockerfile

Notes

Additional notes.

Checklist

  • Unit test all changes
  • Update README.md if applicable
  • Add [WIP] to the pull request title if it's work in progress
  • Squash commits that aren't meaningful changes
  • Run sbt scalariformFormat test:scalariformFormat to make sure that the source files are formatted

@getquill/maintainers

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates \
curl \
mysql-client \
mariadb-client \
Copy link
Member

Choose a reason for hiding this comment

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

Why changing to mariadb? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because mysql wasn't available

Comment on lines -21 to -24
# RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
# RUN curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list && \
# RUN apt-get update && \
# ACCEPT_EULA=Y apt-get install -y msodbcsql mssql-tools
Copy link
Member

Choose a reason for hiding this comment

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

Why did you uncomment these lines? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Consistency w/ the other file. If they really shouldn't be there, then why were they there?

Copy link
Member

Choose a reason for hiding this comment

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

then why were they there?

No idea. That's always the issue with committed commented code 😕

MAINTAINER gustavo.amigo@gmail.com

ARG CASSANDRA_URL_BASE=https://archive.apache.org/dist/cassandra/
Copy link
Member

Choose a reason for hiding this comment

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

Why did you change from https://downloads.apache.org/cassandra/ to https://archive.apache.org/dist/cassandra/? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because the requested version wasn't available in downloads.

build/m1/Dockerfile-setup Outdated Show resolved Hide resolved
Copy link
Member

@guizmaii guizmaii left a comment

Choose a reason for hiding this comment

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

@jsoref Thanks for your contribution! I asked you a few questions to better understand your changes 🙂

* Upgrade debian from jessie to bullseye
  * Switch from mysql-client to mariadb-client
  * Change from msodbcsql to msodbcsql18
  * Replace deprecated apt-key with a trusted.gpg.d entry
* Update cassandra url (and use an arg to reduce duplication)
* Upgrade cassandra to 3.11.13
* Mostly sync m1 and non-m1 Dockerfile
@jsoref jsoref force-pushed the build-m1-dockerfile-setup-cassandra-url branch from 06b24b5 to 1348998 Compare June 13, 2023 10:33
Copy link
Member

@guizmaii guizmaii left a comment

Choose a reason for hiding this comment

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

LGTM

@juliano juliano merged commit 46e3797 into zio:master Jun 13, 2023
18 checks passed
@jsoref jsoref deleted the build-m1-dockerfile-setup-cassandra-url branch June 13, 2023 11:14
joelsonoda pushed a commit to joelsonoda/zio-quill that referenced this pull request Jun 27, 2023
* Upgrade debian from jessie to bullseye
  * Switch from mysql-client to mariadb-client
  * Change from msodbcsql to msodbcsql18
  * Replace deprecated apt-key with a trusted.gpg.d entry
* Update cassandra url (and use an arg to reduce duplication)
* Upgrade cassandra to 3.11.13
* Mostly sync m1 and non-m1 Dockerfile
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.

None yet

3 participants