Skip to content
Snippets Groups Projects
Commit 17fa4e51 authored by Amandine  PERRIN's avatar Amandine PERRIN
Browse files

Add a new docker image with only prokka

Installation script should install only the pipeline, as barrnap is not necessary to run prokka
parent e40bee61
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -38,3 +38,13 @@ build-install-barrnap: ...@@ -38,3 +38,13 @@ build-install-barrnap:
- git checkout master -- pythoncode/requirements.txt - git checkout master -- pythoncode/requirements.txt
- docker build --pull -t "$CI_REGISTRY_IMAGE:install-ubuntu-barrnapOnly" for_build/barrnap_only - docker build --pull -t "$CI_REGISTRY_IMAGE:install-ubuntu-barrnapOnly" for_build/barrnap_only
- docker push "$CI_REGISTRY_IMAGE:install-ubuntu-barrnapOnly" - docker push "$CI_REGISTRY_IMAGE:install-ubuntu-barrnapOnly"
build-install-prokka:
only:
- docker
stage: build
script:
- apk update ; apk add git
- git checkout master -- pythoncode/requirements.txt
- docker build --pull -t "$CI_REGISTRY_IMAGE:install-ubuntu-prokkaOnly" for_build/prokka_only
- docker push "$CI_REGISTRY_IMAGE:install-ubuntu-prokkaOnly"
from ubuntu:16.04
# Update apt-get packages
RUN apt-get update &&\
apt-get -y upgrade
# Install package needed
RUN apt-get install -y \
wget \
python3-pip
# Update pip
RUN pip3 install --upgrade pip
# Install prokka:
WORKDIR /tmp
RUN apt-get install -y\
libdatetime-perl \
libxml-simple-perl \
libdigest-md5-perl \
git \
default-jre \
bioperl
RUN git clone https://github.com/tseemann/prokka.git
RUN /tmp/prokka/bin/prokka --setupdb
RUN ln -s /tmp/prokka/bin/prokka /usr/local/bin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment