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

Building docker images? #15

Closed
sean-abbott opened this issue Jul 21, 2020 · 4 comments
Closed

Building docker images? #15

sean-abbott opened this issue Jul 21, 2020 · 4 comments

Comments

@sean-abbott
Copy link

Can you demonstrate or add to the readme how to build docker images inside this setup?

I'm looking at kaniko, but it's not immediately obvious how to integrate it with jenkins using the amazon-ecs plugin to run agents in fargate.

Thanks!

PS: Please update your "master" references to jenkins server?

@adamjkeller
Copy link
Contributor

hey @sean-abbott Thanks for the heads up on the master references, cleaned them up.

Also, regarding docker images - they are built via the CDK. The dockerfiles are under the cdk/docker/ path, and the references to how they are built are in the code here:

https://github.com/aws-samples/jenkins-on-aws/blob/main/cdk/jenkins/jenkins_leader.py#L28
https://github.com/aws-samples/jenkins-on-aws/blob/main/cdk/jenkins/jenkins_worker.py#L22.

You can also build your own docker images, and modify the cdk code to pull from a docker hub repository or ECR as well.

Hope that answers your question :-)

@karthikeayan
Copy link

I think the question is about how to build docker images for the application we are building, not the jenkins itself.

@sean-abbott
Copy link
Author

sean-abbott commented Aug 26, 2020

Karthikeayan is correct. :-)

@adamjkeller
Copy link
Contributor

Hey all! I got it now, sorry for the misunderstanding.

I would recommend offloading docker image builds to AWS Codebuild: https://plugins.jenkins.io/aws-codebuild.

I'll create an issue for this.

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