wget -c -t 10 http://www.mrao.cam.ac.uk/projects/ska/arl/algorithm-reference-library.sip.20180605.tar.gz
tar xvzf algorithm-reference-library.sip.20180605.tar.gz && rm -f algorithm-reference-library.sip.20180605.tar.gz
mkdir -p results
docker build -f dockerfiles/Dockerfile.pipeline_bind . -t dask_pipeline
docker build -f dockerfiles/Dockerfile.scheduler . -t dask_scheduler
docker build -f dockerfiles/Dockerfile.worker_bind . -t dask_worker
#docker volume create arl-results

#!/bin/bash

# Download an ARL snapshot (if needed)
if [ ! -d "algorithm-reference-library" ]; then
    wget -c -t 10 http://www.mrao.cam.ac.uk/projects/ska/arl/algorithm-reference-library.sip.20180605.tar.gz
    tar xvzf algorithm-reference-library.sip.20180605.tar.gz
    rm -f algorithm-reference-library.sip.20180605.tar.gz
fi

# Create results folder (if needed)
if [ ! -d "results" ]; then
    mkdir -p results
fi

# Build Docker images
docker build -f dockerfiles/Dockerfile.pipeline_bind . -t ical_dask_pipeline
docker build -f dockerfiles/Dockerfile.scheduler . -t ical_dask_scheduler
docker build -f dockerfiles/Dockerfile.worker_bind . -t ical_dask_worker

Tidy up of the Docker image build script.
Tidy up of the Docker image build script.

- Renamed images to be slightly more unique.
- Made downloading ARL and creating the results folder conditional.
