Skip to content

Instantly share code, notes, and snippets.



Created Dec 5, 2017
What would you like to do?
RUN python /opt/C3STEM/DB/
RUN python /opt/C3STEM/DB/
RUN echo 'import pymongo\n\
import docker\n\
import os\n\
from pymongo import MongoClient\n\
from bson.objectid import ObjectId\n\
client = docker.from_env()\n\
connection = MongoClient((os.getenv('MONGO_URI'))\n\
db = connection.c3stem_database\n\
ip = ""\n\
"_id": ip,\n\
"flavor": "m1.medium",\n\
"private_IP": ip,\n\
"public_IP": ip,\n\
"key_name": "id_rsa",\n\
"type": "TRANSIENT",\n\
"status": "AVAIL",\n\
"user": "ALL",\n\
"mode": "GROUP"});' >/opt/C3STEM/DB/
RUN python /opt/C3STEM/DB/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment