We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a06991d commit 0f848f7Copy full SHA for 0f848f7
repo2docker/buildpacks/repo2docker-entrypoint
@@ -1,5 +1,5 @@
1
#!/usr/bin/env python3
2
-# note: must run on Python >= 3.5
+# note: must run on Python >= 3.5, which mainly means no f-strings
3
4
# goals:
5
# - load environment variables from a login shell (bash -l)
@@ -84,8 +84,13 @@ def main():
84
"a",
85
)
86
87
+ command = sys.argv[1:]
88
+ r2d_entrypoint = os.environ.get("R2D_ENTRYPOINT")
89
+ if r2d_entrypoint:
90
+ command.insert(0, r2d_entrypoint)
91
+
92
child = subprocess.Popen(
- sys.argv[1:],
93
+ command,
94
bufsize=1,
95
env=env,
96
start_new_session=True,
0 commit comments