propogate all PIP vars to container
@@ -125,8 +125,6 @@ class DockerCreateRunner(object):
env_vars_text = " ".join(['-e %s="%s"' % (key, value)
for key, value in envs.items() if value])
- env_vars_text += " -e PIP_INDEX_URL -e PIP_EXTRA_INDEX_URL"
-
# Run the build
if pull_image:
if not self._docker_image_skip_pull:
@@ -204,6 +202,8 @@ class DockerCreateRunner(object):
ret["CPT_UPLOAD_ENABLED"] = self._upload
ret["CPT_BUILD_POLICY"] = escape_env(self._build_policy)
+ ret.update({key: value for key, value in os.environ.items() if key.startswith("PIP_")})
+
return ret
