readme
This commit is contained in:
parent
ee7112e7c4
commit
b8e46f1e0f
1 changed files with 38 additions and 0 deletions
38
readme.md
Normal file
38
readme.md
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
# repro-run
|
||||||
|
|
||||||
|
un coso para correr cosas en chroots reproducibles pero cacheando cosas.
|
||||||
|
|
||||||
|
## ej
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# ./test
|
||||||
|
#!/bin/sh -xe
|
||||||
|
apk add --quiet git go
|
||||||
|
git clone --quiet file:///src repo
|
||||||
|
cd repo
|
||||||
|
go build .
|
||||||
|
|
||||||
|
apk add --quiet file
|
||||||
|
file repro-run
|
||||||
|
```
|
||||||
|
|
||||||
|
```sh
|
||||||
|
echo '{"Command": "/src/test"}' | go run .
|
||||||
|
```
|
||||||
|
|
||||||
|
genera
|
||||||
|
|
||||||
|
```
|
||||||
|
2023/01/22 00:32:45 /work = /tmp/repro-run-4028454357
|
||||||
|
2023/01/22 00:32:45 --bind ./rootfs / --ro-bind . /src --dev-bind /dev /dev --bind /tmp/repro-run-4028454357 /work --chdir /work --bind cache/_var_cache_apk /var/cache/apk
|
||||||
|
+ apk add --quiet git go
|
||||||
|
ERROR: 758 errors updating directory permissions
|
||||||
|
bbsuid: Only root can install symlinks
|
||||||
|
+ git clone --quiet file:///src repo
|
||||||
|
+ cd repo
|
||||||
|
+ go build .
|
||||||
|
+ apk add --quiet file
|
||||||
|
bbsuid: Only root can install symlinks
|
||||||
|
+ file repro-run
|
||||||
|
repro-run: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=Ds354L3Z-127ya83OGr8/D1vPP7ExKC1kRQQ14YOr/RXu7GdL7TMRmIobOC4Db/lFw9F-ua1e8ZR95SrZmZ, with debug_info, not stripped
|
||||||
|
```
|
Loading…
Reference in a new issue