diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 163ba75768d3f510608abe4428447a39f1b02c57..349aa33f1790259f079f6e6627e3ecc792129efd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,3 +38,13 @@ build-install-barrnap: - git checkout master -- pythoncode/requirements.txt - docker build --pull -t "$CI_REGISTRY_IMAGE:install-ubuntu-barrnapOnly" for_build/barrnap_only - 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" diff --git a/for_build/prokka_only/Dockerfile b/for_build/prokka_only/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..54a54a40616f16c2783458f8f83bf4194d37deab --- /dev/null +++ b/for_build/prokka_only/Dockerfile @@ -0,0 +1,26 @@ +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