-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·46 lines (41 loc) · 1.37 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#flywheel/xcpengine
############################
# Get the xcpengine algorithm from DockerHub
FROM pennbbl/xcpengine:1.2.3
MAINTAINER Ted Satterthwaite <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
ENV XCPENGINE_VERSION 1.2.3
RUN apt-get update && apt-get -y install \
jq \
tar \
zip \
build-essential
############################
# Install the Flywheel SDK
RUN apt-get -y install \
autoconf \
automake \
libtool \
python-dev
RUN pip install flywheel-sdk numpy pandas scipy
RUN apt-get -y install jq && apt-get update
############################
# Make directory for flywheel spec (v0)
ENV FLYWHEEL /flywheel/v0
ENV USER whoami
RUN mkdir -p ${FLYWHEEL}
COPY run ${FLYWHEEL}/run
COPY manifest.json ${FLYWHEEL}/manifest.json
COPY generate_taskfsfmodel.py ${FLYWHEEL}/generate_taskfsfmodel.py
COPY taskfslmodel.py ${FLYWHEEL}/taskfslmodel.py
COPY template.fsf ${FLYWHEEL}/template.fsf
COPY create_archive_fw_heudiconv.py ${FLYWHEEL}/create_archive_fw_heudiconv.py
ENTRYPOINT ["/flywheel/v0/run"]
ADD https://raw.githubusercontent.com/PennBBL/xcpEngine/master/Dockerfile ${FLYWHEEL}/xcpengine_${XCPENGINE_VERSION}_Dockerfile
RUN chmod +x ${FLYWHEEL}/*
ENV JQPATH /usr/bin/
############################
# ENV preservation for Flywheel Engine
RUN env -u HOSTNAME -u PWD | \
awk -F = '{ print "export " $1 "=\"" $2 "\"" }' > ${FLYWHEEL}/docker-env.sh
WORKDIR /flywheel/v0