Fixed Dockerfile Unicode character, added instructions in README.md
This commit is contained in:
19
README.md
19
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
|
||||
|
||||
|
@ -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"]
|
||||
|
2
isotables/requirements.txt
Normal file
2
isotables/requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
Django==5.1.6
|
||||
bokeh==3.7.1
|
@ -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
|
||||
|
Reference in New Issue
Block a user