Skip to content

Commit

Permalink
Merge pull request #6 from rsiminel/renew-renew
Browse files Browse the repository at this point in the history
Discussed Improvements
  • Loading branch information
mboudet authored Jul 22, 2024
2 parents c542ddd + 3cc31f8 commit 0c650fd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 175 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4

Expand Down
48 changes: 16 additions & 32 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:buster
FROM debian:bullseye

WORKDIR /root
ENV BIOMAJ_CONFIG=/root/config.yml
Expand All @@ -21,18 +21,8 @@ RUN buildDeps='gnupg2 dirmngr' \

ENV BIOMAJ_RELEASE="shahikorma-v13"

RUN git clone https://github.com/genouest/biomaj-core.git && \
git clone https://github.com/genouest/biomaj-zipkin.git && \
git clone https://github.com/genouest/biomaj-user.git && \
git clone https://github.com/genouest/biomaj-cli.git && \
git clone https://github.com/genouest/biomaj-process.git && \
git clone https://github.com/genouest/biomaj-download.git && \
git clone https://github.com/genouest/biomaj.git && \
git clone https://github.com/genouest/biomaj-daemon.git && \
git clone https://github.com/genouest/biomaj-watcher.git && \
git clone https://github.com/genouest/biomaj-ftp.git && \
git clone https://github.com/genouest/biomaj-release.git && \
git clone https://github.com/genouest/biomaj-data.git
RUN git clone https://github.com/genouest/biomaj-process.git && \
git clone https://github.com/genouest/biomaj-download.git

ENV BIOMAJ_CONFIG=/etc/biomaj/config.yml

Expand All @@ -41,7 +31,6 @@ RUN mkdir -p /var/log/biomaj
RUN pip3 install --no-cache-dir pip --upgrade && \
pip3 install --no-cache-dir setuptools --upgrade && \
pip3 install --no-cache-dir greenlet==0.4.17 && \
pip3 install --no-cache-dir gevent==1.4.0 && \
pip3 install --no-cache-dir graypy && \
pip3 install --no-cache-dir pymongo==3.12.3 && \
pip3 install --no-cache-dir redis==3.5.3 && \
Expand All @@ -55,30 +44,27 @@ RUN buildDeps="gcc python3-dev protobuf-compiler" \
&& set -x \
&& apt-get update \
&& apt-get install -y $buildDeps --no-install-recommends \
&& cd /root/biomaj-core && python3 setup.py build && pip3 install --no-cache-dir . \
&& cd /root/biomaj-zipkin && python3 setup.py build && pip3 install --no-cache-dir . \
&& cd /root/biomaj-user && python3 setup.py build && pip3 install --no-cache-dir . \
&& cd /root/biomaj-cli && python3 setup.py build && pip3 install --no-cache-dir . \
&& pip install git+https://github.com/genouest/biomaj-core.git --no-cache-dir \
&& pip install git+https://github.com/genouest/biomaj-zipkin.git --no-cache-dir \
&& pip install git+https://github.com/genouest/biomaj-user.git --no-cache-dir \
&& pip install git+https://github.com/genouest/biomaj-cli.git --no-cache-dir \
&& cd /root/biomaj-process/biomaj_process/message && protoc --python_out=. procmessage.proto \
&& cd /root/biomaj-process && python3 setup.py build && pip3 install --no-cache-dir . \
&& pip install git+https://github.com/genouest/biomaj-process.git --no-cache-dir \
&& cd /root/biomaj-download/biomaj_download/message && protoc --python_out=. downmessage.proto \
&& cd /root/biomaj-download && python3 setup.py build && pip3 install --no-cache-dir . \
&& cd /root/biomaj && python3 setup.py build && pip3 install --no-cache-dir . \
&& cd /root/biomaj-daemon && python3 setup.py build && pip3 install --no-cache-dir . \
&& cd /root/biomaj-watcher && pip3 install --no-cache-dir -r requirements.txt && pip3 install --no-cache-dir . \
&& cd /root/biomaj-ftp && python3 setup.py build && pip3 install --no-cache-dir . \
&& cd /root/biomaj-release && python3 setup.py build && pip3 install --no-cache-dir . \
&& cd /root/biomaj-data && python3 setup.py build && pip3 install --no-cache-dir . \
&& pip install git+https://github.com/genouest/biomaj-download.git --no-cache-dir \
&& pip install git+https://github.com/genouest/biomaj.git --no-cache-dir \
&& pip install git+https://github.com/genouest/biomaj-daemon.git --no-cache-dir \
&& pip install git+https://github.com/genouest/biomaj-watcher.git --no-cache-dir \
&& pip install git+https://github.com/genouest/biomaj-ftp.git --no-cache-dir \
&& pip install git+https://github.com/genouest/biomaj-release.git --no-cache-dir \
&& pip install git+https://github.com/genouest/biomaj-data.git --no-cache-dir \
&& apt-get install --no-install-recommends -y wget bzip2 ca-certificates curl git nano python3-markupsafe python3-bcrypt python3-yapsy\
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*


RUN pip3 uninstall -y gunicorn && pip3 install --no-cache-dir gunicorn==19.9.0 && \
pip3 uninstall -y greenlet && pip3 install --no-cache-dir greenlet==0.4.15 && \
pip3 uninstall -y gevent && pip3 install --no-cache-dir gevent==1.3.7

RUN pip3 uninstall -y gunicorn && pip3 install --no-cache-dir gunicorn==19.9.0


#Conda installation and give write permissions to conda folder
Expand All @@ -91,8 +77,6 @@ RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86
chmod 777 -R /opt/conda/




RUN mkdir /data /config

ENV PATH=$PATH:/opt/conda/bin
Expand Down
141 changes: 0 additions & 141 deletions Dockerfile-deb11

This file was deleted.

2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
- "8600:53"
command: agent -dev -client 0.0.0.0 -log-level info


biomaj-prometheus:
image: prom/prometheus:v1.8.2
ports:
Expand Down Expand Up @@ -98,7 +97,6 @@
- biomaj-redis
command: ["/startup.sh", "gunicorn", "-b", "0.0.0.0:5000", "--log-config", "/etc/biomaj/production.ini biomaj_user.wsgi:app"]


biomaj-download-web:
image: quay.io/genouest/biomaj
build:
Expand Down

0 comments on commit 0c650fd

Please sign in to comment.