GCP Cloud Build - Buildpack -> gradle -> testcontainers

222 views
Skip to first unread message

Dmitri Zamysloff

unread,
Dec 17, 2021, 4:49:22 PM12/17/21
to Google Cloud Developers
Hi Together,

having issue by switching to cloud build. We use in our tests the testcontainers. Now in cloud build the gradle project is going to be built by builtpack, which in its turn runs gradle. Our integration tests are failing because testcontainers cannot start containers. What can be enabled to make it possible?

steps:
- name: gcr.io/k8s-skaffold/pack
args:
- build
- '$_GCR_HOSTNAME/$PROJECT_ID/$_SERVICE_NAME:$COMMIT_SHA'
- '--env'
- 'BP_GRADLE_BUILD_ARGUMENTS=$_GRADLE_ARGS'
- '--tag=$_GCR_HOSTNAME/$PROJECT_ID/$_SERVICE_NAME:$_TAG_2'
- '--builder=paketobuildpacks/builder:base'
- '--path=.'
id: Buildpack
entrypoint: pack

Thank you in advance.

Elliott (Google Cloud Platform Support)

unread,
Dec 21, 2021, 1:40:08 PM12/21/21
to Google Cloud Developers

Hello,

I understand that you are having issues by switching to Cloud Build. Your Cloud Build Gradle project is using builtpack and it is failing. You would like a configuration to make your implementation work.

As Google Groups is meant for general discussions about Google products, I would refer you to our forum in Stackoverflow to get advice from our programming community to receive feedback on technical information needed to move forward.

C.J. Collier

unread,
Dec 21, 2021, 1:54:04 PM12/21/21
to Elliott (Google Cloud Platform Support), Google Cloud Developers

--
You received this message because you are subscribed to the Google Groups "Google Cloud Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-dev/2526c488-31ce-4e96-a2f3-43aebda1ece1n%40googlegroups.com.

Dmitri Zamysloff

unread,
Dec 27, 2021, 9:02:50 AM12/27/21
to Google Cloud Developers
Many thanks would try there!
Reply all
Reply to author
Forward
0 new messages