Skip to content

Commit 786c8a1

Browse files
authored
Merge pull request #4 from kichik/fix-docker-python-version
CentOS no longer has "python" package
2 parents 557a30c + 0c171c9 commit 786c8a1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ ENV ES_VERSION 7.2.0
77
ENV KIBANA_VERSION 7.2.0
88

99
RUN yum -y install epel-release && yum clean all
10-
RUN yum -y install unzip zip curl git java-1.8.0-openjdk python python-pip && yum clean all
10+
RUN yum -y install unzip zip curl git java-1.8.0-openjdk python2 python2-pip && yum clean all
1111

12-
RUN pip install --upgrade pip
13-
RUN pip install beautifulsoup4 python-dateutil html5lib lxml tornado retrying pyelasticsearch joblib click
12+
RUN pip2 install --upgrade pip
13+
RUN pip2 install beautifulsoup4 python-dateutil html5lib lxml tornado retrying pyelasticsearch joblib click chardet
1414

1515
RUN mkdir /toolbox
1616
ADD kibana.yml /toolbox

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if [[ "$command" == "python" && "$script" == "/toolbox/elasticsearch-gmail/src/i
3636

3737
# launch it!
3838
args=( "$@" )
39-
python /toolbox/elasticsearch-gmail/src/index_emails.py ${args[@]:2}
39+
python2 /toolbox/elasticsearch-gmail/src/index_emails.py ${args[@]:2}
4040

4141
echo ""
4242
echo "MBOX email indexing is complete!"
@@ -48,7 +48,7 @@ elif [[ "$command" == "python" && "$script" == "/toolbox/csv2es/csv2es.py" ]]; t
4848
echo
4949

5050
args=( "$@" )
51-
python /toolbox/csv2es/csv2es.py ${args[@]:2}
51+
python2 /toolbox/csv2es/csv2es.py ${args[@]:2}
5252

5353
echo ""
5454
echo "CSV indexing is complete!"

0 commit comments

Comments
 (0)