Skip to content

Commit 300d0d6

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into develop
2 parents 5c3ffe8 + 46a532f commit 300d0d6

File tree

3 files changed

+14
-47
lines changed

3 files changed

+14
-47
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: STREAMLIT_SERVER_PORT=$PORT streamlit run src/app.py
1+
web: PARAMETERS=defaults/webapp.cfg STREAMLIT_SERVER_PORT=$PORT streamlit run src/app.py

docs/contributing/app-dev.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ See [Streamlit's Getting Started guide](https://docs.streamlit.io/getting_starte
2424
```bash
2525
pipenv shell
2626
pipenv sync --dev
27-
streamlit run src/app.py
27+
PARAMETERS=defaults/webapp.cfg streamlit run src/app.py
2828
```
2929

3030
### With `conda`
@@ -33,16 +33,15 @@ streamlit run src/app.py
3333
conda env create -f environment.yml
3434
source activate chime
3535
pip install streamlit
36-
streamlit run src/app.py
36+
PARAMETERS=defaults/webapp.cfg streamlit run src/app.py
3737
```
3838

3939
### Choosing a Different Port
4040

4141
If you need to run the application on a different port than the default (8000), you can export a variable in your shell session to override it with any port number of your choice before running:
4242

4343
```bash
44-
export STREAMLIT_SERVER_PORT=1234
45-
streamlit run src/app.py
44+
STREAMLIT_SERVER_PORT=1234 PARAMETERS=defaults/webapp.cfg streamlit run src/app.py
4645
```
4746

4847
## Project Layout

k8s/app.yaml

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -25,53 +25,21 @@ spec:
2525
app: chime
2626
spec:
2727
containers:
28-
- image: docker.pkg.github.com/codeforphilly/chime/penn-chime:1.1.2
28+
- image: docker.pkg.github.com/codeforphilly/chime/penn-chime:1.1.3
2929
name: chime
30-
env:
31-
- name: GAPI_CRED_TYPE
32-
valueFrom:
33-
secretKeyRef:
34-
name: google-api-creds
35-
key: type
36-
- name: GAPI_CRED_PROJECT_ID
37-
valueFrom:
38-
secretKeyRef:
39-
name: google-api-creds
40-
key: project_id
41-
- name: GAPI_CRED_PRIVATE_KEY_ID
42-
valueFrom:
43-
secretKeyRef:
44-
name: google-api-creds
45-
key: private_key_id
46-
- name: GAPI_CRED_PRIVATE_KEY
47-
valueFrom:
48-
secretKeyRef:
49-
name: google-api-creds
50-
key: private_key
51-
- name: GAPI_CRED_CLIENT_EMAIL
52-
valueFrom:
53-
secretKeyRef:
54-
name: google-api-creds
55-
key: client_email
56-
- name: GAPI_CRED_CLIENT_ID
57-
valueFrom:
58-
secretKeyRef:
59-
name: google-api-creds
60-
key: client_id
61-
- name: GAPI_CRED_AUTH_PROVIDER_X509_CERT_URL
62-
valueFrom:
63-
secretKeyRef:
64-
name: google-api-creds
65-
key: auth_provider_x509_cert_url
66-
- name: GAPI_CRED_CLIENT_X509_CERT_URL
67-
valueFrom:
68-
secretKeyRef:
69-
name: google-api-creds
70-
key: client_x509_cert_url
7130
ports:
7231
- containerPort: 8000
7332
name: http
7433
protocol: TCP
34+
volumeMounts:
35+
- name: google-api-creds
36+
mountPath: "/mnt/google-api-creds"
37+
readOnly: true
38+
volumes:
39+
- name: google-api-creds
40+
secret:
41+
secretName: google-api-creds-json
42+
7543

7644
imagePullSecrets:
7745
- name: regcred

0 commit comments

Comments
 (0)