1- FROM  ubuntu:22 .04
1+ FROM  ubuntu:24 .04
22
33ARG  MINIFORGE_VERSION=24.1.2-0
44
55ENV  CONDA_DIR=/opt/conda
66ENV  PATH=${CONDA_DIR}/bin:${PATH}
77
88RUN  apt-get -y update
9- RUN  apt-get -y install \
9+ RUN  apt-get -y --fix-missing  install \
1010	git \
11- 	wget
11+ 	wget \
12+ 	libpq-dev \
13+ 	python3-dev \
14+ 	gcc
1215RUN  apt-get -y install build-essential
1316#  install miniforge3 for "conda"
1417#  see https://github.com/conda-forge/miniforge-images/blob/master/ubuntu/Dockerfile
@@ -31,36 +34,32 @@ RUN pip install \
3134	sphinx-bootstrap-theme \
3235	nose-timer \
3336	Click \
34- 	coverage
37+ 	coverage \
38+ 	psycopg2-binary
3539
36- # Clone  the Qiita Repo
37- # RUN git clone -b master https://github.com/qiita-spots/qiita.git
40+ # cClone  the Qiita Repo
41+ #   RUN git clone -b master https://github.com/qiita-spots/qiita.git
3842RUN  git clone -b auth_oidc https://github.com/jlab/qiita.git
3943
40- # We need to install necessary dependencies
41- # as well as some extra dependencies for psycopg2 to work
44+ #   We need to install necessary dependencies
45+ #   as well as some extra dependencies for psycopg2 to work
4246RUN  git clone https://github.com/psycopg/psycopg2.git
43- RUN  apt-get -y update
44- RUN  apt-get -y install libpq-dev python3-dev gcc
45- RUN  pg_config --version
4647RUN  export PATH=/usr/lib/postgresql/14.11/bin/:$PATH
47- RUN  pip install psycopg2-binary
4848RUN  pip install -e psycopg2/.
4949
50- # Install pip packaages for Qiita
51- RUN  pip install -e qiita/. --no-binary redbiom
52- RUN  pip install "Jinja2<3.1" 
50+ #  Install pip packaages for Qiita
51+ RUN  pip install -e qiita --no-binary redbiom
5352
5453
55- # Copy modified config file to the container
54+ #   Copy modified config file to the container
5655COPY  config_qiita_oidc.cfg .
57- RUN  chmod 777  config_qiita_oidc.cfg
56+ RUN  chmod 755  config_qiita_oidc.cfg
5857
59- # Copy Bash Script to run Qiita to the container
58+ #   Copy Bash Script to run Qiita to the container
6059COPY  start_qiita.sh .
61- RUN  chmod 777  start_qiita.sh
60+ RUN  chmod 755  start_qiita.sh
6261
63- # I will leave this ENTRYPOINT here as a comment in case debugging
64- # is necessary
65- # ENTRYPOINT  ["/bin/bash"]
62+ #   I will leave this ENTRYPOINT here as a comment in case debugging
63+ #   is necessary
64+ #  SHELL  ["/bin/bash"]
6665ENTRYPOINT  ["conda" , "run" , "-n" , "qiita" , "./start_qiita.sh" ]
0 commit comments