Skip to content

Commit

Permalink
Publish v2023.114
Browse files Browse the repository at this point in the history
  • Loading branch information
MWedl committed Aug 9, 2023
1 parent 47937ce commit 3fe5f7f
Show file tree
Hide file tree
Showing 107 changed files with 124,160 additions and 27,120 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## v2023.114 - 2023-08-09
* Remove beta label and change versioning scheme
* Export notes as PDF
* Speed up unit tests for API
* Add CLI command to restore backups
* Sort users alphabetically in selection
* Clear user specific data from Vuex stores on logout
* Filter notifications in API when fetching instead of locally in instances
* Add datalabels plugin for Chart.js in designs
* Fix backward compatible import of templates with old format (format: templates/v1)
* Fix horizontal input field overflows in template editor
* Expose more CVSS information in designs (including CVSS version, base/temporal/environmental score, impact/exploitability subscores)
* Allow adding custom CA certificates to the docker containers during build


## v0.110 - 2023-07-31
* Multilingual templates
* Support images in templates
Expand Down
48 changes: 44 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
FROM node:16.20.0-alpine3.17 AS pdfviewer-dev
FROM node:18-alpine3.18 AS pdfviewer-dev

# Add custom CA certificates
ARG CA_CERTIFICATES=""
RUN mkdir -p /usr/local/share/ca-certificates/ && \
echo "${CA_CERTIFICATES}" | tee -a /usr/local/share/ca-certificates/custom-user-cert.crt /etc/ssl/certs/ca-certificates.crt && \
apk add --no-cache ca-certificates && \
update-ca-certificates

# Install dependencies
WORKDIR /app/packages/pdfviewer/
COPY packages/pdfviewer/package.json packages/pdfviewer/package-lock.json /app/packages/pdfviewer//
RUN npm install

FROM pdfviewer-dev AS pdfviewer
# Build JS bundle
COPY packages/pdfviewer /app/packages/pdfviewer//
RUN npm run build

Expand All @@ -13,8 +23,19 @@ RUN npm run build



FROM node:16.20.0-alpine3.17 AS frontend-dev
FROM node:18-alpine3.18 AS frontend-dev

# Add custom CA certificates
ARG CA_CERTIFICATES=""
RUN mkdir -p /usr/local/share/ca-certificates/ && \
echo "${CA_CERTIFICATES}" | tee -a /usr/local/share/ca-certificates/custom-user-cert.crt /etc/ssl/certs/ca-certificates.crt && \
apk add --no-cache ca-certificates && \
update-ca-certificates

# Required for webpack4 to work with node 18
ENV NODE_OPTIONS=--openssl-legacy-provider

# Install dependencies
WORKDIR /app/packages/markdown/
COPY packages/markdown/package.json packages/markdown/package-lock.json /app/packages/markdown/
RUN npm install
Expand All @@ -25,14 +46,18 @@ RUN npm install


FROM frontend-dev AS frontend-test
# Include source code
COPY packages/markdown/ /app/packages/markdown/
COPY frontend /app/frontend/
COPY api/src/reportcreator_api/tasks/rendering/global_assets /app/frontend/assets/rendering
COPY --from=pdfviewer /app/packages/pdfviewer/dist/ /app/frontend/static/static/pdfviewer/

# Test command
CMD npm run test


FROM frontend-test AS frontend
# Build JS bundle
RUN npm run build


Expand All @@ -41,8 +66,16 @@ RUN npm run build



FROM node:16.20.0-alpine3.17 AS rendering-dev
FROM node:18-alpine3.18 AS rendering-dev

# Add custom CA certificates
ARG CA_CERTIFICATES=""
RUN mkdir -p /usr/local/share/ca-certificates/ && \
echo "${CA_CERTIFICATES}" | tee -a /usr/local/share/ca-certificates/custom-user-cert.crt /etc/ssl/certs/ca-certificates.crt && \
apk add --no-cache ca-certificates && \
update-ca-certificates

# Install dependencies
WORKDIR /app/packages/markdown/
COPY packages/markdown/package.json packages/markdown/package-lock.json /app/packages/markdown/
RUN npm install
Expand All @@ -53,14 +86,21 @@ RUN npm install


FROM rendering-dev AS rendering
# Include source code
COPY rendering /app/rendering/
COPY packages/markdown/ /app/packages/markdown/
# Build JS bundle
RUN npm run build




FROM python:3.10.11-slim-bullseye AS api-dev
FROM python:3.10-slim-bookworm AS api-dev

# Add custom CA certificates
ARG CA_CERTIFICATES=""
RUN echo "${CA_CERTIFICATES}" | tee -a /usr/local/share/ca-certificates/custom-user-cert.crt && \
update-ca-certificates

# Install system dependencies required by weasyprint and chromium
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ Get detailed installation instructions at [Installation](https://docs.sysreptor.

![Create finding from template](https://docs.sysreptor.com/images/create_finding_from_template.gif)

![Export report as PDF](https://docs.sysreptor.com/images/export_project.gif)
![Export report as PDF](https://docs.sysreptor.com/images/export_project.gif)

<br>
The FFG is the central national funding organization and strengthens Austria's innovative power.<br>
This project is funded by the FFG.<a href="https://www.ffg.at" target="_blank">www.ffg.at</a>
Loading

0 comments on commit 3fe5f7f

Please sign in to comment.