https://github.com/mg-rast/mg-rast-infrastructure
CoreOS/Fleet Infrastructure for MG-RAST
https://github.com/mg-rast/mg-rast-infrastructure
Last synced: 5 months ago
JSON representation
CoreOS/Fleet Infrastructure for MG-RAST
- Host: GitHub
- URL: https://github.com/mg-rast/mg-rast-infrastructure
- Owner: MG-RAST
- Created: 2015-05-27T16:23:27.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T19:20:27.000Z (about 3 years ago)
- Last Synced: 2024-03-26T07:02:30.163Z (about 2 years ago)
- Language: Shell
- Homepage: http://metagenomics.anl.gov
- Size: 1.02 MB
- Stars: 3
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MG-RAST-infrastructure
## Example deployment process for a fleet service using skycore
Build image (requires docker):
```bash
export TAG=`date +"%Y%m%d.%H%M"`
docker build --tag=mgrast/m5nr-solr:${TAG} --force-rm --no-cache https://raw.githubusercontent.com/MG-RAST/myM5NR/master/solr/docker/Dockerfile
```
Upload image to Shock:
```bash
skycore push mgrast/m5nr-solr:${TAG}
or
skycore push --shock=http://shock.metagenomics.anl.gov --token=$TOKEN mgrast/m5nr-solr:${TAG}
```
Register shock node (of the new image) with etcd (requires etcd access):
```bash
curl -L http://127.0.0.1:4001/v2/keys/service_images/m5nr-solr/shock -XPUT -d value="shock.metagenomics.anl.gov/node/"
```
Please update/add the corresponding line register_docker_image_for_service_all.sh .
Note: You can read the current configuration with the same url:
```bash
curl -L http://127.0.0.1:4001/v2/keys/service_images//shock
```
And restart fleet service... either with fleetctl or fleet api..
```bash
fleetctl start xyz@1.service
```