Build image:
export TAG=`date +"%Y%m%d.%H%M"`
docker build --force-rm --no-cache --rm -t mgrast/api:${TAG} https://raw.githubusercontent.com/MG-RAST/MG-RAST/api/docker/DockerfileGet config: (private mcs git repo, for details see fleet unit)
if cd /home/core/mgrast-config; then git pull; else cd /home/core/ ; git clone git@git.mcs.anl.gov:mgrast-config.git ; fiDownload data
docker run -t -i --name api -v /media/ephemeral/api-server-data:/m5nr mgrast/api:${TAG} /MG-RAST/bin/download_m5nr_blast.sh
docker rm apiStart container:
docker run -t -i --name api -v /home/core/mgrast-config/services/api-server/.postgresql/:/root/.postgresql/:ro -v /home/core/mgrast-config/services/api-server:/api-server-conf -v /media/ephemeral/api-server-data:/m5nr -p 80:80 mgrast/api:${TAG} /usr/local/apache2/bin/httpd -DFOREGROUND -f /MG-RAST/conf/httpd.conf