Skip to content

Commit

Permalink
🐛 Restore bc in Jammy w/ FreeSurfer installation
Browse files Browse the repository at this point in the history
& double up on  until #1974 is resolved
  • Loading branch information
shnizzedy committed Aug 7, 2023
1 parent 8916070 commit 284879a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/Dockerfiles/base-ABCD-HCP.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ RUN locale-gen --purge en_US.UTF-8 \
&& echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US:en"\n' > /etc/default/locale \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& ldconfig \
&& chmod 777 / \
&& chmod 777 / /home/c-pac_user \
&& chmod 777 $(ls / | grep -v sys | grep -v proc) \
&& apt-get clean \
&& apt-get autoremove -y \
Expand Down
2 changes: 1 addition & 1 deletion .github/Dockerfiles/base-fMRIPrep-LTS.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ RUN sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
ldconfig && \
chmod 777 / && \
chmod 777 / /home/c-pac_user && \
chmod 777 $(ls / | grep -v sys | grep -v proc)

# set user
Expand Down
2 changes: 1 addition & 1 deletion .github/Dockerfiles/base-lite.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache/* \
&& find / -type f -print0 | sort -t/ -k2 | xargs -0 rdfind -makehardlinks true \
&& rm -rf results.txt \
&& ldconfig \
&& chmod 777 / \
&& chmod 777 / /home/c-pac_user \
&& chmod 777 $(ls / | grep -v sys | grep -v proc)

# set user
Expand Down
14 changes: 9 additions & 5 deletions .github/Dockerfiles/base-standard.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ LABEL org.opencontainers.image.source https://github.com/FCP-INDI/C-PAC
USER root

# Installing FreeSurfer
RUN yes | mamba install tcsh \
&& yes | mamba clean --all \
&& cp -l `which tcsh` /bin/tcsh
RUN apt-get update \
&& apt-get install --no-install-recommends -y bc \
&& yes | mamba install tcsh \
&& yes | mamba clean --all \
&& cp -l `which tcsh` /bin/tcsh
ENV FREESURFER_HOME="/usr/lib/freesurfer" \
NO_FSFAST=1
ENV PATH="$FREESURFER_HOME/bin:$PATH" \
Expand All @@ -40,11 +42,13 @@ COPY --from=FreeSurfer /usr/lib/freesurfer/ /usr/lib/freesurfer/
COPY dev/docker_data/license.txt $FREESURFER_HOME/license.txt

# link libraries & clean up
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache/* \
RUN apt-get autoremove -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache/* \
&& find / -type f -print0 | sort -t/ -k2 | xargs -0 rdfind -makehardlinks true \
&& rm -rf results.txt \
&& ldconfig \
&& chmod 777 / \
&& chmod 777 / /home/c-pac_user \
&& chmod 777 $(ls / | grep -v sys | grep -v proc)

# set user
Expand Down

0 comments on commit 284879a

Please sign in to comment.