-
Notifications
You must be signed in to change notification settings - Fork 13
Update Dev-Setup Documentation & Add docker folder #1241
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: hatchla <[email protected]>
…the docker container.
jenkins build please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
doc/development/01docker+local.md
Outdated
|
||
## 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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), |
doc/development_setup.md
Outdated
|
||
## Ways to develop PermaplanT | ||
|
||
Right now we have three different ways to develop Permaplant: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cd docker | |
cd .docker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@horenso simply add/commit suggestion if it is okay.
docker/.env
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename folder to .docker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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/
doc/development/03local.md
Outdated
|
||
## Install Rust | ||
|
||
Follow the sets to [install Rust using rustup](https://www.rust-lang.org/tools/install). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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). |
docker/docker-compose.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't we use relative links for files in the same repo with ..
s?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally you can but it in many cases (e.g. links to outside of doc/) it won't work on doc.permaplant.net etc.
doc/development/01docker+local.md
Outdated
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be good now. We can deduplicate the docker setup in an extra PR but I think since this is dev setup only, it's not important.
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this install the server?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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