pgleeson commited on
Commit
b534318
·
1 Parent(s): 84655cd
Files changed (6) hide show
  1. .gitignore +1 -0
  2. Dockerfile +26 -0
  3. README.md +14 -7
  4. generate.sh +14 -0
  5. requirements.txt +10 -0
  6. runLocal.sh +1 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ /Worm3DViewer/
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ curl \
8
+ software-properties-common \
9
+ git \
10
+ libxrender1 procps libgl1-mesa-glx xvfb \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+
14
+ COPY requirements.txt ./
15
+ RUN pip3 install -r requirements.txt
16
+
17
+ RUN git clone https://github.com/openworm/Worm3DViewer.git
18
+
19
+ RUN mv Worm3DViewer/* .
20
+ #COPY Worm3DViewer/* .
21
+
22
+ EXPOSE 8501
23
+
24
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
25
+
26
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
README.md CHANGED
@@ -1,12 +1,19 @@
1
  ---
2
- title: Testapp3
3
- emoji: 🐠
4
- colorFrom: yellow
5
- colorTo: green
6
- sdk: static
 
 
 
7
  pinned: false
8
- license: mit
9
  short_description: testing
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
1
  ---
2
+ title: Testapp2
3
+ emoji: 🤖💬🪱
4
+ colorFrom: green
5
+ colorTo: gray
6
+ sdk: docker
7
+ app_port: 8501
8
+ tags:
9
+ - streamlit
10
  pinned: false
 
11
  short_description: testing
12
  ---
13
 
14
+ # Welcome to Streamlit!
15
+
16
+ Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
17
+
18
+ If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
19
+ forums](https://discuss.streamlit.io).
generate.sh ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -ex
3
+
4
+
5
+ # Set the platform flag if we're on ARM
6
+ arch=$(uname -m)
7
+ if [[ "$arch" == "arm64" || "$arch" == "aarch64" ]]; then
8
+ platform_flag="--platform linux/amd64"
9
+ else
10
+ platform_flag=""
11
+ fi
12
+
13
+
14
+ docker build $platform_flag -t streamlittest .
requirements.txt ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ altair
2
+ pandas
3
+ streamlit
4
+ vtk
5
+ pyvista
6
+ stpyvista
7
+
8
+ libneuroml
9
+ pyneuroml
10
+ ruff
runLocal.sh ADDED
@@ -0,0 +1 @@
 
 
1
+ docker run -p 4000:8501 -i -t streamlittest /bin/bash