Skip to content

Commit

Permalink
feat: Add script to build lock file with Docker (#70)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
matthewfeickert authored Oct 13, 2023
1 parent 536d0ef commit 4b88814
Show file tree
Hide file tree
Showing 5 changed files with 1,183 additions and 986 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ To build the book after setup simply run
make build
```

## Build lock file

To build a `pip-compile` lock file for local use `nox`

```
nox
```

To build a lock file for deployment use Docker to avoid differences between operating systems with

```
bash lock.sh
```

or

```
nox --session docker
```

## Past tutorials

* [Computational HEP Traineeship Summer School 2023](https://indico.cern.ch/event/1293313/) (2023-07-26)
Expand Down
2 changes: 1 addition & 1 deletion binder/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.11
python-3.10
Loading

0 comments on commit 4b88814

Please sign in to comment.