-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathpypi.txt
More file actions
23 lines (16 loc) · 768 Bytes
/
pypi.txt
File metadata and controls
23 lines (16 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# this test verifies the certificate generated allows us to connect to pypi.org
exec docker build -qt pypi-updater .
dependabot update go_modules dependabot/cli --updater-image pypi-updater
stderr '200 https://pypi.org:443/'
exec docker rmi -f pypi-updater
-- Dockerfile --
FROM python:3.13-bookworm
RUN apt-get update && apt-get install -y ca-certificates curl python3 python3-pip
RUN python3 -m pip install --upgrade pip && python3 -m pip install requests
RUN useradd dependabot && chgrp dependabot /etc/ssl/certs && chmod g+w /etc/ssl/certs
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
COPY --chown=dependabot --chmod=755 run bin/run
-- run --
#!/usr/bin/env bash
python3 --version
python3 -c 'import requests; requests.get("https://pypi.org")'