NSLS-II / edrixs

An open source toolkit for simulating RIXS spectra based on ED
https://nsls-ii.github.io/edrixs
GNU General Public License v3.0
34 stars 20 forks source link

Docker image #196

Closed mpmdean closed 7 months ago

mpmdean commented 10 months ago

One note is that our docker image has some altered attributes since the re-working.

The images in https://hub.docker.com/?namespace=edrixs

correspond to the prior build method.

The directory structure and default user changed.

The new version does build and run, just with some small alterations.

Add ipympl

https://docs.github.com/en/actions/publishing-packages/publishing-docker-images

docker build -f docker/Dockerfile -t edrixs . # from within edrixs home folder
docker run -it -p 8888:8888 -w /home/rixs -v .:/home/rixs edrixs
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root

Or probably better

docker build -f docker/Dockerfile -t edrixs . # from within edrixs home folder
docker-compose up

with docker-compose.yml file

version:  '3'
services:
  datascience-notebook:
      image:    edrixs
      volumes:
        - .:/home/rixs
      working_dir:    /home/rixs
      ports:
        - 8888:8888
      command: "jupyter lab --ip=0.0.0.0 --port=8888 --no-browser"