Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nightly + full build pipelines #186

Merged
merged 4 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN apt-get update \

# Install assemblyline dependencies, but don't keep assemblyline
RUN pip install --user assemblyline && pip uninstall assemblyline -y
RUN chmod 750 /root/.local/lib/python3.9/site-packages
RUN chmod 750 /root/.local/lib/python3.11/site-packages
2 changes: 1 addition & 1 deletion pipelines/full-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ stages:
- task: UsePythonVersion@0
displayName: Set python version
inputs:
versionSpec: 3.9
versionSpec: 3.11
- script: |
set -ex # Echo commands before they are run

Expand Down
7 changes: 2 additions & 5 deletions root-image/common.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
FROM python:3.9-slim-buster AS base
FROM python:3.11-slim-bookworm AS base

# Upgrade dist packages
RUN apt-get update && apt-get -yy upgrade && rm -rf /var/lib/apt/lists/*

# Get required apt packages
RUN apt-get update \
&& apt-get install -yy libffi6 libfuzzy2 libmagic1 \
&& apt-get install -yy libffi8 libfuzzy2 libmagic1 git\
&& rm -rf /var/lib/apt/lists/*

# Patch Python 3.9 for FIPS - https://github.com/python/cpython/issues/95231 (Not necessary for Python 3.10+)
RUN sed -i -e 's/if e.errno == errno.EINVAL:/if e.errno in {errno.EINVAL, errno.EPERM, errno.ENOSYS}:/g' /usr/local/lib/python3.9/crypt.py