-
Notifications
You must be signed in to change notification settings - Fork 9
Add Support for Custom Docker Image Environment Variables #45
Description
Feature Request: Support for Custom Docker Image Environment Variables
Problem Statement
Currently, when using oswitch, users cannot easily set custom environment variables for the Docker containers they are utilizing. This limitation can hinder workflows that depend on specific configurations or secrets that need to be passed into the container environment.
Proposed Solution
It would be beneficial to allow users to specify environment variables when invoking oswitch. This can be done by adding an optional flag, such as -e or --env, followed by key-value pairs of the environment variables.
Steps to Implement
- Modify the
oswitchcommand to accept an-eor--envflag. - Parse the provided environment variables and pass them to the Docker run command.
- Update the documentation to include examples of how to use this feature.
Example Usage
bash
oswitch -e MY_VAR=value -e ANOTHER_VAR=another_value biolinux
Expected Outcome
Users will be able to set custom environment variables in the Docker container, enhancing the flexibility and usability of oswitch for bioinformatics analyses. This feature will make it easier to manage configurations and secrets within the containerized environments.