Skip to content

Commit

Permalink
update dependencies and install process
Browse files Browse the repository at this point in the history
  • Loading branch information
tin6150 committed Mar 14, 2024
1 parent 36ee7b1 commit d203323
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ COPY . /opt/gitrepo/container/
RUN echo '' ;\
echo '==================================================================' ;\
cd /opt/gitrepo/container/ ;\
/opt/gitrepo/container/install_dependencies.sh | tee /opt/gitrepo/container/install-dependencies.OUT.TXT ;\
bash /opt/gitrepo/container/install_dependencies.sh 2>&1 | tee /opt/gitrepo/container/install-dependencies.OUT.TXT ;\
#git checkout jgrg ;\ # the github workflow is doing branch specific build, so no need to do this checkout step
git branch | tee /opt/gitrepo/container/git.branch.OUT.TXT ;\
git log --oneline --graph --decorate | tee /opt/gitrepo/container/git.lol.OUT.TXT ;\
/opt/gitrepo/container/bin/abricate --setupdb | tee /opt/gitrepo/container/abricate--setupdb.OUT.TXT ;\
/opt/gitrepo/container/bin/abricate --setupdb 2>&1 | tee /opt/gitrepo/container/abricate--setupdb.OUT.TXT ;\
cd / ;\
echo ""

Expand Down
19 changes: 14 additions & 5 deletions install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,21 @@
## install dependencies needed by abricate per
## https://github.com/tseemann/abricate?tab=readme-ov-file#installation

sudo apt-get install bioperl ncbi-blast+ gzip unzip git \
apt-get -y install bioperl ncbi-blast+ gzip unzip git \
libjson-perl libtext-csv-perl libpath-tiny-perl liblwp-protocol-https-perl libwww-perl

cd /opt/gitrepo
git clone https://github.com/tseemann/any2fasta.git
cp -p /opt/gitrepo/any2fasta/any2fasta /usr/local/bin
which any2fasta


cd /opt/gitrepo/container
cp -p /opt/gitrepo/container/bin/abricate /usr/local/bin
## git clone https://github.com/tseemann/abricate.git
alias Abricate=/opt/gitrepo/container/bin/abricate
Abricate/bin/abricate --check
Abricate/bin/abricate --setupdb
Abricate/bin/abricate ./abricate/test/assembly.fa
which abricate
abricate --check
abricate --setupdb
abricate ./abricate/test/assembly.fa

abricate --list

0 comments on commit d203323

Please sign in to comment.