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

Feat/update docker config #195

Merged
merged 6 commits into from
Jan 27, 2023
Merged

Conversation

santiagosalamandri
Copy link
Contributor

@santiagosalamandri santiagosalamandri commented Jan 25, 2023

This PR includes:

  • Updated Dockefile:
    • Poetry version on the dockerfile to build and run ISO15118 from containers.
    • Copy EVCC example configuration.
  • A retry/backoff block when binding the TCP sockets server to the network interfaces in case the process fails.

fixes #192, fixes #194

@santiagosalamandri santiagosalamandri force-pushed the feat/update_docker_config branch from 6cb7a5e to 967157c Compare January 25, 2023 15:38
@santiagosalamandri
Copy link
Contributor Author

This PR is related to issues #194 and #192 .

@tropxy
Copy link
Contributor

tropxy commented Jan 26, 2023

This PR is related to issues #194 and #192 .

does the PR actually fixes #192?

Makefile Outdated
@@ -56,6 +56,8 @@ build: .generate_v2_certs
@# This conversion is required, otherwise we wouldn't be able to spawn the evcc start script.
@# @ is used as a separator and allows us to escape '/', so we can substitute the '/' itself
@sed -i.bkp 's@/secc/g@/evcc/g@g' iso15118/evcc/Dockerfile
@# Add a delay on EVCC to give SECC time to start up
@sed -i 's/CMD\ \/venv\/bin\/iso15118/CMD\ echo\ "Waiting for 5 seconds to start EVCC"\ \&\&\ sleep\ 5\ \&\&\ \/venv\/bin\/iso15118/g' iso15118/evcc/Dockerfile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont you prefer to use the nomenclature above with the "@" I think it is cleaner to the human eye

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@santiagosalamandri
Copy link
Contributor Author

This PR is related to issues #194 and #192 .

does the PR actually fixes #192?

Yes, when running iso15118 on Docker, sometimes the network interface is not ready yet to be bound. So, a block of wait-retry has been added (on iso15118/secc/transport/tcp_server.py line 91).

@santiagosalamandri santiagosalamandri force-pushed the feat/update_docker_config branch from 48fe701 to e728969 Compare January 27, 2023 10:26
@tropxy
Copy link
Contributor

tropxy commented Jan 27, 2023

This PR is related to issues #194 and #192 .

does the PR actually fixes #192?

Yes, when running iso15118 on Docker, sometimes the network interface is not ready yet to be bound. So, a block of wait-retry has been added (on iso15118/secc/transport/tcp_server.py line 91).

cool ;) just updated your description to link the PR with those opened issues, so they are closed automatically

@santiagosalamandri santiagosalamandri merged commit 9f2f02e into master Jan 27, 2023
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

Successfully merging this pull request may close these issues.

Docker Build Error Unable to start EVCC and SECC
3 participants