Liu Xun created SUBMARINE-239:
---------------------------------

             Summary: Submarine cicd docker support Environmental variable
                 Key: SUBMARINE-239
                 URL: https://issues.apache.org/jira/browse/SUBMARINE-239
             Project: Hadoop Submarine
          Issue Type: Improvement
            Reporter: Liu Xun
            Assignee: Liu Xun
             Fix For: 0.3.0


1. Set the apache account and password in the local environment variable.
2. Pass the local environment variable to the container for execution via the 
docker startup command.
3. Avoid using plain text to pass passwords in the docker startup command


{code:java}
vi ~/.bash_profile
export JIRA_USERNAME='Your jira username'
export JIRA_PASSWORD='Your jira password'
export APACHE_ID='Your apache id' # Your apache email prefix
export APACHE_NAME='Your apache name'
{code}

cicd docker startup command



{code:java}
docker run -it -e JIRA_USERNAME="${SUBMARINE_JIRA_USERNAME}" -e 
JIRA_PASSWORD="${SUBMARINE_JIRA_PASSWORD}" -e 
APACHE_ID="${SUBMARINE_APACHE_ID}" -e APACHE_NAME="${SUBMARINE_APACHE_NAME}" 
--rm submarine-cicd
{code}







--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to