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

Use virtualenv in Docker container #260

Closed
Hritik14 opened this issue Jul 28, 2021 · 1 comment
Closed

Use virtualenv in Docker container #260

Hritik14 opened this issue Jul 28, 2021 · 1 comment

Comments

@Hritik14
Copy link
Contributor

Using a virtualenv ensures that we know the exact packages of python versions made available to us. This is helps avoid surprise-ful behaviors.

This also needs to be done in scancodeIO

aalexanderr added a commit to aalexanderr/scancode.io that referenced this issue Feb 15, 2022
1. Run as non-elevated user by default
2. Install scancodeio in venv
3. Make it possible to set up UNAME/UID/GID on buildtime
4. Move scancodeio from /app to /opt to be more in-line with:
https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html
5. Set cache to /tmp as it is disposable after build
6. Upgrade pip to have less red in build log

Resolves nexB#260
Resolves nexB#399

Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
aalexanderr added a commit to aalexanderr/scancode.io that referenced this issue Feb 15, 2022
1. Run as non-elevated user by default
2. Install scancodeio in venv
3. Make it possible to set up UNAME/UID/GID on buildtime
4. Move scancodeio from /app to /opt to be more in-line with:
https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html
5. Set cache to /tmp as it is disposable after build
6. Upgrade pip to have less red in build log

Resolves nexB#260
Resolves nexB#399

Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
aalexanderr added a commit to aalexanderr/scancode.io that referenced this issue Jun 29, 2022
1. Run as non-elevated user by default
2. Install scancodeio in venv
3. Make it possible to set up UNAME/UID/GID on buildtime
4. Move scancodeio from /app to /opt to be more in-line with:
https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html
5. Set cache to /tmp as it is disposable after build
6. Upgrade pip to have less red in build log

Resolves nexB#260
Resolves nexB#399

Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
@tdruez
Copy link
Member

tdruez commented Jul 26, 2023

Implemented in #821

@tdruez tdruez closed this as completed Jul 26, 2023
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 a pull request may close this issue.

2 participants