Skip to content

Commit e3815b0

Browse files
committed
Merge branch 'tinqiita' of github.com:jlab/qiita-keycloak into unify_trigger
2 parents c2472c0 + 626afc1 commit e3815b0

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

Images/qp-qiime2/qp-qiime2.dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ RUN wget https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_
2828

2929
# install tornado based trigger layer in base environment
3030
RUN pip install -U pip
31-
RUN conda install tornado
31+
RUN pip install tornado
3232
COPY trigger.py /trigger.py
3333

3434
# Download qiime2 yaml
3535
RUN wget --quiet https://data.qiime2.org/distro/core/qiime2-2023.5-py38-linux-conda.yml
3636

3737
# Create conda env
38-
RUN conda env create --name qiime2 -y --file qiime2-2023.5-py38-linux-conda.yml
38+
RUN conda env create --name qiime2 -y --file qiime2-2023.5-py38-linux-conda.yml \
39+
&& conda clean --all -y \
40+
&& rm -rf /opt/conda/pkgs
3941
# Make RUN commands use the new environment:
4042
# append --format docker to the build command, see https://github.com/containers/podman/issues/8477
4143
SHELL ["conda", "run", "-p", "/opt/conda/envs/qiime2", "/bin/bash", "-c"]
@@ -61,8 +63,9 @@ RUN export QP_QIIME2_DBS=/databases
6163

6264
# configuring the filtering QZAs available for QIIME 2
6365
RUN mkdir /filtering
64-
RUN wget -O /filtering/bloom-analyses.zip https://github.com/knightlab-analyses/bloom-analyses/archive/refs/heads/master.zip
65-
RUN unzip -j /filtering/bloom-analyses.zip bloom-analyses-master/data/qiime2-artifacts-for-qiita/*.qza -d /filtering/
66+
RUN wget -O /filtering/bloom-analyses.zip https://github.com/knightlab-analyses/bloom-analyses/archive/refs/heads/master.zip \
67+
&& unzip -j /filtering/bloom-analyses.zip bloom-analyses-master/data/qiime2-artifacts-for-qiita/*.qza -d /filtering/ \
68+
&& rm -f /filtering/bloom-analyses.zip
6669
RUN export QP_QIIME2_FILTER_QZA=/filtering/
6770

6871
# TODO: should the plugin get the server configuration?!

Images/test_plugin.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ else
1111
REQUESTS_CA_BUNDLE="" pip install pytest;
1212
fi;
1313

14-
# clone plugin repository
15-
git clone https://github.com/qiita-spots/${PLUGIN}
14+
if [ "qp-qiime2" != "$PLUGIN" ]; then
15+
# clone plugin repository
16+
git clone https://github.com/qiita-spots/${PLUGIN}
17+
fi;
1618

1719
# NOTE: client api reset only works when communicating with Qitta Master,
1820
# thus, you need to directly address the port of the master container. Don't
@@ -42,4 +44,8 @@ export QIITA_PORT=21174
4244
export QIITA_ROOTCA_CERT=$SSL_CERT_FILE
4345

4446
# change into plugin source directory and execute actual tests
45-
cd ${PLUGIN} && pytest
47+
if [ "qp-qiime2" == "$PLUGIN" ]; then
48+
source /opt/conda/etc/profile.d/conda.sh; conda activate /opt/conda/envs/qiime2; cd ${PLUGIN} && pytest;
49+
else
50+
cd ${PLUGIN} && pytest;
51+
fi;

0 commit comments

Comments
 (0)