Skip to content

Commit 2c1d404

Browse files
committed
App overhaul
1 parent 6b58422 commit 2c1d404

24 files changed

+69589
-69390
lines changed
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build Docker image
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Login to GitHub Container Registry
18+
uses: docker/login-action@v1
19+
with:
20+
registry: ghcr.io
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.GHCR_TOKEN }}
23+
24+
- name: lowercase github.repository
25+
run: |
26+
echo "IMAGE_NAME=`echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'`" >>${GITHUB_ENV}
27+
28+
- name: Build Inventory Image
29+
run: |
30+
docker build . --tag ghcr.io/${{ env.IMAGE_NAME }}:latest
31+
docker push ghcr.io/${{ env.IMAGE_NAME }}:latest

.gitignore

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# Prerequisites
2+
*.d
3+
4+
# Compiled object files
5+
*.slo
6+
*.lo
7+
*.o
8+
*.obj
9+
10+
# Precompiled headers
11+
*.gch
12+
*.pch
13+
14+
# Compiled dynamic libraries
15+
*.so
16+
*.so.[0-9]*
17+
*.dylib
18+
*.dll
19+
20+
# Fortran module files
21+
*.mod
22+
*.smod
23+
24+
# Compiled static libraries
25+
*.lai
26+
*.la
27+
*.a
28+
*.lib
29+
30+
# Executables
31+
*.exe
32+
*.out
33+
*.app
34+
35+
# Byte-compiled / optimized / DLL files
36+
__pycache__/
37+
*.py[cod]
38+
*$py.class
39+
40+
# Distribution / packaging
41+
.Python
42+
build/
43+
develop-eggs/
44+
dist/
45+
downloads/
46+
eggs/
47+
.eggs/
48+
lib/
49+
lib64/
50+
parts/
51+
sdist/
52+
var/
53+
wheels/
54+
.installed.cfg
55+
MANIFEST
56+
*.egg-info/
57+
*.egg
58+
*.manifest
59+
*.spec
60+
pip-log.txt
61+
pip-delete-this-directory.txt
62+
63+
# Unit test / coverage reports
64+
htmlcov/
65+
.tox/
66+
.coverage
67+
.coverage.*
68+
.cache
69+
nosetests.xml
70+
coverage.xml
71+
*,cover
72+
.pytest_cache/
73+
74+
# Documentation
75+
doc/html/
76+
doc/latex/
77+
doc/man/
78+
doc/xml/
79+
doc/_build/
80+
doc/source
81+
doc/modules
82+
83+
# Environments
84+
.env
85+
.venv
86+
env/
87+
venv/
88+
ENV/
89+
90+
# Editor junk
91+
tags
92+
[._]*.s[a-v][a-z]
93+
[._]*.sw[a-p]
94+
[._]s[a-v][a-z]
95+
[._]sw[a-p]
96+
*~
97+
\#*\#
98+
.\#*
99+
.ropeproject
100+
.idea/
101+
.spyderproject
102+
.spyproject
103+
.vscode/
104+
# Mac .DS_Store
105+
.DS_Store
106+
107+
# jupyter notebook checkpoints
108+
.ipynb_checkpoints
109+
110+
# version file
111+
src/_version.py

Dockerfile

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
FROM python:3.8-slim-buster
2-
WORKDIR /python-docker
3-
COPY requirements.txt requirements.txt
4-
RUN pip3 install -r requirements.txt
5-
COPY . .
6-
CMD ["python3", "./app/app.py"]
1+
FROM python:3.13.3-slim-bookworm
2+
COPY . .
3+
RUN pip3 install -r requirements.txt
4+
EXPOSE 8000
5+
CMD ["gunicorn", "--config", "src/gunicorn.py", "src.app:app"]

README.md

-13
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,3 @@
55
A comprehensive database of combustion properties for over 1,200 compounds that can be run locally or in the cloud. All you need is Docker.
66

77
https://database.uml-ecrl.org/
8-
9-
## Installation
10-
11-
```
12-
$ git clone https://github.com/ecrl/database-web-app
13-
$ cd database-web-app
14-
$ chmod +x /mongo/import.sh
15-
$ docker compose up -d
16-
```
17-
18-
After composing, the *ecrl-db-mongo-seed* container can be removed.
19-
20-
If containers are created locally, the web app is available at *http://localhost:8080* and the MongoDB server is available at *mongodb://localhost:27017*. For more complex deployments I assume you know what you're doing.

app/app.py

-129
This file was deleted.

app/config.py

-20
This file was deleted.

app/static/style.css

-19
This file was deleted.

0 commit comments

Comments
 (0)