File tree Expand file tree Collapse file tree 5 files changed +963
-669
lines changed Expand file tree Collapse file tree 5 files changed +963
-669
lines changed Original file line number Diff line number Diff line change 1
1
os : linux
2
2
language : python
3
3
python :
4
- - " 3.9.7 " # Matches version in Dockerfiles/Dockerfile.dss
4
+ - " 3.9.18 " # Matches version in Dockerfiles/Dockerfile.dss
5
5
dist : bionic
6
6
group : beta
7
7
services :
Original file line number Diff line number Diff line change 1
1
# Stage 1, create base
2
2
# Reference from https://github.com/pypa/pipenv/issues/3160#issuecomment-510951442
3
3
4
- FROM python:3.9.7 -slim AS base
4
+ FROM python:3.9.18 -slim AS base
5
5
6
6
ENV PYROOT /pyroot
7
7
ENV PYTHONUSERBASE $PYROOT
8
8
ENV PATH $PATH:$PYROOT/bin
9
9
10
+ RUN pip install pip==23.3
11
+
10
12
RUN apt-get update && \
11
13
apt-get upgrade -y && \
12
14
apt-get install -y \
@@ -23,7 +25,6 @@ FROM base AS builder
23
25
RUN pip install pipenv==2018.11.26
24
26
COPY Pipfile* ./
25
27
RUN PIP_USER=1 PIP_IGNORE_INSTALLED=1 pipenv install --system --deploy --ignore-pipfile
26
-
27
28
# Stage 3
28
29
FROM base
29
30
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ setup: setup-trivy setup-cosign setup-deploy-tools
97
97
98
98
.PHONY : start-local-test-db
99
99
start-local-test-db : stop-local-test-db
100
- docker run -p 54320:5432 -d --name $(TEST_DB_CONTAINER_NAME ) -e POSTGRES_HOST_AUTH_METHOD=trust postgres:10
100
+ docker run -p 54320:5432 -d --name $(TEST_DB_CONTAINER_NAME ) -e POSTGRES_HOST_AUTH_METHOD=trust postgres:11
101
101
@echo " username/password: postgres/postgres"
102
102
103
103
.PHONY : stop-local-test-db
@@ -192,7 +192,7 @@ quality-images:
192
192
# Aggregate return code to allow scan all images before existing
193
193
rc=0; \
194
194
for image in $( shell skaffold build -q --dry-run | jq -r .builds[].tag) ; do \
195
- $(TRIVY ) image --exit-code 1 --ignore-unfixed $$ {image}; \
195
+ $(TRIVY ) image --exit-code 1 --skip-dirs " /pyroot/lib/python3.9/site-packages " -- ignore-unfixed $$ {image}; \
196
196
rc=$$((rc+$$? ) ); \
197
197
done ; \
198
198
exit $$ {rc}
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ url = "https://pypi.org/simple"
4
4
verify_ssl = true
5
5
6
6
[dev-packages ]
7
- pytest = " ==7.2.0 "
7
+ pytest = " ==8.1.1 "
8
8
responses = " ==0.20.0"
9
9
mock = " ==4.0.3"
10
10
unittest2 = " ==1.1.0"
11
- pre-commit = " ==2.18.1 "
11
+ pre-commit = " ==3.7.0 "
12
12
flake8 = " ==4.0.1"
13
13
autopep8 = " ==1.6.0"
14
- pipenv = " ==2023.4.20 "
14
+ pipenv = " ==2023.12.1 "
15
15
pep8-naming = " ==0.12.1"
16
16
pytest-cov = " ==3.0.0"
17
17
@@ -22,20 +22,21 @@ jaeger-client = "==4.8.0"
22
22
prometheus-client = " ==0.14.0"
23
23
psycopg2-binary = " ==2.9.3"
24
24
click = " ==8.1.2"
25
- flask = " ==2.1.1 "
25
+ flask = " ==2.2.5 "
26
26
backoff = " ==1.11.1"
27
27
boxsdk = {extras = [" jwt" ],version = " ==3.2.0" }
28
- cryptography = " ==39 .0.1 "
28
+ cryptography = " ==42 .0.5 "
29
29
hvac = " ==0.11.2"
30
30
asyncio = " ==3.4.3"
31
- requests = " ==2.27.1 "
31
+ requests = " ==2.31.0 "
32
32
gunicorn = " ==20.1.0"
33
- gevent = " ==21.12.0 "
34
- pyjwt = " ==2.4 .0"
33
+ gevent = " ==23.9.1 "
34
+ pyjwt = " ==2.5 .0"
35
35
ibm-db = " ==3.1.1"
36
- detect-secrets = {ref = " 0.13.1+ibm.56.dss" , git = " https://github.com/ibm/detect-secrets.git" }
37
- pytest = " ==7.2.0"
38
- Werkzeug = " == 2.2.3"
36
+ detect-secrets = {ref = " 0.13.1+ibm.62.dss" , git = " https://github.com/ibm/detect-secrets.git" }
37
+ pytest = " ==8.1.1"
38
+ Werkzeug = " == 2.3.8"
39
+ pre-commit = " ==3.7.0"
39
40
40
41
[requires ]
41
42
python_version = " 3.9"
You can’t perform that action at this time.
0 commit comments