fancy-policeman-6755
10/03/2023, 2:04 PMpants publish
. Under the hood, this uses Docker - which in a CI environment requires dind
, which is highly discouraged because it requires root privileges in the runners. Our DevOps team will soon forbid this - and gitlab recommends using tools like buildah
and kaniko
that don't require privileges. We've tried to find a way to get Pants to use them, but we haven't been very lucky. If anyone has any tips it'd be much appreciated!late-advantage-75311
10/03/2023, 2:45 PMlate-advantage-75311
10/03/2023, 2:48 PMlate-advantage-75311
10/03/2023, 2:57 PMkaniko
, but none seem to come to a clear general-purpose solution. Kaniko's strong recommendation to run from their own image seem tricky to mesh with the way one usually runs pants in CI, but I am quite new to this.happy-kitchen-89482
10/03/2023, 4:46 PMcurved-television-6568
10/03/2023, 5:15 PMcurved-television-6568
10/03/2023, 5:17 PMenough-analyst-54434
10/03/2023, 6:57 PMcurved-television-6568
10/03/2023, 7:42 PMcurved-television-6568
10/03/2023, 7:44 PMenough-analyst-54434
10/03/2023, 7:45 PMenough-analyst-54434
10/03/2023, 7:45 PMcurved-television-6568
10/03/2023, 7:46 PMenough-analyst-54434
10/03/2023, 7:47 PMcurved-television-6568
10/03/2023, 7:48 PMenough-analyst-54434
10/03/2023, 7:48 PMenough-analyst-54434
10/03/2023, 7:49 PMenough-analyst-54434
10/03/2023, 7:49 PMcurved-television-6568
10/03/2023, 7:49 PMDoes your $-provider let you wipe?Unlikely (as in I’m pretty sure it’s a no)
enough-analyst-54434
10/03/2023, 7:49 PMenough-analyst-54434
10/03/2023, 7:50 PMenough-analyst-54434
10/03/2023, 7:50 PMcurved-television-6568
10/03/2023, 7:51 PMenough-analyst-54434
10/03/2023, 7:57 PMjsirois@Gill-Windows:~ $ hyperfine 'echo import this | python3.12'
Benchmark 1: echo import this | python3.12
Time (mean ± σ): 22.8 ms ± 0.7 ms [User: 19.6 ms, System: 3.4 ms]
Range (min … max): 21.5 ms … 25.2 ms 117 runs
PS C:\Users\John Sirois> hyperfine 'echo import this | py -3.12'
Benchmark 1: echo import this | py -3.12
Time (mean ± σ): 34.4 ms ± 0.9 ms [User: 3.7 ms, System: 4.5 ms]
Range (min … max): 32.9 ms … 37.0 ms 72 runs
curved-television-6568
10/03/2023, 10:02 PMenough-analyst-54434
10/03/2023, 10:25 PMpy
launcher and pyenv
shims. If I use the python.exe
directly and the pyenv interpreter executable directly its more like 20ms Windows, 8ms Linux.enough-analyst-54434
10/03/2023, 10:26 PMhappy-kitchen-89482
10/04/2023, 4:02 AMhappy-kitchen-89482
10/04/2023, 4:05 AMfancy-policeman-6755
10/04/2023, 8:15 AMfancy-policeman-6755
10/04/2023, 8:16 AMcurved-television-6568
10/04/2023, 12:43 PMlate-advantage-75311
10/04/2023, 12:46 PMlate-advantage-75311
10/04/2023, 12:50 PMfancy-policeman-6755
11/01/2023, 10:34 AMfancy-policeman-6755
11/01/2023, 10:35 AMfancy-policeman-6755
11/01/2023, 10:35 AM