Sign inSign up

pranavmishra90/singulab

By pranavmishra90

•Updated over 3 years ago
Archived

A datascience image with a jupyter environment, version controlled by Datalad

Image
0

146

pranavmishra90/singulab repository overview

⁠SinguLab Docker Image

Dockerfile for jupyter/scipi-notebook modified by Pranav Kumar Mishra⁠ to add the following features. Original docker image pranavmishra90/datascience⁠

⁠Building the image

Build the first image. The CACHEBUST is looking for the line ARG CACHEBUST=1, which breaks the stored image layers. This has been inserted prior to the major modifications I have made, deviating from jupyter's image.

# cd docker
docker build -t singulab:nightly -t pranavmishra90/singulab:nightly --build-arg CACHEBUST=$(date +%s) .
docker push pranavmishra90/singulab:nightly

After testing, create the additional tags

docker tag singulab:nightly pranavmishra90/singulab:nightly
docker tag singulab:nightly pranavmishra90/singulab:latest
docker tag singulab:nightly pranavmishra90/singulab:v0.0.<increment number here>

Push to DockerHub

docker push --all-tags singulab

⁠Development

Run the following commands

pre-commit install

Testing the container: mounting in current directory

datalad-here=docker run --name datalad -p 8888:8888 --user root -e GRANT_SUDO=yes \\\n\t-v "${PWD}":/home/jovyan/lab -v ~/bfi-datalad/git-annex:/home/jovyan/git-annex singulab:nightly
cat /home/jovyan/.config/rclone/rclone.conf

[git-annex]
type = alias
remote = /home/jovyan/git-annex
git annex initremote rushdrive-annex type=external externaltype=rclone target=rushdrive-annex prefix=bone-fat-insulin-project chunk=50MiB rclone_layout=lower encryption=none

initremote rushdrive-annex ok
(recording state in git...)
datalad siblings configure -s gitea --publish-depends rushdrive-annex

Tag summary

Content type

Image

Digest

sha256:37ade12f9…

Size

1.1 GB

Last updated

over 3 years ago

docker pull pranavmishra90/singulab