diff --git a/README.md b/README.md index 202d649..d24fa74 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,21 @@ 4. Initialize DB: `python3 manage.py migrate` 5. Run Django project: `python3 manage.py runserver` -# Docker/Podman -podman build -t isotables isotables -podman run -p 8000:8000 localhost/isotable:latest +# Running Docker/Podman image +## Locally + podman build -t isotables isotables + podman run -p 8000:8000 localhost/isotable +## IPKM registry + + podman pull gitea.pkm.physik.tu-darmstadt.de/ipkm/isotables + podman run -p 8000:8000 gitea.pkm.physik.tu-darmstadt.de/ipkm/isotable + + +# Docker/Podman Push to IPKM registry + podman login gitea.pkm.physik.tu-darmstadt.de + podman build -t gitea.pkm.physik.tu-darmstadt.de/ipkm/isotables + # or name an existing local image + # podman tag {some-existing-image}:{tag} gitea.pkm.physik.tu-darmstadt.de/ipkm/isotables + podman push gitea.pkm.physik.tu-darmstadt.de/ipkm/isotables diff --git a/isotables/Dockerfile b/isotables/Dockerfile index ea4f948..b22285c 100644 --- a/isotables/Dockerfile +++ b/isotables/Dockerfile @@ -59,5 +59,5 @@ COPY --chown=appuser:appuser manage.py db.sqlite3 /app/ # Expose the Django port EXPOSE 8000 -# Run Django’s development server +# Run Django development server CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] diff --git a/isotables/requirements.txt b/isotables/requirements.txt new file mode 100644 index 0000000..9bda4d1 --- /dev/null +++ b/isotables/requirements.txt @@ -0,0 +1,2 @@ +Django==5.1.6 +bokeh==3.7.1 diff --git a/nmrisotopes.py b/nmrisotopes.py index b024a6a..44b4345 100755 --- a/nmrisotopes.py +++ b/nmrisotopes.py @@ -17,6 +17,7 @@ isotopes["stable"] = isotopes["stable"].replace(["-", "*"], ["yes","no"]) isotopes["name"] = isotopes["name"].map(lambda x : x.capitalize() ) pd.set_option("display.precision", 3) +print(isotopes[["name", "gamma in MHz/T"]].to_dict()) if args.source: f0, nuc1 = args.source