-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move to Kitware/trame docker + OSMesa setup
- Loading branch information
Showing
4 changed files
with
26 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
FROM ubuntu:latest | ||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update -y && apt upgrade -y && apt install python3.10 python3.10-venv xorg tar wget xvfb libgomp1 -y | ||
RUN wget -O paraview.tar.gz 'https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.12&type=binary&os=Linux&downloadFile=ParaView-5.12.0-RC1-MPI-Linux-Python3.10-x86_64.tar.gz' ; tar xvf paraview.tar.gz | ||
ENV PATH /bin:/usr/bin:/ParaView-5.12.0-RC1-MPI-Linux-Python3.10-x86_64/bin/ | ||
RUN python3 -m venv .venv | ||
RUN source .venv/bin/activate ; pip install trame trame-vtk trame-vuetify | ||
ENV PV_VENV /.venv | ||
COPY SimpleCone.py SimpleCone.py | ||
COPY entrypoint.sh entrypoint.sh | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT [ "/bin/bash", "/entrypoint.sh" ] | ||
FROM kitware/trame:py3.10-ubuntu22.04 | ||
|
||
RUN install -d -o trame-user -g trame-user /deploy | ||
RUN apt update -y && apt install -y libosmesa6-dev | ||
|
||
ARG PV_URL='https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.12&type=binary&os=Linux&downloadFile=ParaView-5.12.0-RC1-osmesa-MPI-Linux-Python3.10-x86_64.tar.gz' | ||
RUN mkdir -p /opt/paraview && cd /opt/paraview && wget -qO- $PV_URL | tar --strip-components=1 -xzv | ||
ENV TRAME_PARAVIEW=/opt/paraview | ||
|
||
COPY --chown=trame-user:trame-user . /deploy | ||
|
||
RUN /opt/trame/entrypoint.sh build |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
trame: | ||
cmd: | ||
- /opt/paraview/bin/pvpython | ||
- /deploy/SimpleCone.py | ||
- --host | ||
- ${host} | ||
- --port | ||
- ${port} | ||
- --authKey | ||
- ${secret} | ||
- --server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
trame | ||
trame-vtk | ||
trame-vuetify |