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(build): add echo-integration module to exercise the just-built docker image #1405

Merged
merged 8 commits into from Mar 29, 2024

Conversation

dbyron-sf
Copy link
Contributor

Also, add a healthcheck to the docker images, and a few other small cleanups

to match what github actions uses
to facilitate testing container startup
…t.enabled

to fix:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2024-03-29 03:19:26.437 ERROR 1 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   :

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'services.fiat.enabled' to boolean:

    Property: services.fiat.enabled
    Value: "${services.fiat.enabled:false}"
    Origin: "services.fiat.enabled" from property source "Config resource 'class path resource [echo.yml]' via location 'optional:classpath:/' (document #0)"
    Reason: java.lang.IllegalArgumentException: Circular placeholder reference 'services.fiat.enabled:false' in property definitions

Action:

Update your application's configuration
…t.baseUrl

to fix:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2024-03-29 15:14:51.086 ERROR 1 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   :

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'services.fiat.base-url' to java.lang.String:

    Property: services.fiat.base-url
    Value: "${services.fiat.baseUrl:http://localhost:8089}"
    Origin: "services.fiat.baseUrl" from property source "Config resource 'class path resource [echo.yml]' via location 'optional:classpath:/' (document #0)"
    Reason: java.lang.IllegalArgumentException: Circular placeholder reference 'services.fiat.baseUrl:http://localhost:8089' in property definitions

Action:

Update your application's configuration

Use port 7003 since that's the default port for fiat from https://spinnaker.io/docs/reference/architecture/microservices-overview/#port-mappings.
with spring.config.activate.on-profile to remove these warnings:

2024-03-29 03:19:11.785  WARN 1 --- [           main] o.s.b.c.config.ConfigDataEnvironment     : Property 'spring.profiles' imported from location 'class path resource [echo.yml]' is invalid and should be replaced with 'spring.config.activate.on-profile' [origin: class path resource [echo.yml] - 74:13]
2024-03-29 03:19:11.785  WARN 1 --- [           main] o.s.b.c.config.ConfigDataEnvironment     : Property 'spring.profiles' imported from location 'class path resource [echo.yml]' is invalid and should be replaced with 'spring.config.activate.on-profile' [origin: class path resource [echo.yml] - 65:13]

See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Config-Data-Migration-Guide#profile-specific-documents.
multi-arch with --load doesn't work, so add a separate step using the local platform to
make an image available for testing.

see docker/buildx#59
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for merge label Mar 29, 2024
@mergify mergify bot added the auto merged label Mar 29, 2024
@mergify mergify bot merged commit da37acb into spinnaker:master Mar 29, 2024
5 checks passed
@dbyron-sf dbyron-sf deleted the test-docker-image branch March 30, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants