Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image #111

Open
MMirabito opened this issue Aug 23, 2024 · 0 comments
Open

Docker image #111

MMirabito opened this issue Aug 23, 2024 · 0 comments

Comments

@MMirabito
Copy link

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="[email protected]"

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" ]
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant