Update Dev-Setup Documentation & Add docker folder#1241
Conversation
Co-authored-by: hatchla <e12122567@student.tuwien.ac.at>
…the docker container.
|
jenkins build please |
andreicristian97
left a comment
There was a problem hiding this comment.
The files look ok. Could not test the docker setup for "docker+local" as locally I'm only running with the devcontainer, but instructions seem clear.
- I've tested the code
- I've read through the whole code
- I've read through the whole documentation
- I've checked conformity to guidelines
- I've checked conformity to requirements
- I've checked that the requirements are tested
markus2330
left a comment
There was a problem hiding this comment.
Great job. Version numbers somehow got lost. We aim to all use the same versions, to not have additional complexity by supporting multiple compiler versions.
|
|
||
| ## Installing Node 20 + Npm | ||
|
|
||
| Make sure node 20 is installed, you may use to easly install multiple versions of node [nvm](https://github.com/nvm-sh/nvm), |
There was a problem hiding this comment.
Try to not have several mentions of which versions to install, this is hard to maintain. (Add link to where the version is already mentioned).
| Make sure node 20 is installed, you may use to easly install multiple versions of node [nvm](https://github.com/nvm-sh/nvm), | |
| Make sure node, in the version as required for PermaplanT, is installed, you may use to easily install multiple versions of node [nvm](https://github.com/nvm-sh/nvm), |
|
|
||
| ## Ways to develop PermaplanT | ||
|
|
||
| Right now we have three different ways to develop Permaplant: |
There was a problem hiding this comment.
| Right now we have three different ways to develop Permaplant: | |
| Right now we have three different ways to develop PermaplanT: |
| This runs the Postgis database and PgAdmin. | ||
|
|
||
| ```bash | ||
| cd docker |
There was a problem hiding this comment.
| cd docker | |
| cd .docker |
There was a problem hiding this comment.
@horenso simply add/commit suggestion if it is okay.
There was a problem hiding this comment.
rename folder to .docker
chr-schr
left a comment
There was a problem hiding this comment.
Generally I really like the changes as well as separating the different approaches into one file each. 👍
Not sure about the docker container itself, most of it is duplicated with .devcontainer/
|
|
||
| ## Install Rust | ||
|
|
||
| Follow the sets to [install Rust using rustup](https://www.rust-lang.org/tools/install). |
There was a problem hiding this comment.
| Follow the sets to [install Rust using rustup](https://www.rust-lang.org/tools/install). | |
| Follow the steps to [install Rust using rustup](https://www.rust-lang.org/tools/install). |
There was a problem hiding this comment.
Is it really necessary to more or less duplicate everything from .devcontainers/?
I usually just start the database part of the devcontainer with
docker compose -f .devcontainer/docker-compose.yml up db pgadmin -d
(but have add port forwarding of the db service 5432)
There was a problem hiding this comment.
we can also compose it from different compose files for .devcontainer and this setup, it's slightly different for instance it uses the host network
| @@ -0,0 +1,30 @@ | |||
| # Devcontainer | |||
|
|
|||
| We are also supporting a containerized setup(docker/podman). For more information checkout the README inside [.devcontainer](https://github.com/ElektraInitiative/PermaplanT/blob/master/.devcontainer/README.md). | |||
There was a problem hiding this comment.
| We are also supporting a containerized setup(docker/podman). For more information checkout the README inside [.devcontainer](https://github.com/ElektraInitiative/PermaplanT/blob/master/.devcontainer/README.md). | |
| We are also supporting a containerized setup(docker/podman). For more information checkout the README inside [.devcontainer](https://blob.permaplant.net/master/.devcontainer/README.md). |
There was a problem hiding this comment.
Why can't we use relative links for files in the same repo with ..s?
There was a problem hiding this comment.
Generally you can but it in many cases (e.g. links to outside of doc/) it won't work on doc.permaplant.net etc.
| Make sure node 20 is installed, you may use to easly install multiple versions of node [nvm](https://github.com/nvm-sh/nvm), | ||
| use apt or [download node directly](https://nodejs.org/en/download). |
There was a problem hiding this comment.
| Make sure node 20 is installed, you may use to easly install multiple versions of node [nvm](https://github.com/nvm-sh/nvm), | |
| use apt or [download node directly](https://nodejs.org/en/download). | |
| Make sure node 20 is installed, you may use [nvm](https://github.com/nvm-sh/nvm) to easily install multiple versions of node, use apt or [download node directly](https://nodejs.org/en/download). |
|
jenkins build please |
|
The only thing touches is the docs and the .docker stuff, I don't know why the build fails... |
|
@filo14 do you have an idea why the build always fails in this PR even though the failing files are not modified? |
markus2330
left a comment
There was a problem hiding this comment.
Try to avoid duplication but still be more specific at which versions to use. It is probably best if these 3 variants are just a set of links to other parts of the documentation.
| This runs the Postgis database and PgAdmin. | ||
|
|
||
| ```bash | ||
| cd docker |
There was a problem hiding this comment.
@horenso simply add/commit suggestion if it is okay.
| @@ -0,0 +1,30 @@ | |||
| # Devcontainer | |||
|
|
|||
| We are also supporting a containerized setup(docker/podman). For more information checkout the README inside [.devcontainer](https://github.com/ElektraInitiative/PermaplanT/blob/master/.devcontainer/README.md). | |||
There was a problem hiding this comment.
Generally you can but it in many cases (e.g. links to outside of doc/) it won't work on doc.permaplant.net etc.
|
|
||
| ## Git user | ||
|
|
||
| Globally set git credentials are not available in the devcontainer, set them loaclly. |
There was a problem hiding this comment.
| Globally set git credentials are not available in the devcontainer, set them loaclly. | |
| Globally set git credentials are not available in the devcontainer, set them locally. |
|
|
||
| ## Background | ||
|
|
||
| (Devcontainer)[https://code.visualstudio.com/docs/devcontainers/containers] allows you to |
There was a problem hiding this comment.
Markdown is the other way round. Please try to write one sentence per line and keep sentences shorter.
| Install postgres, for instance on Ubuntu: | ||
|
|
||
| ```bash | ||
| apt-get install libpq-dev postgresql-client |
There was a problem hiding this comment.
Does this install the server?
There was a problem hiding this comment.
This description is a bit useless? At least links to running frontend+backend should be provided?
For me |
Basics
close #X, are in the commit messages and changelogChecklist
Review