Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • slapos slapos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 122
    • Merge requests 122
  • 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
  • nexedi
  • slaposslapos
  • Merge requests
  • !1188

Merged
Created Jun 02, 2022 by Thomas Leymonerie@tleymoneContributor

Custom virtual environment

  • Overview 11
  • Commits 3
  • 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
Reviewer
Request review from
Time tracking
Source branch: custom-virtual-env
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7