parent
82b91e7161
commit
b90ae0c18d
@ -1,6 +1,7 @@ |
||||
FROM python |
||||
WORKDIR /emitter |
||||
RUN pip install pymongo |
||||
|
||||
COPY ./emitter.py ./ |
||||
ENTRYPOINT emitter.py |
||||
CMD ["python", "./emitter.py"] |
||||
|
||||
LABEL name="emitter" |
||||
|
@ -0,0 +1,11 @@ |
||||
#!/bin/bash |
||||
mongo <<EOF |
||||
|
||||
rs.initiate({ |
||||
_id: 'rs0', |
||||
members: [ |
||||
{_id: 0, host: '127.0.0.1:27017'} |
||||
] |
||||
}) |
||||
|
||||
EOF |
Loading…
Reference in new issue