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

feat: support pipfile on containerized cli #1288

Merged
merged 3 commits into from
Jul 27, 2020

Conversation

jasiskis
Copy link
Contributor

  • Ready for review
  • Follows CONTRIBUTING rules
  • Reviewed by Snyk internal team

What does this PR do?

It allows the user to specify a -f Pipfile when running the CLI in a containerized environment.
Also, fix issues with automatically detecting a setup.py file and installing its dependencies, but only if no -f was provided.

@jasiskis jasiskis requested review from a team as code owners July 27, 2020 11:42
@ghost ghost requested review from anthogez and MegaBean July 27, 2020 11:42
@jasiskis jasiskis changed the title Feat/support pipfile on containerized cli feat: support pipfile on containerized cli Jul 27, 2020
@snyk snyk deleted a comment from github-actions bot Jul 27, 2020
@jasiskis jasiskis force-pushed the feat/support-pipfile-on-containerized-cli branch from c88bf24 to 04a0c35 Compare July 27, 2020 11:45
docker/docker-python-entrypoint.sh Outdated Show resolved Hide resolved
pip install -U -e "${PROJECT_PATH}"
elif [ -f "${PROJECT_PATH}/Pipfile" ]; then
echo "Found Pipfile"
installPipfileDeps
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you mean? This was always executed, to install the python deps if those files are found

Copy link
Contributor

Choose a reason for hiding this comment

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

just making sure it's not something custom that i missed it's definition i didn't use pipfile beforehand :)

@jasiskis jasiskis force-pushed the feat/support-pipfile-on-containerized-cli branch from 04a0c35 to 57e860b Compare July 27, 2020 11:56
@github-actions
Copy link
Contributor

github-actions bot commented Jul 27, 2020

Expected release notes (by @andremidea)

features:
support setup.py automatic detection on containerized cli (57c9b00)
support specifying Pipfile on containerized cli (382e758)

fixes:
python autodetection in containerized env (57e860b)

  • I hereby acknowledge these release notes are 🥙 AWESOME 🥙

Copy link
Contributor

@orsagie orsagie left a comment

Choose a reason for hiding this comment

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

Boost stamp of approval

@jasiskis jasiskis merged commit f35f39e into master Jul 27, 2020
@jasiskis jasiskis deleted the feat/support-pipfile-on-containerized-cli branch July 27, 2020 14:04
@snyksec
Copy link

snyksec commented Jul 27, 2020

🎉 This PR is included in version 1.367.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants