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

Add Page on Development/Debugging Setup #60

Open
jbee opened this issue Jan 7, 2021 · 0 comments
Open

Add Page on Development/Debugging Setup #60

jbee opened this issue Jan 7, 2021 · 0 comments

Comments

@jbee
Copy link
Contributor

jbee commented Jan 7, 2021

The documentation so far says nothing on how to get started with development to get a code-test/debug cycle going.

So far I identified following that needs further description:

  • IDE setup, e.g. lombok plugin (see Add Page on Usage of Lombok #58 )
  • overall approach: what setup do we use debug during feature development (while this is dev specific and depends on preferences some working practices would be good to know)
  • installation and configuration of docker/testcontainers to successfully run integration tests
  • installation and setup of a development database

OBS! This is a work in progress issue that I will continue to add to until I have a working code-test/debug cycle going.

Additional Setup for Testcontainer/Docker (on Linux)

For now I just dump my findings here until they take a more elaborate form.

On Linux testcontainers might fail initially with the root cause being related to "Permission denied" when trying to connect to the docker environment.
I managed to fix this by

  1. add your user to docker user group: sudo usermod -aG docker $USER (see ^[1])
  2. refresh the group newgrp docker
  3. restart docker service sudo systemctl restart docker
  4. give access to socket(?) sudo chmod 666 /var/run/docker.sock (see ^[2])

I think step 2 and 3 are only needed if you want to save you from restarting or logging out/in of your session.
Solutions were found:

@jbee jbee changed the title Add Page on Debugging Setup Add Page on Development/Debugging Setup Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant