Skip to content

Commit bcdd5fc

Browse files
authored
Merge pull request #27 from xcube-dev/pont-26-entrypoint
Use micromamba entry point in docker image
2 parents e63bf56 + 59f7afa commit bcdd5fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Add NDVI sample notebook
88
* Improve STAC output
99
* Tweak CWL format (#24)
10+
* Use micromamba entry point in Docker image (#26)
1011

1112
## Changes in 0.1.0
1213

xcengine/core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ def create_cwl(self, image_tag: str) -> dict[str, Any]:
148148
"DockerRequirement": {"dockerPull": image_tag}
149149
},
150150
"baseCommand": [
151-
"python3",
151+
"/usr/local/bin/_entrypoint.sh",
152+
"python",
152153
"/home/mambauser/execute.py",
153154
],
154155
"arguments": ["--batch", "--eoap"],
@@ -280,7 +281,7 @@ def _build_image(self) -> docker.models.images.Image:
280281
COPY parameters.yaml parameters.yaml
281282
COPY parameters.py parameters.py
282283
COPY util.py util.py
283-
CMD python execute.py
284+
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "python", "/home/mambauser/execute.py"]
284285
"""
285286
)
286287
with open(self.build_dir / "Dockerfile", "w") as fh:

0 commit comments

Comments
 (0)