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

Having some issues running docker/main.tf #3

Open
3 tasks
hussfelt opened this issue Aug 7, 2017 · 3 comments
Open
3 tasks

Having some issues running docker/main.tf #3

hussfelt opened this issue Aug 7, 2017 · 3 comments

Comments

@hussfelt
Copy link
Contributor

hussfelt commented Aug 7, 2017

Hey,

Looking through this file I get some small issues running terraform plan:
https://github.com/shuaibiyy/terraform-ecs-jenkins/blob/master/docker/main.tf

I am not really following how this was thought, therefore there is no PR. I ended up moving this code outside of the module.

  • The variable image_name is not declared and have no default value
  • The variable self.repository_url is unknown for me how it's supposed to work :)
  • The variable jenkins_image_name could possibly be moved to a null-default value to break, and then instead commit a terraform.tfvars.default file with this defined to indicate change?

Either way, the way the modules I've touched so far all the values in a module should be passed down from the instantiated state - in this case I can't :-)

All above aside, as indicated before - I learned a lot from this module! Thanks!

@shuaibiyy
Copy link
Owner

Hey there,

I had initially wanted to use my own custom jenkins image. The idea was to build the image and push it to AWS ECR, and the scripts in the docker directory were supposed to achieve that. I ended up abandoning that approach and went with the official jenkins docker image.

If the scripts were to be used though, image_name should definitely be given a default value as you note using whatever approach. self.repository_url would be the value of whatever the computed URL of the aws_ecr_repository resource is after the tf script is applied.

@hussfelt
Copy link
Contributor Author

hussfelt commented Aug 7, 2017 via email

@ajay1007
Copy link

ajay1007 commented Apr 6, 2018

Hi,
Could you please update docker image with jenkins image? That will be helpful or please share ideas on how to fix docker folder issue?

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

No branches or pull requests

3 participants