Skip to content

Commit 8443419

Browse files
authored
Merge pull request #28 from MichaelClifford/streamlit_client
update streamlit_app deployment and Containerfile
2 parents a6ef463 + 57dbf33 commit 8443419

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/src/build/Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.access.redhat.com/ubi9/python-311:latest
22
WORKDIR /app
33
RUN pip install --upgrade pip
4-
RUN pip install --no-cache-dir --upgrade streamlit
4+
RUN pip install --no-cache-dir --upgrade streamlit llama-stack-client python-dotenv
55
COPY app/src/streamlit_app.py .
66
EXPOSE 8501
77
ENTRYPOINT [ "streamlit", "run", "streamlit_app.py" ]

kubernetes/streamlit-client/deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,17 @@ spec:
3131
volumeMounts:
3232
- mountPath: /etc/tls/private
3333
name: proxy-tls
34-
- image: quay.io/michaelclifford/streamlit_client:0.1.0
34+
- image: quay.io/michaelclifford/streamlit_client:0.2.0
3535
imagePullPolicy: IfNotPresent
3636
name: streamlit-client
3737
ports:
3838
- containerPort: 8080
3939
protocol: TCP
4040
- containerPort: 8501
4141
protocol: TCP
42+
env:
43+
- name: REMOTE_BASE_URL
44+
value: 'http://llamastack-server.llama-serve.svc.cluster.local:8321'
4245
volumes:
4346
- name: proxy-tls
4447
secret:

0 commit comments

Comments
 (0)