terraform-google-modules / terraform-google-jenkins

Creates a Compute Engine instance running Jenkins
https://registry.terraform.io/modules/terraform-google-modules/jenkins/google
Apache License 2.0
31 stars 69 forks source link

bitnami-jenkins-2-138-2-0-linux-debian-9-x86-64 image is not found #8

Closed lestex closed 5 years ago

lestex commented 5 years ago

Just got the following error when ran example with default parameters:

error retrieving image information: googleapi: Error 404: 
The resource 'projects/bitnami-launchpad/global/images/bitnami-jenkins-2-138-2-0-linux-debian-9-x86-64' 
was not found, notFound

The tag I'm using is v0.1.0. Seems this image is no longer available in bitnami's project.

Works with "bitnami-jenkins-2-176-2-0-linux-debian-9-x86-64"

The default image should probably be changed to "" with adjustments to documentation on how to find proper base image.

morgante commented 5 years ago

Thanks, looks like we should probably update this to use an image family instead of a single image name.

Specifically, we should:

  1. Change the data source to pull from an image family instead.
  2. Change the default for jenkins_boot_disk_source_image_project variable to be null.
  3. If jenkins_boot_disk_source_image_project is null, pull the latest image from the provided image family.
ingwarr commented 5 years ago

@morgante Unfortunately, images from bitnami-launchpad project mostly without family, please take a look: https://gist.github.com/ingwarr/700a956f5a622b373778c11920084769 So I think now we can only replace the version of image.

morgante commented 5 years ago

@morgante Unfortunately, images from bitnami-launchpad project mostly without family, please take a look: https://gist.github.com/ingwarr/700a956f5a622b373778c11920084769

That's unfortunate, but I agree with the conclusion.