Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Install MSSQL Dependencies by Default [#635] #664

Merged
merged 3 commits into from
Jun 17, 2022

Conversation

pattisdr
Copy link
Contributor

@pattisdr pattisdr commented Jun 16, 2022

Purpose

Have MSSQL dependencies be installed by default.

Changes

  • Have MSSQL dependencies be installed by default in the dockerfile by flipping the variable's meaning. New name is SKIP_MSSQL_INSTALLATION. If that is True, we don't install the lengthy list of MSSQL dependencies.

Checklist

  • Update CHANGELOG.md file
    • Merge in main so the most recent CHANGELOG.md file is being appended to
    • Add description within the Unreleased section in an appropriate category. Add a new category from the list at the top of the file if the needed one isn't already there.
    • Add a link to this PR at the end of the description with the PR number as the text. example: #1
  • Applicable documentation updated (guides, quickstart, postman collections, tutorial, fidesdemo, database diagram.
  • If docs updated (select one):
    • documentation complete, or draft/outline provided (tag docs-team to complete/review on this branch)
    • documentation issue created (tag docs-team to complete issue separately)
  • Good unit test/integration test coverage
  • This PR contains a DB migration. If checked, the reviewer should confirm with the author that the down_revision correctly references the previous migration before merging
  • The Run Unsafe PR Checks label has been applied, and checks have passed, if this PR touches any external services

Ticket

Fixes #635

…flipping the variable's meaning to SKIP_MSSQL_INSTALLATION.
@pattisdr pattisdr added the run unsafe ci checks Triggers running of unsafe CI checks label Jun 16, 2022
@pattisdr pattisdr marked this pull request as ready for review June 16, 2022 14:19
Copy link
Contributor

@seanpreston seanpreston left a comment

Choose a reason for hiding this comment

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

The gist is right, but we're currently installing mssql if SKIP_MSSQL_INSTALLATION is true, that needs to be false

@@ -45,7 +45,7 @@ RUN pip install -U pip \
&& pip install snowflake-connector-python --no-use-pep517 \
&& pip install -r requirements.txt -r dev-requirements.txt

RUN if [ "$MSSQL_REQUIRED" = "true" ] ; then pip install -U pip -r mssql-requirements.txt ; fi
RUN if [ "$SKIP_MSSQL_INSTALLATION" != "true" ] ; then pip install -U pip -r mssql-requirements.txt ; fi
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to change these conditionals to false

Copy link
Contributor Author

@pattisdr pattisdr Jun 16, 2022

Choose a reason for hiding this comment

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

I don't understand, I am saying if $SKIP_MSSQL_INSTALLATION is not equal to true, here, so if nothing is passed in, MSSQL is installed by default. It seemed cleaner to do it this way so by default no variable needs to be set at all.

Copy link
Contributor

Choose a reason for hiding this comment

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

My apologies, I missed the !

@seanpreston seanpreston merged commit acb3126 into main Jun 17, 2022
@seanpreston seanpreston deleted the fidesops_635_mssql_deps branch June 17, 2022 14:53
sanders41 pushed a commit that referenced this pull request Sep 22, 2022
* Have MSSQL dependencies be installed by default in the dockerfile by flipping the variable's meaning to SKIP_MSSQL_INSTALLATION.

* Update changelog.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
run unsafe ci checks Triggers running of unsafe CI checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DevOps] Ensure MSSQL deps can be installed in production
3 participants