Skip to content

Commit 93b485f

Browse files
authored
Merge pull request #1553 from ScilifelabDataCentre/dev
New release v2.8.0 - No more Python 3.7
2 parents e83cf75 + 22173ec commit 93b485f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3773
-111
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Team Hermes are the owners of all files in this repository
2+
* @ScilifelabDataCentre/teamhermes

.github/workflows/docker-compose-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v3
2323

2424
- name: Run tests against database container
25-
run: docker-compose -f docker-compose.yml -f tests/docker-compose-test.yml up --build --exit-code-from backend
25+
run: docker compose -f docker-compose.yml -f tests/docker-compose-test.yml up --build --exit-code-from backend
2626

2727
- name: Setup upterm session
2828
uses: lhotari/action-upterm@v1

.github/workflows/publish_and_trivyscan.yml

Lines changed: 64 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
name: Publish to GHCR (+ Trivy scan)
1616
on:
1717
workflow_dispatch:
18-
branches: [dev]
1918
pull_request:
2019
push:
2120
branches:
@@ -24,7 +23,56 @@ on:
2423
release:
2524
types: [published]
2625
jobs:
26+
build_tech_overview:
27+
name: Build technical overview
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Check out the repo
31+
uses: actions/checkout@v4
32+
- name: Build tech overview PDF
33+
uses: docker://pandoc/latex:3.2
34+
with:
35+
entrypoint: /bin/sh
36+
args: >-
37+
-c "
38+
tlmgr update --self &&
39+
tlmgr install cm-super fontaxes lato pdflscape xkeyval &&
40+
updmap-sys &&
41+
pandoc
42+
--output=dds_web/static/dds-technical-overview.pdf
43+
doc/technical-overview.md
44+
"
45+
- name: Upload technical overview PDF
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: technical-overview-pdf
49+
path: dds_web/static/dds-technical-overview.pdf
50+
build_troubleshooting:
51+
name: Build troubleshooting guide
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Check out the repo
55+
uses: actions/checkout@v4
56+
- name: Build troubleshooting guide
57+
uses: docker://pandoc/latex:3.2
58+
with:
59+
entrypoint: /bin/sh
60+
args: >-
61+
-c "
62+
tlmgr update --self &&
63+
tlmgr install cm-super fontaxes lato xkeyval &&
64+
updmap-sys &&
65+
pandoc
66+
--output=dds_web/static/dds-troubleshooting.pdf
67+
doc/troubleshooting.md
68+
"
69+
- name: Upload troubleshooting PDF
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: troubleshooting-pdf
73+
path: dds_web/static/dds-troubleshooting.pdf
2774
push_to_registry:
75+
needs: [build_tech_overview, build_troubleshooting]
2876
if: github.repository == 'ScilifelabDataCentre/dds_web'
2977
name: Push image
3078
runs-on: ubuntu-latest
@@ -37,23 +85,33 @@ jobs:
3785
cancel-in-progress: true
3886
steps:
3987
- name: Check out the repo
40-
uses: actions/checkout@v3
88+
uses: actions/checkout@v4
4189
- name: Log in to Github Container Repository
42-
uses: docker/login-action@v2
90+
uses: docker/login-action@v3
4391
with:
4492
registry: ghcr.io
4593
username: ${{ github.actor }}
4694
password: ${{ secrets.GITHUB_TOKEN }}
95+
- name: Download technical overview PDF
96+
uses: actions/download-artifact@v4
97+
with:
98+
name: technical-overview-pdf
99+
path: dds_web/static/dds-technical-overview.pdf
100+
- name: Download troubleshooting PDF
101+
uses: actions/download-artifact@v4
102+
with:
103+
name: troubleshooting-pdf
104+
path: dds_web/static/dds-troubleshooting.pdf
47105
- name: Docker metadata
48106
id: meta
49-
uses: docker/metadata-action@v4
107+
uses: docker/metadata-action@v5
50108
with:
51109
images: |
52110
ghcr.io/scilifelabdatacentre/dds-backend
53111
- name: Ensure lowercase name
54112
run: echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
55113
- name: Build for scan
56-
uses: docker/build-push-action@v3
114+
uses: docker/build-push-action@v4
57115
with:
58116
file: Dockerfiles/backend.Dockerfile
59117
context: .
@@ -67,7 +125,7 @@ jobs:
67125
output: "trivy-results.sarif"
68126
severity: "CRITICAL,HIGH"
69127
- name: Upload Trivy scan results to Github Security tab
70-
uses: github/codeql-action/upload-sarif@v2
128+
uses: github/codeql-action/upload-sarif@v3
71129
with:
72130
sarif_file: "trivy-results.sarif"
73131
category: trivy-build

.github/workflows/trivy-scan-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
severity: "CRITICAL,HIGH"
3232

3333
- name: Upload Trivy scan results to GitHub Security tab
34-
uses: github/codeql-action/upload-sarif@v2
34+
uses: github/codeql-action/upload-sarif@v3
3535
with:
3636
sarif_file: "trivy-results.sarif"
3737
category: trivy

.github/workflows/trivy-scheduled-dev.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
# ---------------------------------
77
name: Trivy - ghcr image scan - dev
88
on:
9-
workflow_dispatch:
10-
branches:
11-
- dev
12-
schedule:
9+
schedule: # Since dev is the default branch of the repo don't specify
1310
- cron: "0 9,12,15 * * *"
1411
jobs:
1512
scan:
@@ -26,15 +23,15 @@ jobs:
2623
run: echo REPOSITORY_OWNER=$(echo ${{ github.repository_owner }} | tr "[:upper:]" "[:lower:]") >> $GITHUB_ENV
2724

2825
- name: Run Trivy on latest dev image
29-
uses: aquasecurity/trivy-action@0.7.1
26+
uses: aquasecurity/trivy-action@0.24.0
3027
with:
3128
image-ref: "ghcr.io/${{ env.REPOSITORY_OWNER }}/dds-backend:dev"
3229
format: "sarif"
3330
output: "trivy-results-dev.sarif"
3431
severity: "CRITICAL,HIGH"
3532

3633
- name: Upload Trivy scan results to dev branch GitHub Security tab
37-
uses: github/codeql-action/upload-sarif@v2
34+
uses: github/codeql-action/upload-sarif@v3
3835
with:
3936
sarif_file: "trivy-results-dev.sarif"
4037
category: trivy-dev

.github/workflows/trivy-scheduled-master.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
# ---------------------------------
77
name: Trivy - ghcr image scan - master
88
on:
9-
workflow_dispatch:
10-
branches:
11-
- master
129
schedule:
1310
- cron: "0 7,15 * * *"
1411
jobs:
@@ -28,15 +25,15 @@ jobs:
2825
run: echo REPOSITORY_OWNER=$(echo ${{ github.repository_owner }} | tr "[:upper:]" "[:lower:]") >> $GITHUB_ENV
2926

3027
- name: Run Trivy on latest release image
31-
uses: aquasecurity/trivy-action@0.7.1
28+
uses: aquasecurity/trivy-action@0.24.0
3229
with:
3330
image-ref: "ghcr.io/${{ env.REPOSITORY_OWNER }}/dds-backend:latest"
3431
format: "sarif"
3532
output: "trivy-results-master.sarif"
3633
severity: "CRITICAL,HIGH"
3734

3835
- name: Upload Trivy scan results to master branch GitHub Security tab
39-
uses: github/codeql-action/upload-sarif@v2
36+
uses: github/codeql-action/upload-sarif@v3
4037
with:
4138
sarif_file: "trivy-results-master.sarif"
4239
category: trivy-master

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
*.html
22
dds_web/static/css
33
dds_web/static/node_modules
4+
# Would like to enable this but prettier isn't correctly formatting grid tables for pandoc
5+
# We need grid table markdown due to having tables with multi-column/row spans
6+
doc/technical-overview.md

CHANGELOG.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
Changelog
22
==========
33

4+
.. _2.8.0:
5+
6+
2.8.0 - 2024-09-24
7+
~~~~~~~~~~~~~~~~~~~~~~~
8+
9+
- New features:
10+
- Technical Overview and Troubleshooting updated and made available as pdf.
11+
- Added Flask command for updating units quota.
12+
- Dependencies:
13+
- `certifi` from `2023.07.22` to `2024.7.4`
14+
- `requests` from `2.31.0` to `2.32.0`
15+
- `wrapt` from `1.13.3` to `1.14.0`
16+
- Dependencies (tests):
17+
- `pyfakefs` from `4.5.5` to `5.3.0`
18+
- Update base image for the docker containers from `python:3.11-alpine` to `python:3.12-alpine`
19+
420
.. _2.7.1:
521

622
2.7.1 - 2024-06-26

Dockerfiles/backend.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#############################
44

55
# Set official image -- parent image
6-
FROM python:3.11-alpine as base
6+
FROM python:3.12-alpine as base
77

88
ARG USERNAME=dds-user
99
ARG USER_UID=1001

Dockerfiles/cli.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Set official image
2-
FROM python:3.11-alpine as base
2+
FROM python:3.12-alpine as base
33

44
# Update and upgrade
55
RUN apk update && apk upgrade

0 commit comments

Comments
 (0)