[PR #237] [MERGED] Improvements for docker build process #964

Closed
opened 2026-02-04 21:41:07 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/plankanban/planka/pull/237
Author: @ThelonKarrde
Created: 5/1/2022
Status: Merged
Merged: 5/4/2022
Merged by: @meltyshev

Base: masterHead: feature/build_improvements


📝 Commits (10+)

📊 Changes

5 files changed (+80 additions, -33 deletions)

View changed files

.github/workflows/build-and-push-docker-base-image.yaml (+44 -0)
📝 .gitignore (+1 -0)
📝 Dockerfile (+4 -32)
Dockerfile.base (+28 -0)
📝 package.json (+3 -1)

📄 Description

So the current problem with the build process is that it builds each time the entire vips library which takes the majority of the time. In case it would be easy to make a build cache for Github Actions it wouldn't be a problem, however, since it is I suggest a little different approach.

Let's have a build-base image which will include pre-build vips library with other packages and then in regular build this will use it as a base and no necessity to build vips lib every day.

I also added a couple of shortcuts to package.json for easier local development.

A little controversial thing is to use the alpine version as a source of version for the image tag, but that's the simplest approach.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/plankanban/planka/pull/237 **Author:** [@ThelonKarrde](https://github.com/ThelonKarrde) **Created:** 5/1/2022 **Status:** ✅ Merged **Merged:** 5/4/2022 **Merged by:** [@meltyshev](https://github.com/meltyshev) **Base:** `master` ← **Head:** `feature/build_improvements` --- ### 📝 Commits (10+) - [`52f7ff7`](https://github.com/plankanban/planka/commit/52f7ff7a1b8f306c3c3eae02bd240c7c42e1293b) Github actions config for docker - [`b6167d7`](https://github.com/plankanban/planka/commit/b6167d7f99dd0a101c425315e725439cb51aaca4) Add name and multi-arch build - [`f25362a`](https://github.com/plankanban/planka/commit/f25362ab70f5979f4751106d545c6ae4a105bc10) Update pipeline name - [`7d827f5`](https://github.com/plankanban/planka/commit/7d827f560ad55320aec4192fd3473a85790bc084) Delete pvc.yaml - [`77d2ae6`](https://github.com/plankanban/planka/commit/77d2ae66da136d1e4dac648a8ac8cd51670f2035) Different arch def - [`9de539c`](https://github.com/plankanban/planka/commit/9de539cae6c7e4f8a64d37a05b12e3f638e59041) Update docker.yaml - [`c33a37c`](https://github.com/plankanban/planka/commit/c33a37cc4f0fd4c27d8fd60691b59561d41c5ea5) Update docker.yaml - [`dac7599`](https://github.com/plankanban/planka/commit/dac7599172d1458116d33ba0daa3cf3cd89af99b) Update docker.yaml - [`b8a3d16`](https://github.com/plankanban/planka/commit/b8a3d1689465f4fdba62c10506d4ba50df69628a) Update docker.yaml - [`b1b97ac`](https://github.com/plankanban/planka/commit/b1b97ac775533e85163fe1740dd6da2482570025) update docker-build ### 📊 Changes **5 files changed** (+80 additions, -33 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/build-and-push-docker-base-image.yaml` (+44 -0) 📝 `.gitignore` (+1 -0) 📝 `Dockerfile` (+4 -32) ➕ `Dockerfile.base` (+28 -0) 📝 `package.json` (+3 -1) </details> ### 📄 Description So the current problem with the build process is that it builds each time the entire `vips` library which takes the majority of the time. In case it would be easy to make a build cache for Github Actions it wouldn't be a problem, however, since it is I suggest a little different approach. Let's have a `build-base` image which will include pre-build `vips` library with other packages and then in regular build this will use it as a base and no necessity to build vips lib every day. I also added a couple of shortcuts to `package.json` for easier local development. A little controversial thing is to use the alpine version as a source of version for the image tag, but that's the simplest approach. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 21:41:07 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#964