generated from FNNDSC/python-chrisapp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jennings Zhang
authored and
Jennings Zhang
committed
Apr 28, 2023
1 parent
bd9b52f
commit 29a4c61
Showing
5 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM docker.io/fnndsc/microminc-builder:latest as builder | ||
|
||
RUN microminc.sh \ | ||
adapt_object_mesh \ | ||
dilate_volume \ | ||
minccalc \ | ||
mincchamfer \ | ||
mincdefrag \ | ||
mincresample \ | ||
mincreshape \ | ||
param2xfm \ | ||
sphere_mesh \ | ||
surface_mask2 \ | ||
transform_objects \ | ||
inflate_to_sphere_implicit \ | ||
inflate_to_sphere \ | ||
create_tetra \ | ||
print_n_polygons \ | ||
subdivide_polygons \ | ||
interpolate_sphere \ | ||
depth_potential \ | ||
vertstats_math \ | ||
volume_object_evaluate \ | ||
adapt_metric \ | ||
/microminc | ||
|
||
# perl libraries need to be copied manually | ||
RUN cp -r /opt/CIVET/dist/perl /microminc/perl | ||
|
||
# MNI data needs to be copied manually | ||
RUN mkdir -vp /microminc/share \ | ||
&& cp -rv "$MNI_DATAPATH/surface-extraction" "/microminc/share" | ||
|
||
FROM fnndsc/conda:python3.11.2 | ||
COPY --from=builder /microminc /opt/microminc | ||
ENV PATH=/opt/microminc/bin:$PATH \ | ||
LD_LIBRARY_PATH=/opt/microminc/lib:$LD_LIBRARY_PATH \ | ||
MINC_FORCE_V2=1 MINC_COMPRESS=4 VOLUME_CACHE_THRESHOLD=-1 \ | ||
MNI_DATAPATH=/opt/microminc/share \ | ||
PERL5LIB=/opt/microminc/perl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Uses [microminc](https://github.com/FNNDSC/microminc) | ||
to create a minimized base image for `pl-fetal-surface-extract`, | ||
which copies the necessary minc-tool binaries to a multi-arch conda image. | ||
|
||
This image is built and pushed manually. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash -ex | ||
|
||
exec docker buildx build --push \ | ||
--platform linux/amd64,linux/arm64,linux/ppc64le \ | ||
--build-arg http_proxy=$http_proxy \ | ||
-t docker.io/fnndsc/pl-fetal-surface-extract:base-1 . |