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

Add drone build job for lambda-promtail images. #4480

Merged
merged 4 commits into from
Oct 25, 2021
Merged

Add drone build job for lambda-promtail images. #4480

merged 4 commits into from
Oct 25, 2021

Conversation

cstyan
Copy link
Contributor

@cstyan cstyan commented Oct 14, 2021

Lambda promtail image build and publish via drone.

Signed-off-by: Callum Styan callumstyan@gmail.com

Signed-off-by: Callum Styan <callumstyan@gmail.com>
Signed-off-by: Callum Styan <callumstyan@gmail.com>
@cstyan cstyan changed the title [WIP] Add drone build job for lambda-promtail images. Add drone build job for lambda-promtail images. Oct 22, 2021
@cstyan cstyan marked this pull request as ready for review October 22, 2021 03:01
@cstyan cstyan requested a review from a team as a code owner October 22, 2021 03:01
@cstyan
Copy link
Contributor Author

cstyan commented Oct 22, 2021

@owen-d @JordanRushing ready for a review here. We finally have a working public ECR repo + drone plugin that can build and push to public ECR repos.

Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, a couple minor notes

tools/lambda-promtail/Dockerfile Outdated Show resolved Hide resolved
.drone/drone.jsonnet Outdated Show resolved Hide resolved
@@ -73,6 +75,24 @@ local clients_docker(arch, app) = {
},
};

local lambda_promtail_ecr(app) = {
name: '%s-image' % if $.settings.dry_run then 'build-' + app else 'publish-' + app,
image: 'cstyan/ecr',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not be grafana/ecr perhaps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we can move my fork of the ECR plugin + the docker image to grafana owned repos at any point.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For context: why isn't it that way already? Just testing for now?

Signed-off-by: Callum Styan <callumstyan@gmail.com>
Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cstyan once you've regenerated the .drone.yml this is good to go 👍

.drone/drone.yml Outdated
- depends_on:
- image-tag
environment:
DOCKER_LAUNCH_DEBUG: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you may need to regenerate this file since this was removed.

Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Callum Styan <callumstyan@gmail.com>
@owen-d owen-d merged commit ea78cde into grafana:main Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants