-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate_physio_images.sh
28 lines (24 loc) · 1.13 KB
/
generate_physio_images.sh
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
#!/bin/sh
set -e
# Generate Dockerfile.
generate_docker() {
docker run --rm kaczmarj/neurodocker:0.5.0 generate docker \
--base=ubuntu:xenial-20161213 \
--pkg-manager=apt \
--install net-tools git \
--user=neuro \
--workdir="/home/neuro" \
--run 'mkdir /home/neuro/physioAnalysis' \
--copy . /home/neuro/physioAnalysis \
--miniconda create_env='physio' \
yaml_file='/home/neuro/physioAnalysis/environment.yml' \
--env "SHELL=/bin/bash" \
--run "curl -o /tmp/code-server.tar.gz -SL https://github.com/cdr/code-server/releases/download/3.0.2/code-server-3.0.2-linux-x86_64.tar.gz" \
--run "mkdir -p /opt/codeserver && tar -xvf /tmp/code-server.tar.gz -C /opt/codeserver --strip-components=1" \
--run '/opt/codeserver/code-server --install-extension eamodio.gitlens && /opt/codeserver/code-server --install-extension ms-python.python' \
--expose 8080 \
# --entrypoint '/opt/codeserver/code-server --auth none --host 0.0.0.0 /home/neuro/physioAnalysis'
}
generate_docker > Dockerfile
docker build -t jdkent/physio-analysis:dev .
# singularity build hbclab_nibetaseries.simg Singularity