Skip to content

Commit 4b88814

Browse files
feat: Add script to build lock file with Docker (#70)
* Add lock.sh which uses a specified Docker image to build the lock file in to avoid operating system differences. - Nox is hard to work with in Docker, so use a manually typed set of shell commands over attempting to use nox inside the container. - Allow for emulation of linux/amd64 if docker runtime is other platform. * Don't use full path in noxfile to avoid adding noise with local test builds. * Add docker target to noxfile. * Rebuild lock file using lock.sh. * Update binder/runtime.txt to Python 3.10 to match the same runtime as the image that contains ROOT. * Add build instructions to README.
1 parent 536d0ef commit 4b88814

File tree

5 files changed

+1183
-986
lines changed

5 files changed

+1183
-986
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,26 @@ To build the book after setup simply run
2525
make build
2626
```
2727

28+
## Build lock file
29+
30+
To build a `pip-compile` lock file for local use `nox`
31+
32+
```
33+
nox
34+
```
35+
36+
To build a lock file for deployment use Docker to avoid differences between operating systems with
37+
38+
```
39+
bash lock.sh
40+
```
41+
42+
or
43+
44+
```
45+
nox --session docker
46+
```
47+
2848
## Past tutorials
2949

3050
* [Computational HEP Traineeship Summer School 2023](https://indico.cern.ch/event/1293313/) (2023-07-26)

binder/runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.11
1+
python-3.10

0 commit comments

Comments
 (0)