Skip to content

Commit

Permalink
Updated docker for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaSquad committed Dec 13, 2021
1 parent 03cb3e5 commit 231a9dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
FROM ubuntu:16.04
FROM ubuntu:20.04

RUN apt update
RUN apt install -y python2.7 python-pip perl
RUN apt install -y python3 python3-pip perl libncursesw5
RUN perl -MCPAN -e 'install XML::Simple'
ADD requirements.txt /requirements.txt
RUN cat requirements.txt | xargs -n 1 pip install
ADD *.py /usr/local/bin/
ADD scripts /usr/local/bin/scripts
ADD tools /usr/local/bin/tools
ADD defaults /usr/local/bin/defaults
ADD ete2.patch /
RUN patch /usr/local/lib/python2.7/dist-packages/ete2/ncbi_taxonomy/ncbiquery.py ete2.patch
WORKDIR /usr/local/bin
ENTRYPOINT ["python"]
ENTRYPOINT ["python3"]
4 changes: 2 additions & 2 deletions fastaanonymizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ def get_command(
anonymizer_args.append("-log '{}'".format(self._logfile))
fastastreamer_args.append("-log '{}'".format(self._logfile))

command = continuous_random_byte_stream + "python '{fastastreamer}' {fastastreamer_args}".format(
command = continuous_random_byte_stream + "python3 '{fastastreamer}' {fastastreamer_args}".format(
fastastreamer=self._fastastreamer,
fastastreamer_args=" ".join(fastastreamer_args),
)
command += " | {shuf} {shuffle_args}".format(
shuf=" ".join(shuffle),
shuffle_args=" ".join(shuffle_args),
)
command += " | tr -d '\\000' | python '{anonymizer}' {anonymizer_args}".format(
command += " | tr -d '\\000' | python3 '{anonymizer}' {anonymizer_args}".format(
anonymizer=self._anonymizer,
anonymizer_args=" ".join(anonymizer_args)
)
Expand Down

0 comments on commit 231a9dd

Please sign in to comment.