Commit Graph

3968 Commits

Author SHA1 Message Date
Ayaz Salikhov
4d2c81cd88 Update update_wiki.py: fix for pattern download, build timestamps, additional checks 2024-01-14 14:27:33 +04:00
Ayaz Salikhov
c6c0a947ed Remove redundant step 2024-01-13 18:57:17 +04:00
Ayaz Salikhov
fccea73332 Get rid of separate download-manifests action 2024-01-13 18:57:17 +04:00
Ayaz Salikhov
cc3aa43c46 Update actions/download-artifact and actions/upload-artifact to v4 (#2061) 2024-01-13 18:57:17 +04:00
Ayaz Salikhov
e55bb93ff4 Update tag example 2024-01-08 11:03:49 +04:00
Ayaz Salikhov
d9f41655fe Simplify README.md 2024-01-08 10:58:58 +04:00
Ayaz Salikhov
2a9c7dbc26 Update the way we install micromamba (#2077) 2024-01-07 18:33:54 +04:00
Ayaz Salikhov
6e80c1246f Fix comment about setup_julia.py file 2024-01-07 15:55:41 +04:00
Ayaz Salikhov
e84bfdf4ae Add logger to setup_julia and setup_spark 2024-01-07 15:55:41 +04:00
Ayaz Salikhov
c294e9e2d9 Automatically install latest spark version (#2075)
* Automatically install latest pyspark version

* Better text

* Do not use shutil to keep behaviour

* Make setup_script cwd independent

* Use _get_program_version to calculate spark version

* Update setup_spark.py reqs

* Update setup_spark.py

* Add info about HADOOP_VERSION

* Add customization back

* Better text

* Specify build args when they are actually needed

* Better text

* Better code

* Better code

* Better text

* Get rid of warning

* Improve code

* Remove information about checksum

* Better text
2024-01-07 10:01:23 +04:00
Ayaz Salikhov
c1229303d0 Rename some tests in test_healthcheck.py 2024-01-07 00:15:38 +04:00
Hugo Hromic
2a6a115a7c [FAST_BUILD] Fix Docker healthcheck when using custom runtime dirs (#2074)
* Fix Docker healthcheck when using custom runtime dirs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Use a writable directory for healthcheck test

* Allow missing import for `jupyter_core` in mypy

* Set HOME according to NB_USER in healthcheck script

* Add custom runtime dir an NB_USER case to healthcheck test

* Call `jupyter --runtime-dir` directly in healthcheck script

* Update docker_healthcheck.py

* Update docker_healthcheck.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
2024-01-07 00:13:21 +04:00
Ayaz Salikhov
48b189e585 Add a comment for choosing latest_stable_version for Julia 2024-01-06 21:41:53 +04:00
John Muchovej
c515e883ea Fix max(stable_versions) on Julia version finding (#2076)
* Fix `max(stable_versions)`

Since the keys are semantic version strings, that means that `"1.9.4" > "1.10.0", which we know isn't true. 🙂

I just added some code to convert the string to tuples, find the max, then convert back to a string.

I first noticed this on the `2024-01-05` build of the `datascience-notebook`, since Julia 1.10.0 was released ~2 weeks ago: https://github.com/JuliaLang/julia/releases/tag/v1.10.0.

* Migrate to comparator on `max(stable_versions)`

* Update setup_julia.py

* Update setup_julia.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-06 21:09:30 +04:00
Ayaz Salikhov
06cdadd0bf Improve spark pandas version information 2024-01-05 15:06:26 +04:00
Ayaz Salikhov
dc6432a4eb Update .readthedocs.yaml 2024-01-04 23:47:17 +04:00
pre-commit-ci[bot]
fcb20a914e [pre-commit.ci] pre-commit autoupdate (#2071)
updates:
- [github.com/PyCQA/isort: 5.12.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.12.0...5.13.2)
- [github.com/psf/black: 23.11.0 → 23.12.1](https://github.com/psf/black/compare/23.11.0...23.12.1)
- [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.8.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.8.0)
- [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8)
- [github.com/igorshubovych/markdownlint-cli: v0.37.0 → v0.38.0](https://github.com/igorshubovych/markdownlint-cli/compare/v0.37.0...v0.38.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-02 01:04:24 +04:00
Yuvi Panda
1494233e27 Link to the rocker/binder image as an alternative (#2065)
* Link to the rocker/binder image as an alternative

* Unify style in README.md

---------

Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
2023-12-21 20:42:49 +04:00
Ayaz Salikhov
474312ac79 Update conf.py for new sphinx version 2023-12-20 13:36:31 +04:00
Ayaz Salikhov
dc009c260c Revert "Update actions/download-artifact and actions/upload-artifact to v4 (#2061)"
This reverts commit 0736628649.
2023-12-20 13:36:01 +04:00
Ayaz Salikhov
0736628649 Update actions/download-artifact and actions/upload-artifact to v4 (#2061) 2023-12-15 01:06:20 +04:00
Ayaz Salikhov
ccbe678154 Fix typo 2023-12-14 17:52:22 +04:00
Ayaz Salikhov
55541bdc66 Remove jupyterlab and notebook pins in scipy-notebook (#2060) 2023-12-12 11:28:35 +04:00
Ayaz Salikhov
781a0f4d27 Mamba 1.5.5 is released, so remove fix for mamba clean 2023-12-12 04:27:13 +04:00
dependabot[bot]
5e20409c1e Bump actions/setup-python from 4 to 5 in /.github/actions/create-dev-env (#2058)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 13:39:19 +04:00
Ayaz Salikhov
6402f3dbfe Configure dependabot to update actions inside composite actions 2023-12-11 13:35:41 +04:00
dependabot[bot]
bf82b82d92 Bump actions/setup-python from 4 to 5 (#2057)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 13:25:24 +04:00
Ayaz Salikhov
42ff5aa638 Do not hardcode python3.11 in temporary fix 2023-12-08 12:37:12 +04:00
Ayaz Salikhov
027d3a1026 Fix cusotm env recipe 2023-12-08 05:47:10 +01:00
Ayaz Salikhov
2760b2e075 Use jupyter/minimal-notebook for custom env example 2023-12-08 05:44:20 +01:00
Ayaz Salikhov
c1d2127843 Use custom conda environment in Jupyter Notebook when user wants to use it (#2050)
* Modify the custom Python kernel

- to activate the custom environment
- for the respective Jupyter Notebook and Jupyter Console

Signed-off-by: Ayaz Salikhov <mathbunnyru@gmail.com>

* Add DL3059 to hadolint ignore list

Signed-off-by: Ayaz Salikhov <mathbunnyru@gmail.com>

* Move hadolint ignore to a single line

* Use python heredoc

* Remove unused print

* Fix style

* Do not hardcode CONDA_DIR

* Update custom_environment.dockerfile

* Use indent=1

* Implement activate_notebook_custom_env.py as a separate script

* Do not call Python manually

---------

Signed-off-by: Ayaz Salikhov <mathbunnyru@gmail.com>
Co-authored-by: Olivier Benz <olivier.benz@b-data.ch>
2023-12-08 03:03:32 +01:00
Ayaz Salikhov
01e2a4e0a9 [FAST_BUILD] [TMP] Fix mamba clean by downloading updated file (#2052)
* [TMP] Fix mamba clean by downloading updated file

* Fix wget option
2023-12-08 01:09:44 +01:00
Ayaz Salikhov
b6104850fa Automatically install latest julia version (#2046)
* Automatically install latest julia version

* Better text

* Fix

* Fix

* Update setup-julia.bash

* Install plumbum

* Better docs

* Better docs

* Use subprocess.check_call instead of plumbum

* Do not use dash in python filename

* Remove plumbum from the image

* Remove jq from the image

* Remove setup-julia.bash file

* Fix file name

* Fix docstring
2023-12-05 00:19:01 +01:00
pre-commit-ci[bot]
9f12db6067 [pre-commit.ci] pre-commit autoupdate (#2048)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.10.1 → 23.11.0](https://github.com/psf/black/compare/23.10.1...23.11.0)
- [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.1...v1.7.1)
- [github.com/pre-commit/mirrors-prettier: v3.0.3 → v4.0.0-alpha.3](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.3...v4.0.0-alpha.3)
- [github.com/adrienverge/yamllint: v1.32.0 → v1.33.0](https://github.com/adrienverge/yamllint/compare/v1.32.0...v1.33.0)
- [github.com/nbQA-dev/nbQA: 1.7.0 → 1.7.1](https://github.com/nbQA-dev/nbQA/compare/1.7.0...1.7.1)

* Update .pre-commit-config.yaml

* Update .pre-commit-config.yaml

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
2023-12-04 21:55:11 +01:00
Ayaz Salikhov
3253fc39b5 Fix conda hook to work in both terminal and Jupyter Notebook (#2047)
* Fix conda hook to work in both terminal and Jupyter Notebook

* Fix hook for Jupyter Terminals

* Rename startup hook to have order of precedence

* Try to increase sleep

* Comment making env_name default in custom_environment
2023-12-04 21:09:23 +01:00
Ayaz Salikhov
2927745fb2 Add order of precedence for spark-config script 2023-12-04 12:05:56 +01:00
Ayaz Salikhov
72601cbd68 Add acknowledgement of me :) (#2033)
* Add acknowledgement of me :)

* Fix link

* Update README.md
2023-11-29 23:02:54 +01:00
Yuvi Panda
99d306450e Specify multiple architectures for Julia to precompile to (#2044)
* Specify multiple architectures for Julia to precompile to

For amd64 (x86_64), we should specify what specific targets the
precompilation should be done for.  If we don't specify it,
it's *only* done for the target of the host doing the compilation.
When the container runs on a host that's still x86_64, but
a *different* generation of CPU than what the build host was, the
precompilation is useless and Julia takes a long long time to start
up. This specific multitarget comes from
https://docs.julialang.org/en/v1/devdocs/sysimg/#Specifying-multiple-system-image-targets,
and is the same set of options that the official Julia x86_64 build is
compiled with.  If the architecture the container runs on is
different, precompilation may still have to be re-done on first
startup - but this *should* catch most of the issues.

h/t to
https://discourse.julialang.org/t/is-it-possible-to-make-precompilation-portable-for-docker-images-built-with-a-different-cpu/95913
which helped point me towards `JULIA_CPU_TARGET`.

Fixes https://github.com/jupyter/docker-stacks/issues/2015 for more information

* Fix bash syntax issue

* Add JULIA_CPU_TARGET for aarch64 as well

- Don't need `export` as this is only used within this
  script
- Steal from upstream what should be setup for aarch64

* Re-add export for JULIA_CPU_TARGET

Quietens pre-commit
2023-11-29 22:56:28 +01:00
Ayaz Salikhov
d91bb62be0 Add comment about building font cache back 2023-11-26 01:45:47 +01:00
Olivier Benz
baa110d3f9 Remove environment variable XDG_CACHE_HOME (#2038)
- Fixes https://github.com/jupyter/docker-stacks/issues/2037
2023-11-22 17:10:52 +01:00
Ayaz Salikhov
406e397d43 Add info about robot permission when adding a new image 2023-11-22 14:17:42 +01:00
Thijs Walcarius
278dd76837 Add jupyter/pytorch-notebook (#1936)
* Add PyTorch image

* Fix linting errors

* Fix link to pytorch website

* Address review comments

* Fix PytorchVersionTagger

* Remove "+cpu" suffix from pytorch version tag

* Update selecting.md

* Rename pytorch-notebook/.dockerignore to images/pytorch-notebook/.dockerignore

* Rename pytorch-notebook/Dockerfile to images/pytorch-notebook/Dockerfile

* Rename pytorch-notebook/README.md to images/pytorch-notebook/README.md

* Add pytorch-notebook to registry-overviews

* Add registry to pytorch image

* Use Quay.io

* Remove incorrect link

* Update action.yml

* Update docker.yml

* Remove information about Docker Hub, because this image won't be uploaded to Docker Hub

* Update docker.yml

* Update action.yml

* Add pytorch-notebook to registry-move.yml

---------

Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
Co-authored-by: Ayaz Salikhov <mathbunnyru@gmail.com>
2023-11-22 11:56:45 +01:00
Ayaz Salikhov
0a75e3d3a6 Minor improvements 2023-11-21 13:17:33 +01:00
Ayaz Salikhov
d53e39763d Minor improvements 2023-11-21 02:40:50 +01:00
Ayaz Salikhov
809672790e Fix usages of hist_lines_dir and manifests_dir 2023-11-19 13:42:50 +01:00
Ayaz Salikhov
69e5b1d5c2 Fix arg names for --hist-lines-dir and --manifests-dir 2023-11-19 13:34:18 +01:00
Ayaz Salikhov
d8c60bc42c Fix more grammar issues 2023-11-19 12:16:19 +01:00
Ayaz Salikhov
d03229331a Fix some grammar issues 2023-11-19 02:09:26 +01:00
Ayaz Salikhov
71e66b2d57 Sphinx workflow doesn't depend on .readthedocs.yaml 2023-11-19 01:10:34 +01:00
Ayaz Salikhov
8517280b6e Unify style 2023-11-19 00:48:33 +01:00