Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • slapos slapos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 129
    • Merge requests 129
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slaposslapos
  • Merge requests
  • !1188

Custom virtual environment

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Thomas Leymonerie requested to merge tleymone/slapos:custom-virtual-env into master Jun 02, 2022
  • Overview 11
  • Commits 3
  • Pipelines 0
  • Changes 2

This MR follows https://lab.nexedi.com/nexedi/slapos/merge_requests/1135.

Currently, slapos-testing and slapos-sr-testing create a virtual testing environment.
Their virtual environments work almost like virtual-env.cfg, so I modified my macro to create a fully customized virtual environment.

I added the environment option which allows you to choose your custom environment variables.
I also added a message option that prints a string.

Finally, I modified slapos-testing and slapos-sr-testing to use my virtual-env macro instead of a hard-coded virtual environment.

The interest is that now we can know if you are in a test environment.
Moreover, you can deactivate the environment.

Edited Jul 20, 2022 by Thomas Leymonerie
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: custom-virtual-env
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7