Skip to content

Commit

Permalink
Merge pull request #96 from pi-hole/ftl-build/update_mbedtls
Browse files Browse the repository at this point in the history
Update mbedtls from 3.5.0 to 3.6.1
  • Loading branch information
DL6ER authored Aug 31, 2024
2 parents 3467417 + 77d792b commit 2e6b447
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ftl-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ jobs:
target: tester
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
CONTAINER=alpine:${{ ( github.event_name == 'scheduled' || matrix.platform == 'linux/riscv64' ) && 'edge' || 'latest' }}
-
name: Push builder target and push by digest
if: github.event_name != 'pull_request'
Expand Down
10 changes: 6 additions & 4 deletions ftl-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ARG CONTAINER="alpine:edge"
ARG CONTAINER="alpine:latest"
FROM ${CONTAINER} AS builder

ARG TARGETPLATFORM
ARG readlineversion=8.2
ARG termcapversion=1.3.1
ARG nettleversion=3.9.1
ARG mbedtlsversion=3.5.0
ARG mbedtlsversion=3.6.1

RUN apk add --no-cache \
alpine-sdk \
Expand Down Expand Up @@ -37,7 +37,9 @@ RUN apk add --no-cache \
pdns-backend-sqlite3 \
pdns-recursor \
pdns-doc \
gdb
gdb \
py3-jinja2 \
py3-jsonschema

ENV STATIC true
ENV TEST true
Expand Down Expand Up @@ -70,7 +72,7 @@ RUN curl -sSL https://ftl.pi-hole.net/libraries/nettle-${nettleversion}.tar.gz |
# Build static mbedTLS with pthread support
# Disable AESNI on linux/386 asit would possibly result in an incompatible
# binary in processors lacking the AESNI and SSE2 instruction sets
RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.gz | tar -xz \
RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.bz2 | tar -xj \
&& cd mbedtls-${mbedtlsversion} \
&& sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h \
&& sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h \
Expand Down

0 comments on commit 2e6b447

Please sign in to comment.