Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First version of Dockerfile & docker-compose #416

Merged
merged 32 commits into from Apr 25, 2022
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a973344
First version of Dockerfile & docker-compose, including a health chec…
nhoening Apr 10, 2022
9ed8213
fix inability to call flexmeasures command in container (had to use f…
nhoening Apr 11, 2022
0f3dc8d
load the instance directory as volume, which allows to pass a configu…
nhoening Apr 11, 2022
e303b88
document better & correctly how to mount config file into a FlexMeasu…
nhoening Apr 12, 2022
b45e805
copy less unneeded files into FlexMeasures image
nhoening Apr 12, 2022
d452d9f
run the FlexMeasures image via Gunicorn
nhoening Apr 12, 2022
382455f
install gunicorn early on
nhoening Apr 13, 2022
23f4a0e
add changelog entries
nhoening Apr 13, 2022
1689350
mention the Docker image on index and in toy tutorial section
nhoening Apr 13, 2022
9ca44ef
move the note about using Docker for the tutorial a little lower
nhoening Apr 13, 2022
fa71d31
install solver as well
nhoening Apr 14, 2022
6e6c1e2
document how at this point one can run tests inside a FlexMeasures co…
nhoening Apr 14, 2022
63bf9ad
Merge branch 'main' into 149-dockerfile-for-developmentdemo
nhoening Apr 14, 2022
cdb42e6
load sql extensions into postgres service
nhoening Apr 15, 2022
1fd6b68
add another note to the preliminary testing setup
nhoening Apr 15, 2022
dd03e7b
Merge branch 'main' into 149-dockerfile-for-developmentdemo
nhoening Apr 15, 2022
101224a
Run tests easily in Docker: add test-db service in compose stack, and…
nhoening Apr 15, 2022
9adc8b7
improve documentation, from review comments
nhoening Apr 16, 2022
73c4722
fix typo
nhoening Apr 17, 2022
79a99c0
lazy loading in SensorIdField (fixes flexmeasures add schedule)
nhoening Apr 17, 2022
8bdf811
docs: add FLASK_ENV=development to docker run call
nhoening Apr 17, 2022
5c65024
split docker and docker-compose docs (first is relevant for installin…
nhoening Apr 18, 2022
70a712d
fix regression in not attaching account to assets correctly in toy tu…
nhoening Apr 19, 2022
822d374
separate installation instructions for toy tutorial into Docker and n…
nhoening Apr 20, 2022
adbfe25
some text improvements
nhoening Apr 20, 2022
b695c0d
correct the link in coverage badge, to report on main branch
nhoening Apr 21, 2022
a2237df
switch to lfenergy/flexmeasures
nhoening Apr 22, 2022
89a9833
small comments from review
nhoening Apr 22, 2022
48e7c07
demanding the lowest docker compose version we know we need (we use s…
nhoening Apr 23, 2022
555dfd5
more attention-grabbing note about the tutorial happening inside the …
nhoening Apr 23, 2022
45b88cf
not only the API runs in the container
nhoening Apr 25, 2022
ad15a9d
better name for the Docker container in the compose tutorial & smalle…
nhoening Apr 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion documentation/dev/docker.rst
Expand Up @@ -139,4 +139,6 @@ You can run tests in the flexmeasures docker container. This can be supported in
- Go into the container: ``docker exec -it <container-id> bash``
- Install vim (or the editor of your choice): ``apt-get install vim``
- Change the `SQLALCHEMY_DATABASE_URI` setting in ``flexmeasures/utils/config_defaults.py``, under "TestingConfig", to that in ``docker-compose.yml``.
- Run ``pytest``.
- Run ``pytest``. (you might have to run it twice, as the database has to be wiped, which only happens afterwards)

.. warning:: This will destroy data in the container. We probably will add a container to the compose stack just for testing.
nhoening marked this conversation as resolved.
Show resolved Hide resolved