Skip to content

Commit e05fd48

Browse files
committed
Install Dicey to /usr/local/bin now that temporary directory is not needed
1 parent 3ffe093 commit e05fd48

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Dockerfile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM ubuntu/apache2:2.4-20.04_beta
2-
32
# Match Docker expectations for logging like the Docker Library nginx image
43
RUN ln -sf /dev/stdout /var/log/apache2/access.log && \
54
ln -sf /dev/stderr /var/log/apache2/error.log && \
@@ -23,12 +22,8 @@ RUN apt update -y && \
2322
rm -rf /var/lib/apt/lists/* && \
2423
# python-pip is no longer included in the distribution as Python 2 is out of support
2524
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python
26-
RUN mkdir -p /opt/dicey/bin && \
27-
mkdir -p /opt/dicey/dicey_tempfiles && \
28-
chgrp www-data /opt/dicey/dicey_tempfiles && \
29-
chmod g+w /opt/dicey/dicey_tempfiles && \
30-
curl -Lo /opt/dicey/bin/dicey https://github.com/gear-genomics/dicey/releases/download/v0.1.8/dicey_v0.1.8_linux_x86_64bit && \
31-
chmod +x /opt/dicey/bin/dicey
25+
RUN curl -Lo /usr/local/bin/dicey https://github.com/gear-genomics/dicey/releases/download/v0.1.8/dicey_v0.1.8_linux_x86_64bit && \
26+
chmod +x /usr/local/bin/dicey
3227
ARG JBROWSE_VERSION=1.12.3
3328
RUN curl -LO https://jbrowse.org/releases/JBrowse-${JBROWSE_VERSION}/JBrowse-${JBROWSE_VERSION}.zip && \
3429
unzip JBrowse-${JBROWSE_VERSION}.zip && \
@@ -38,5 +33,5 @@ RUN curl -LO https://jbrowse.org/releases/JBrowse-${JBROWSE_VERSION}/JBrowse-${J
3833
RUN pip install --no-cache-dir numpy==1.11.2 pymongo==3.8.0 requests==2.22.0 && \
3934
pip3 install --no-cache-dir numpy==1.17.2 pymongo==3.8.0 requests==2.20.0 Jinja2==2.10.1
4035
COPY config-template /var/www/html/config
41-
36+
WORKDIR /var/www/html
4237
CMD service mongodb start && exec apache2-foreground

src/primer-design/classes/Dicey.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def command(self) -> List[str]:
4646

4747

4848
def run(self) -> Optional[Dict[Any]]:
49+
# Dicey does not support using standard input, symlinks, or process substitution for its inputs
4950
with NamedTemporaryFile(mode="w", encoding="utf-8") as sequences:
5051
sequences.write(f">leftPrimer\n{self.sequences[0]}\n>rightPrimer\n{self.sequences[1]}\n")
5152
sequences.flush()

0 commit comments

Comments
 (0)