[JIRA] (OVIRT-2359) Set environment variable in jenkins user's env to inidicate it's a container

[ https://ovirt-jira.atlassian.net/browse/OVIRT-2359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37588#comment-37588 ] Daniel Belenky commented on OVIRT-2359: --------------------------------------- Solution I've implemented is adding another systemd unit that reads environment from /proc/1/environ, filters some irrelevant vars such as HOME and PATH, formats the data and writes the rest to /etc/environment. Then /etc/environment is used as EnvironmentFile for systemd which then loads jenkins-jnlp-agent. The current containers startup script gets (via CLI) and a list of agent secrets. I've created OVIRT-2364 to automatically register agents and generate the names.
Set environment variable in jenkins user's env to inidicate it's a container ----------------------------------------------------------------------------
Key: OVIRT-2359 URL: https://ovirt-jira.atlassian.net/browse/OVIRT-2359 Project: oVirt - virtualization made easy Issue Type: Task Reporter: Daniel Belenky Assignee: infra
We need to set a variable under the jenkins user that will indicate we're running inside a container.
-- This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100090)
participants (1)
-
Daniel Belenky (oVirt JIRA)