File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ SHA ?= $(shell git describe --match=none --always --abbrev=8 --dirty)
4
4
TAG ?= $(shell git describe --tag --always --dirty)
5
5
BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
6
6
REGISTRY_AND_USERNAME := $(REGISTRY ) /$(USERNAME )
7
+ SOURCE_DATE_EPOCH ?= $(shell git log -1 --pretty=% ct)
7
8
8
9
# Sync bldr image with Pkgfile
9
10
BLDR ?= docker run --rm --volume $(PWD ) :/tools --entrypoint=/bldr \
@@ -17,6 +18,7 @@ DEST ?= _out
17
18
COMMON_ARGS := --file=Pkgfile
18
19
COMMON_ARGS += --progress=$(PROGRESS )
19
20
COMMON_ARGS += --platform=$(PLATFORM )
21
+ COMMON_ARGS += --build-arg=SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH )
20
22
21
23
TARGETS = tools
22
24
Original file line number Diff line number Diff line change 1
- # syntax = ghcr.io/talos-systems/bldr:v0.2.0-alpha.5 -frontend
1
+ # syntax = ghcr.io/talos-systems/bldr:v0.2.0-alpha.7 -frontend
2
2
3
3
# Sync bldr image with Makefile
4
4
5
5
format: v1alpha2
6
6
7
7
vars:
8
- TOOLCHAIN_IMAGE: ghcr.io/talos-systems/toolchain:v0.4 .0
8
+ TOOLCHAIN_IMAGE: ghcr.io/talos-systems/toolchain:v0.5 .0
9
9
10
10
labels:
11
11
org.opencontainers.image.source: https://github.com/talos-systems/tools
Original file line number Diff line number Diff line change 20
20
install :
21
21
- |
22
22
python3 setup.py install --prefix=/toolchain --root="/rootfs"
23
+
24
+ # Determinism: remove all bytecode
25
+ find /rootfs -type d -name __pycache__ -print0 | xargs -0 -I {} rm -rf "{}"
23
26
finalize :
24
27
- from : /rootfs
25
28
to : /
Original file line number Diff line number Diff line change 8
8
destination : openssl.tar.gz
9
9
sha256 : f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96
10
10
sha512 : ba0ef99b321546c13385966e4a607734df38b96f6ed45c4c67063a5f8d1482986855279797a6920d9f86c2ec31ce3e104dcc62c37328caacdd78aec59aa66156
11
+ env :
12
+ SOURCE_DATE_EPOCH : " 1"
11
13
prepare :
12
14
- |
13
15
mkdir openssl
You can’t perform that action at this time.
0 commit comments