Skip to content

Commit b676c5b

Browse files
Impl (#10)
1 parent f6cecb9 commit b676c5b

4 files changed

Lines changed: 3 additions & 32 deletions

File tree

app/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ COPY . /app
5959
# https://stackoverflow.com/questions/27068163/python-requests-not-handling-missing-intermediate-certificate-only-from-one-mach
6060
# Append certificate to .../site-packages/certifi/cacert.pem
6161
RUN CERTIFI_CACERT_FILE=$(poetry run python -c "import certifi; print(certifi.where())") \
62-
&& [ -f "$CERTIFI_CACERT_FILE" ] && cat certs/aws_ca_intermediate_cert certs/local_dev_only_selfsigned_ca_root_cert >> $CERTIFI_CACERT_FILE
62+
&& [ -f "$CERTIFI_CACERT_FILE" ] && cat certs/local_dev_only_selfsigned_ca_root_cert >> $CERTIFI_CACERT_FILE
6363

6464
ENV HAYHOOKS_PIPELINES_DIR=/app/src/pipelines
6565

@@ -118,10 +118,6 @@ ENV PATH="/app/.venv/bin:$PATH"
118118
# to the Docker container that it's running in.
119119
ENV HOST=0.0.0.0
120120

121-
# Append certificate to .../site-packages/certifi/cacert.pem
122-
RUN CERTIFI_CACERT_FILE=$(poetry run python -c "import certifi; print(certifi.where())") \
123-
&& [ -f "$CERTIFI_CACERT_FILE" ] && cat certs/aws_ca_intermediate_cert >> $CERTIFI_CACERT_FILE
124-
125121
USER ${RUN_USER}
126122

127123
# Run the application.

app/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Based on [this documentation](https://arize.com/docs/phoenix/release-notes/04.20
1010
- Request certificate in ACM
1111
- Created CNAME record based on request result for ACM to validate request
1212
- Upon ACM validation, exported certificate from ACM; download and move to a `certs` folder
13+
- Append the contents of `certificate_chain.txt` to the end of `certificate.pem`
1314
- Copy `certs` folder to Lightsail instance: `scp -i $SSH_KEY_PEM_FILE -r certs ec2-user@${STATIC_IP}`
1415
* (For local dev environment) Create self-signed certificate for Phoenix instance
1516
```sh

app/certs/aws_ca_intermediate_cert

Lines changed: 0 additions & 26 deletions
This file was deleted.

app/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ openai = "^1.99.8"
2727
openinference-instrumentation-haystack = "^0.1.24"
2828
arize-phoenix-client = "^1.15.3"
2929
arize-phoenix-otel = "^0.13.0"
30-
certifi = "^2025.8.3"
3130

3231
[tool.poetry.group.dev.dependencies]
32+
certifi = "^2025.8.3"
3333
black = "^23.9.1"
3434
isort = "^5.12.0"
3535
mypy = "^1.5.1"

0 commit comments

Comments
 (0)