Skip to content

Commit

Permalink
feat: add a 5-second delay on EVCC start up
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagosalamandri committed Jan 26, 2023
1 parent 967157c commit f3de262
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
docker-compose build

# Run using dev env vars
Expand Down

0 comments on commit f3de262

Please sign in to comment.