Skip to content

Commit 9d8a44c

Browse files
committed
Refactor Dockerfile and update README to remove ZScaler certificate instructions
1 parent 5d0ddaf commit 9d8a44c

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ COPY requirements.txt .
1212
#Image runs internet requests over HTTPS – Install Certs if dev environment
1313

1414
#Add the CA Certificate to the container
15-
ADD ./ZscalerRootCerttificate.pem /usr/local/share/ca-certificates/ZscalerRootCertificate-2048-SHA256.crt
16-
RUN chmod 644 /usr/local/share/ca-certificates/ZscalerRootCertificate-2048-SHA256.crt && update-ca-certificates
17-
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
15+
#ADD ./ZscalerRootCerttificate.pem /usr/local/share/ca-certificates/ZscalerRootCertificate-2048-SHA256.crt
16+
#RUN chmod 644 /usr/local/share/ca-certificates/ZscalerRootCertificate-2048-SHA256.crt && update-ca-certificates
17+
#ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
1818

1919
# ------------ End: For run in internal LSEG ZScaler environment ------------
2020

2121
#Continue the build where the HTTPS Connections are made
2222

2323
# install dependencies to the local user directory (eg. /root/.local)
24-
RUN pip install --no-cache-dir --user -r requirements.txt
24+
#RUN pip install --no-cache-dir --user -r requirements.txt
25+
RUN pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --no-cache-dir --user -r requirements.txt
2526

2627
# Run stage
2728
FROM --platform=linux/amd64 python:${PYTHON_VERSION}-alpine3.20

README.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -260,21 +260,7 @@ Alternatively, the *mrn_trna_console_rto.py* example of the [LSEG-API-Samples/Ex
260260
CLIENT_ID=CLIENT_ID_V2
261261
CLIENT_SECRET=CLIENT_SECRET_V2
262262
```
263-
264-
2. Open a ```Dockerfile``` and remove the following lines from a file
265-
266-
```dockerfile
267-
# ------------ Begin: For run in internal LSEG ZScaler environment ------------
268-
#Image runs internet requests over HTTPS – Install Certs if dev environment
269-
270-
#Add the CA Certificate to the container
271-
ADD ./ZscalerRootCerttificate.pem /usr/local/share/ca-certificates/ZscalerRootCertificate-2048-SHA256.crt
272-
RUN chmod 644 /usr/local/share/ca-certificates/ZscalerRootCertificate-2048-SHA256.crt && update-ca-certificates
273-
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
274-
275-
# ------------ End: For run in internal LSEG ZScaler environment ------------
276-
```
277-
263+
278264
2. Go to the project folder in the console
279265
3. Run the following command in a console to build an image from a Dockerfile.
280266

0 commit comments

Comments
 (0)