Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
8decf1e
Edits to make API url's show up correctly in return structures.
jaredbischof Aug 15, 2013
18614d0
Edited documentation generator script to accept a site name as a comm…
jaredbischof Aug 15, 2013
d0b7a72
Edited Makefile to produce api documentation for MG-RAST and KBase on…
jaredbischof Aug 15, 2013
8b1e1d3
Merge pull request #409 from jaredbischof/api
jaredbischof Aug 15, 2013
def701b
Don't need to make api-doc target every time.
jaredbischof Aug 16, 2013
0cdeff2
Adding this where clause makes queries for metadata verbosity=full ca…
jaredbischof Mar 3, 2014
81e2a10
Merge branch 'api' of https://github.com/jaredbischof/MG-RAST into api
jaredbischof Mar 3, 2014
2237246
Merge pull request #506 from jaredbischof/api
jaredbischof Mar 3, 2014
24df089
Merge pull request #652 from MG-RAST/develop
jaredbischof Dec 9, 2014
8d0be47
Merge pull request #657 from MG-RAST/develop
teharrison Dec 22, 2014
fdbc965
Merge pull request #659 from MG-RAST/develop
teharrison Dec 22, 2014
060c81a
Merge pull request #661 from MG-RAST/develop
teharrison Dec 22, 2014
3564a37
Merge pull request #666 from MG-RAST/develop
teharrison Jan 21, 2015
036eaf2
Merge pull request #668 from MG-RAST/develop
teharrison Jan 26, 2015
4277066
Merge
jaredbischof Jan 28, 2015
2b2187d
Merge pull request #670 from jaredbischof/api
jaredbischof Jan 28, 2015
90ffd6f
Bug fix
jaredbischof Jan 28, 2015
0f90245
Merge pull request #672 from jaredbischof/api
teharrison Jan 28, 2015
c030145
Merge pull request #675 from MG-RAST/develop
teharrison Feb 3, 2015
0af2098
Merge pull request #677 from MG-RAST/develop
teharrison Feb 4, 2015
031010b
Merge pull request #695 from MG-RAST/develop
teharrison Mar 16, 2015
8be60f1
Merge pull request #698 from MG-RAST/develop
teharrison Mar 18, 2015
e70665c
Merge pull request #700 from MG-RAST/develop
teharrison Mar 18, 2015
ff0eb7a
Merge pull request #702 from MG-RAST/develop
teharrison Mar 18, 2015
1c65862
Merge pull request #704 from MG-RAST/develop
teharrison Mar 18, 2015
f9fa75f
Merge pull request #707 from MG-RAST/develop
teharrison Mar 24, 2015
512abd2
httpd.conf
sage-service-user Jun 8, 2015
e026ec8
enable rewrite module
sage-service-user Jun 8, 2015
e839303
enable cgi
sage-service-user Jun 8, 2015
23bf1ab
Dockerfile
sage-service-user Jun 8, 2015
b6fa0d8
pipeline
sage-service-user Jun 9, 2015
7c42a32
Merge pull request #721 from MG-RAST/develop
teharrison Jun 9, 2015
30846de
update dependencies
teharrison Jun 9, 2015
80abc65
Merge pull request #722 from teharrison/api
wgerlach Jun 9, 2015
9e8dc99
local version of streamingupload
teharrison Jun 9, 2015
3fad735
update dockerfile
teharrison Jun 9, 2015
372f073
Merge pull request #723 from teharrison/api
teharrison Jun 9, 2015
1736b62
fix dockerfile
teharrison Jun 9, 2015
f1ed4d1
Merge pull request #724 from teharrison/api
teharrison Jun 9, 2015
b55b2ec
Update Dockerfile
teharrison Jun 9, 2015
115b2ba
added m5nr download
teharrison Jun 9, 2015
d1766b5
Merge pull request #725 from teharrison/api
teharrison Jun 9, 2015
61f87dd
Update Dockerfile
teharrison Jun 9, 2015
227c04d
Update Dockerfile
teharrison Jun 9, 2015
889a3de
seperate script for downloading m5nr blast files
teharrison Jun 11, 2015
e872925
Merge pull request #726 from teharrison/api
teharrison Jun 11, 2015
da099d9
fix path
sage-service-user Jun 15, 2015
0f32122
fix paths
sage-service-user Jun 15, 2015
19abf4d
Update Dockerfile
teharrison Jun 15, 2015
d6ecbeb
fix path
sage-service-user Jun 15, 2015
3e357f9
documentation
sage-service-user Jun 15, 2015
cc30a6f
abs path
sage-service-user Jun 15, 2015
dd84377
rename path
wgerlach Jun 15, 2015
37d9f29
download data instructions
wgerlach Jun 15, 2015
2139763
exec
sage-service-user Jun 15, 2015
b853f69
Update README.md
wgerlach Jun 15, 2015
875e8b3
root for cert
sage-service-user Jun 16, 2015
30409ff
Merge branch 'api' of github.com:MG-RAST/MG-RAST into api
sage-service-user Jun 16, 2015
58a6617
reverse changes, use daemon
sage-service-user Jun 16, 2015
f1649c1
Merge branch 'develop' into api
teharrison Jun 25, 2015
ba54cdb
restructure docker files to allow multiple
teharrison Jun 25, 2015
55a517f
Merge pull request #730 from teharrison/api
teharrison Jun 25, 2015
a75fb57
Merge pull request #731 from MG-RAST/develop
teharrison Jun 25, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions 27 bin/download_m5nr_blast.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

# set a default values
# m5nr blast files - 2.6 GB & 11.7 GB
M5NR_VERSIONS="20100309 20131215"
TARGET="/m5nr"

for i in $M5NR_VERSIONS; do
M5NR_VERSION=$i
VERSION_DIR=$TARGET/$M5NR_VERSION
URL=ftp://ftp.metagenomics.anl.gov/data/MD5nr/${M5NR_VERSION}/md5nr.blast.tgz

echo ""
echo "TARGET = $TARGET"
echo "M5NR_VERSION = $M5NR_VERSION"
echo "URL = $URL"
echo ""

if [ -d ${VERSION_DIR} ]; then
echo "Files already exist, not downloading"
else
echo "Downloading files"
mkdir -p ${VERSION_DIR}
curl -s "${URL}" | tar -zxvf - -C ${VERSION_DIR}
fi
done
exit 0
27 changes: 27 additions & 0 deletions 27 conf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@


API server
----------


Build image:
```bash
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/Dockerfile
```

Get config: (private mcs git repo, for details see fleet unit)
```bash
if cd /home/core/mgrast-config; then git pull; else cd /home/core/ ; git clone git@git.mcs.anl.gov:mgrast-config.git ; fi
```

Download data
```bash
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 api
```

Start container:
```bash
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
```
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.