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

Build: Unified dockerfile for all builds #59173

Merged
merged 5 commits into from Nov 28, 2022
Merged

Build: Unified dockerfile for all builds #59173

merged 5 commits into from Nov 28, 2022

Conversation

DanCech
Copy link
Collaborator

@DanCech DanCech commented Nov 23, 2022

This PR leverages docker buildkit to use a single dockerfile for all our docker images

It works by using build args to configure the dependency between the stages, so that when we're building from a tarball we use the tgz-builder while otherwise we use the js-builder and go-builder stages. This requires buildkit as without it all the stages will be built regardless of whether they are needed in the final stage.

Base automatically changed from streamline-docker to main November 28, 2022 19:43
@DanCech DanCech marked this pull request as ready for review November 28, 2022 19:48
@DanCech DanCech requested a review from a team November 28, 2022 19:48
@DanCech DanCech added this to the 9.4.0 milestone Nov 28, 2022
@DanCech DanCech added add to changelog no-backport Skip backport of PR labels Nov 28, 2022
@DanCech DanCech changed the title Build: unified dockerfile for all builds Build: Unified dockerfile for all builds Nov 28, 2022
@DanCech DanCech merged commit 7436872 into main Nov 28, 2022
@DanCech DanCech deleted the single-dockerfile branch November 28, 2022 21:18
@DanCech DanCech added type/bug backport v9.3.x and removed no-backport Skip backport of PR labels Dec 1, 2022
@DanCech DanCech modified the milestones: 9.4.0, 9.3.2 Dec 1, 2022
@DanCech
Copy link
Collaborator Author

DanCech commented Dec 1, 2022

Needs #58101 backported first

@grafanabot
Copy link
Contributor

The backport to v9.3.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-59173-to-v9.3.x origin/v9.3.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x 7436872dab759657a4377c964383ea6ae7ca408d
# Push it to GitHub
git push --set-upstream origin backport-59173-to-v9.3.x
git switch main
# Remove the local backport branch
git branch -D backport-59173-to-v9.3.x

Then, create a pull request where the base branch is v9.3.x and the compare/head branch is backport-59173-to-v9.3.x.

@grafanabot grafanabot added the backport-failed Failed to generate backport PR. Please resolve conflicts and create one manually. label Dec 1, 2022
DanCech added a commit that referenced this pull request Dec 1, 2022
* unified dockerfile for all builds

* update builder

* include docker commands and output in logs

* quiet docker build

* quiet gsutil

(cherry picked from commit 7436872)
kwapik pushed a commit to fluxninja/grafana that referenced this pull request Jan 3, 2023
* unified dockerfile for all builds

* update builder

* include docker commands and output in logs

* quiet docker build

* quiet gsutil
DanCech added a commit that referenced this pull request Jan 30, 2023
* unified dockerfile for all builds

* update builder

* include docker commands and output in logs

* quiet docker build

* quiet gsutil

(cherry picked from commit 7436872)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/backend backport v9.3.x backport-failed Failed to generate backport PR. Please resolve conflicts and create one manually. type/bug type/build-packaging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants