achtman-lab / GrapeTree

GrapeTree is a fully interactive, tree visualization program, which supports facile manipulations of both tree layout and metadata. Click the first link to launch: https://achtman-lab.github.io/GrapeTree/MSTree_holder.html
https://genome.cshlp.org/content/28/9/1395
GNU General Public License v3.0
79 stars 26 forks source link

Docker image #111

Open MMirabito opened 2 months ago

MMirabito commented 2 months ago

Has anyone created a Docker image for Grapetree and can run it

I am in the middle of creating one and it's running but I cannot tell if it's correct.

When I compare the UI of my docker image to the local Win 10 install I notice that the local install does not have the "show in micros react" button.

However, that button is present in my docker and the GitHub-hosted versions See the screenshots below for a comparison of three environments.

A copy of my docker file is at the very end.

Thanks in advance, max

image image image

Is my Dockerfile correct? FROM ubuntu:22.04 LABEL maintainer="xoxo@xox.com"

RUN echo +------------------------------------------------------------+ RUN echo | OS Image Configuration, Setup Update RUN echo +------------------------------------------------------------+

RUN apt-get update

RUN apt-get install -y python3 RUN apt-get install -y python3-pip RUN apt-get install -y net-tools RUN apt-get install -y iproute2 RUN apt-get install -y inetutils-ping RUN apt-get install -y dnsutils RUN apt-get install -y sed

RUN apt-get install -y lsb-release RUN apt-get install -y --no-install-recommends dialog RUN apt-get install -y --no-install-recommends openssh-server RUN apt-get install -y ca-certificates && update-ca-certificates

RUN echo "Current directory is: $(pwd)" RUN echo "root:XXXXXX" | chpasswd COPY ./docker/config/ssh/sshd_config /etc/ssh/

COPY ./docker/config/start.sh /usr/local/bin/start.sh RUN chmod +x /usr/local/bin/start.sh

COPY ./docker/config/ssh.sh /usr/local/bin/ssh.sh RUN chmod +x /usr/local/bin/ssh.sh

RUN echo +------------------------------------------------------------+ RUN echo | Graptetree Configuration, Setup RUN echo +------------------------------------------------------------+

WORKDIR /app COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt COPY . .

RUN mkdir -p /app/binaries \ && mkdir -p /app/static

COPY binaries/edmonds-linux /app/binaries/edmonds-linux COPY binaries/fastme-2.1.5-linux32 /app/binaries/fastme-2.1.5-linux32 COPY binaries/fastme-2.1.5-linux64 /app/binaries/fastme-2.1.5-linux64 COPY binaries/rapidnj /app/binaries/rapidnj

COPY static /app/static

EXPOSE 8080 2222 ENTRYPOINT [ "/usr/local/bin/start.sh" ] `