Skip to content

Commit 50666ea

Browse files
committed
feat(sfnb): make python packages globally installed
Signed-off-by: Frederico Araujo <[email protected]>
1 parent 58baef4 commit 50666ea

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
1515
1616
## [Unreleased]
1717

18+
## [0.5.2] - 2023-07-25
19+
20+
### Changed
21+
22+
- Make Python packages globally installed in base sfnb notebook
23+
24+
1825
## [0.5.1] - 2023-06-07
1926

2027
### Added
@@ -214,7 +221,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
214221

215222
- First release candidate with basic set of SysFlow APIs (C++ and Python).
216223

217-
[Unreleased]: https://github.com/sysflow-telemetry/sf-apis/compare/0.5.1...HEAD
224+
[Unreleased]: https://github.com/sysflow-telemetry/sf-apis/compare/0.5.2...HEAD
225+
[0.5.2]: https://github.com/sysflow-telemetry/sf-apis/compare/0.5.1...0.5.2
218226
[0.5.1]: https://github.com/sysflow-telemetry/sf-apis/compare/0.5.0...0.5.1
219227
[0.5.0]: https://github.com/sysflow-telemetry/sf-apis/compare/0.4.4...0.5.0
220228
[0.4.4]: https://github.com/sysflow-telemetry/sf-apis/compare/0.4.3...0.4.4

Dockerfile.sfnb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ COPY --chown=$NB_UID:$NB_UID py3 /tmp/build
4444
COPY --chown=$NB_UID:$NB_UID pynb/requirements.txt /tmp/build/requirements.pynb.txt
4545

4646
# Install sysflow API
47-
RUN cd /tmp/build && pip install --user -r requirements.pynb.txt && pip install --user . && rm -r /tmp/build
47+
RUN cd /tmp/build && pip install -r requirements.pynb.txt && pip install . && rm -r /tmp/build

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Supported tags and respective `Dockerfile` links
88

9-
- [`0.5.1`, `latest`](https://github.com/sysflow-telemetry/sf-apis/tree/0.5.1), [`edge`](https://github.com/sysflow-telemetry/sf-apis/tree/master), [`dev`](https://github.com/sysflow-telemetry/sf-apis/tree/dev)
9+
- [`0.5.2`, `latest`](https://github.com/sysflow-telemetry/sf-apis/tree/0.5.2), [`edge`](https://github.com/sysflow-telemetry/sf-apis/tree/master), [`dev`](https://github.com/sysflow-telemetry/sf-apis/tree/dev)
1010

1111
# Quick reference
1212

@@ -82,6 +82,12 @@ Note: If classic Jupyter notebook is preferred, run:
8282
docker run --rm -d --name sfnb -v $(pwd)/pynb:/home/jovyan/work -p 8888:8888 -e DOCKER_STACKS_JUPYTER_CMD=notebook sysflowtelemetry/sfnb
8383
```
8484

85+
Permission-specific configurations when volume mounting a directory:
86+
87+
```
88+
docker run --rm -d --name sfnb -e NB_USER=<USER> --user root -e CHOWN_HOME=yes -e NB_UID=$(id -u) -e NB_GID=$(id -g) -e CHOWN_HOME_OPTS=‘-R’ -w /home/<USER>/ -v $(pwd)/pynb:/home/<USER>/work sysflowtelemetry/sfnb
89+
```
90+
8591
# License
8692

8793
View [license information](https://github.com/sysflow-telemetry/sf-apis/blob/master/LICENSE.md) for the software contained in this image.

py3/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = sysflow-tools
3-
version = 0.5.1
3+
version = 0.5.2
44
description = SysFlow APIs and utilities
55
long_description = file:README.md
66
long_description_content_type = text/markdown

0 commit comments

Comments
 (0)