@@ -9,7 +9,7 @@ RUN apt-get -y update
99RUN  apt-get -y install \
1010	git \
1111	wget
12- 
12+ RUN  apt-get -y install build-essential 
1313#  install miniforge3 for "conda"
1414#  see https://github.com/conda-forge/miniforge-images/blob/master/ubuntu/Dockerfile
1515RUN  wget https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_VERSION}/Miniforge3-${MINIFORGE_VERSION}-Linux-x86_64.sh -O /tmp/miniforge3.sh && \
@@ -33,8 +33,34 @@ RUN pip install \
3333	Click \
3434	coverage
3535
36- # RUN mkdir Git
37- # RUN git clone -b dev https://github.com/qiita-spots/qiita.git
36+ # Clone the Qiita Repo
37+ RUN  git clone -b master https://github.com/qiita-spots/qiita.git
38+ 
39+ 
40+ # We need to install necessary dependencies
41+ # as well as some extra dependencies for psycopg2 to work
42+ RUN  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
46+ RUN  export PATH=/usr/lib/postgresql/14.11/bin/:$PATH
47+ RUN  pip install psycopg2-binary
48+ RUN  pip install -e psycopg2/.
49+ 
50+ # Install pip packaages for Qiita
51+ RUN  pip install -e qiita/. --no-binary redbiom
52+ RUN  pip install "Jinja2<3.1" 
53+ 
54+ 
55+ # Configuring the Qiita Config to run inside the container
56+ RUN  sed -i 's/BASE_URL = https:\/\/ localhost:8383/BASE_URL = https:\/\/ localhost:21174\/ /'  qiita/qiita_core/support_files/config_test.cfg
57+ RUN  sed -i 's/\/ home\/ runner\/ work\/ qiita\/ qiita\/ /\/ qiita\/ /'  qiita/qiita_core/support_files/config_test.cfg
3858
59+ # Copy Bash Script to run Qiita to the container
60+ COPY  start_qiita.sh .
61+ RUN  chmod 777 start_qiita.sh
3962
40- # https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
63+ # I will leave this ENTRYPOINT here as a comment in case debugging
64+ # is necessary
65+ # ENTRYPOINT ["/bin/bash"]
66+ ENTRYPOINT  ["conda" , "run" , "-n" , "qiita" , "./start_qiita.sh" ]
0 commit comments