@platforma-open/milaboratories.software-clustcr 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/main/archive_linux-aarch64.json +1 -0
- package/dist/artifacts/main/archive_linux-x64.json +1 -0
- package/dist/artifacts/main/archive_macosx-aarch64.json +1 -0
- package/dist/artifacts/main/archive_macosx-x64.json +1 -0
- package/dist/artifacts/main/docker_x64.json +1 -0
- package/dist/docker/Dockerfile-main +45 -0
- package/dist/tengo/software/main.sw.json +1 -0
- package/package.json +38 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"conda","platform":"linux-aarch64","registryURL":"https://bin.pl-open.science/","registryName":"platforma-open","remoteArtifactLocation":"software/platforma-open/milaboratories.software-clustcr/main/0.1.0-{os}-{arch}.tgz","uploadPath":"software/platforma-open/milaboratories.software-clustcr/main/0.1.0-linux-aarch64.tgz"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"conda","platform":"linux-x64","registryURL":"https://bin.pl-open.science/","registryName":"platforma-open","remoteArtifactLocation":"software/platforma-open/milaboratories.software-clustcr/main/0.1.0-{os}-{arch}.tgz","uploadPath":"software/platforma-open/milaboratories.software-clustcr/main/0.1.0-linux-x64.tgz"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"conda","platform":"macosx-aarch64","registryURL":"https://bin.pl-open.science/","registryName":"platforma-open","remoteArtifactLocation":"software/platforma-open/milaboratories.software-clustcr/main/0.1.0-{os}-{arch}.tgz","uploadPath":"software/platforma-open/milaboratories.software-clustcr/main/0.1.0-macosx-aarch64.tgz"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"conda","platform":"macosx-x64","registryURL":"https://bin.pl-open.science/","registryName":"platforma-open","remoteArtifactLocation":"software/platforma-open/milaboratories.software-clustcr/main/0.1.0-{os}-{arch}.tgz","uploadPath":"software/platforma-open/milaboratories.software-clustcr/main/0.1.0-macosx-x64.tgz"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"docker","platform":"linux-x64","remoteArtifactLocation":"containers.pl-open.science/milaboratories/pl-containers:platforma-open.milaboratories.software-clustcr.main.6950299fa2ff","entrypoint":["micromamba","run","--prefix","/conda-env"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
FROM ubuntu:22.04 AS build
|
|
2
|
+
|
|
3
|
+
RUN apt-get update && \
|
|
4
|
+
apt-get install --yes --no-install-recommends \
|
|
5
|
+
ca-certificates \
|
|
6
|
+
wget \
|
|
7
|
+
&& apt-get clean \
|
|
8
|
+
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
|
|
9
|
+
|
|
10
|
+
RUN wget \
|
|
11
|
+
-O /usr/bin/yq \
|
|
12
|
+
'https://github.com/mikefarah/yq/releases/download/v4.48.1/yq_linux_amd64' \
|
|
13
|
+
&& chmod a+x /usr/bin/yq
|
|
14
|
+
|
|
15
|
+
ENV MAMBA_ROOT_PREFIX=/app/conda-env-data
|
|
16
|
+
ENV CONDA_PKGS_DIRS=/app/conda-env-data/pkgs
|
|
17
|
+
|
|
18
|
+
# Copy package source
|
|
19
|
+
COPY . /app
|
|
20
|
+
|
|
21
|
+
ADD https://github.com/mamba-org/micromamba-releases/releases/download/2.3.2-0/micromamba-linux-64 /app/micromamba
|
|
22
|
+
RUN chmod +x /app/micromamba \
|
|
23
|
+
&& ln -s /app/micromamba /usr/bin/micromamba
|
|
24
|
+
|
|
25
|
+
RUN micromamba env create --prefix /conda-env --yes --file /app/tmp-env-spec-88344b62d74b9307.yaml \
|
|
26
|
+
&& micromamba env export --prefix /conda-env \
|
|
27
|
+
| yq eval 'del(.prefix)' \
|
|
28
|
+
| yq eval '.channels = (.channels // [])' \
|
|
29
|
+
| yq eval '.dependencies = (.dependencies // [])' \
|
|
30
|
+
> /app/frozen-spec.yaml \
|
|
31
|
+
&& rm /app/tmp-env-spec-88344b62d74b9307.yaml
|
|
32
|
+
|
|
33
|
+
# In case original spec file has any secrets (no idea if it can) - we better re-export full environment to keep only frozen spec.
|
|
34
|
+
FROM ubuntu:22.04 AS app
|
|
35
|
+
|
|
36
|
+
ENV MAMBA_ROOT_PREFIX=/app/conda-env-data
|
|
37
|
+
ENV CONDA_PKGS_DIRS=/app/conda-env-data/pkgs
|
|
38
|
+
|
|
39
|
+
COPY --from=build /app /app
|
|
40
|
+
RUN ln -s /app/micromamba /usr/bin/micromamba
|
|
41
|
+
|
|
42
|
+
# Imitate the same procedure of environment restoration as we do on host in binary execution mode.
|
|
43
|
+
RUN micromamba env create --prefix /conda-env --yes --offline --override-channels --file /app/frozen-spec.yaml
|
|
44
|
+
|
|
45
|
+
ENTRYPOINT ["micromamba", "run", "--prefix", "/conda-env"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"@platforma-open/milaboratories.software-clustcr:main","binary":{"type":"conda","registry":"platforma-open","package":"software/platforma-open/milaboratories.software-clustcr/main/0.1.0-{os}-{arch}.tgz","cmd":["python"],"envVars":[],"micromamba-version":"2.3.2-0","conda-root-dir":"conda-env-data","spec":"frozen-spec.yaml"},"docker":{"tag":"containers.pl-open.science/milaboratories/pl-containers:platforma-open.milaboratories.software-clustcr.main.6950299fa2ff","entrypoint":["micromamba","run","--prefix","/conda-env"],"cmd":["python"],"pkg":"/app"}}
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@platforma-open/milaboratories.software-clustcr",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "clusTCR packed for Platforma Backend",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist/"
|
|
7
|
+
],
|
|
8
|
+
"block-software": {
|
|
9
|
+
"entrypoints": {
|
|
10
|
+
"main": {
|
|
11
|
+
"conda": {
|
|
12
|
+
"artifact": {
|
|
13
|
+
"registry": "platforma-open",
|
|
14
|
+
"roots": {
|
|
15
|
+
"linux-x64": "./build/linux-x64",
|
|
16
|
+
"linux-aarch64": "./build/linux-aarch64",
|
|
17
|
+
"macosx-x64": "./build/macosx-x64",
|
|
18
|
+
"macosx-aarch64": "./build/macosx-aarch64"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"cmd": [
|
|
22
|
+
"python"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"license": "UNLICENSED",
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@platforma-sdk/package-builder": "3.11.6"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"cleanup": "rm -rf ./pkg-*.tgz && rm -rf ./dist/ && rm -rf ./build/",
|
|
34
|
+
"build": "pl-pkg build",
|
|
35
|
+
"after-prebuild": "pl-pkg publish packages",
|
|
36
|
+
"before-publish": "pl-pkg prepublish"
|
|
37
|
+
}
|
|
38
|
+
}
|