Skip to content

Commit

Permalink
Merge pull request #2 from ymind/dev
Browse files Browse the repository at this point in the history
fix docManager config
  • Loading branch information
ymind authored Apr 21, 2017
2 parents 3a50b6b + 3c2223b commit 2bf831f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 25 deletions.
9 changes: 7 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
.idea
*.iml
.idea/
.git/
.vs/

*.md
LICENSE
*.git*

Dockerfile
*requirements.txt
oplog.timestamp
mongo-connector.json
docker-compose.yml
24 changes: 9 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM python:3.5.3-alpine
FROM python:3.6.1-alpine

ENV ETCDCTL_VERSION v3.1.3
# env
ENV ETCDCTL_VERSION v3.1.6
ENV DUMB_INIT_VERSION 1.2.0
ENV CONFD_VERSION 0.12.0-alpha3
ENV MONGO_CONNECTOR_VERSION 'mongo-connector[elastic5]'

# Native dependencies
RUN \
Expand All @@ -23,20 +24,13 @@ RUN \
&& apk del build-dependencies \
&& rm -rf ~/.cache /tmp/*

# Application dependencies
ADD requirements.txt /opt/mongo-connector/requirements.txt
RUN \
# Python dependencies
pip3 install --ignore-installed --no-cache-dir \
-r /opt/mongo-connector/requirements.txt \

# Cleanup
&& find /usr/local \
\( -type d -a -name test -o -name tests \) -exec echo rm -rf '{}' + \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec echo rm -f '{}' + \
&& rm -rf /usr/src/python ~/.cache /tmp/*

# Application dependencies
RUN pip3 install pyyaml
RUN pip3 install requests
RUN pip3 install $MONGO_CONNECTOR_VERSION

# add files
ADD . /opt/mongo-connector/
RUN chmod +x /opt/mongo-connector/run.sh

Expand Down
2 changes: 1 addition & 1 deletion conf/appconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
'timezoneAware': True,
'docManagers': [
{
'docManager': 'elastic_doc_manager',
'docManager': 'elastic2_doc_manager',
'targetURL': ES_URL,
"args": {
"clientOptions": {
Expand Down
1 change: 0 additions & 1 deletion dev-requirements.txt

This file was deleted.

6 changes: 0 additions & 6 deletions requirements.txt

This file was deleted.

0 comments on commit 2bf831f

Please sign in to comment.