Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions component_versions/version_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ package:
swtpm: 0.10.0
xorriso: 1.5.6
numactl: 2.0.19
openssl: openssl-3.4.1
52 changes: 52 additions & 0 deletions images/packages/binaries/openssl/werf.inc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
image: {{ $.ImageType }}/{{ $.ImageName }}
final: false
fromImage: builder/scratch
import:
- image: {{ $.ImageType }}/{{ $.ImageName }}-builder
add: /out
to: /openssl
before: setup

---
{{- $version := get $.Package $.ImageName }}
{{- $gitRepoUrl := "openssl/openssl.git" }}

{{- $name := print $.ImageName "-dependencies" -}}
{{- define "$name" -}}
packages:
- gcc git make glibc-devel-static musl-devel-static
- autoconf automake libtool makeinfo
- perl-Net-SSLeay perl-IPC-Cmd perl-Pod-Html
- autoconf libtool makeinfo gettext-devel po4a
{{- end -}}

{{ $builderDependencies := include "$name" . | fromYaml }}

image: {{ $.ImageType }}/{{ $.ImageName }}-builder
final: false
fromImage: builder/alt
secrets:
- id: SOURCE_REPO
value: {{ $.SOURCE_REPO }}
shell:
beforeInstall:
- |
apt-get update && apt-get install -y \
{{ $builderDependencies.packages | join " " }}

apt-get clean
rm --recursive --force /var/lib/apt/lists/ftp.altlinux.org* /var/cache/apt/*.bin

install:
- |
OUTDIR=/out
mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config

git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src
cd /src

./Configure --prefix=/usr CC=/usr/bin/musl-gcc -static
make -j $(nproc)
make install_sw -j $(nproc) DESTDIR=$OUTDIR
strip $OUTDIR/usr/bin/openssl
11 changes: 8 additions & 3 deletions images/virt-launcher/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ packages:
- iptables
- libffi8
- nftables
- openssl
- passt
- pcre
- procps
Expand All @@ -141,8 +140,6 @@ binaries:
- /usr/bin/ocsptool
- /usr/bin/p11tool
- /usr/bin/psktool
# Openssl
- /usr/bin/openssl
# Xorriso (Creates an image of an ISO9660 filesystem)
- /usr/bin/xorriso-dd-target /usr/bin/xorrisofs /usr/bin/xorriso
# Swtpm
Expand Down Expand Up @@ -252,6 +249,13 @@ import:
to: /xorriso
before: install

# Statically builded
Comment thread
universal-itengineer marked this conversation as resolved.
- image: packages/binaries/openssl
add: /openssl
to: /relocate
after: setup
includePaths:
- usr/bin/openssl
- image: tools/coreutils
add: /
to: /relocate
Expand All @@ -261,6 +265,7 @@ import:
- usr/bin/cp
- usr/bin/sleep
- usr/bin/coreutils

- image: {{ $.ImageName }}-cbuilder
add: /bins
to: /relocate/usr/bin
Expand Down
Loading