[PR #3107] [CLOSED] Added base docker image #4230

Closed
opened 2026-03-17 01:47:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3107
Author: @webysther
Created: 6/3/2023
Status: Closed

Base: mainHead: feat/docker-selfhost


📝 Commits (4)

  • 04273cc Added base docker image
  • 5923393 Removed not need software
  • 3b985a4 Merge pull request #4 from hoppscotch/main
  • 2c3ca42 Merge branch 'main' into feat/docker-selfhost

📊 Changes

2 files changed (+245 additions, -0 deletions)

View changed files

.dockerignore (+184 -0)
Dockerfile (+61 -0)

📄 Description

Closes #3069

Description

Add a base image to make possible to publish a base version to be available in hub docker.
The full process of build from source code is about 3 minutes, with this container the time needed is reduced by half.

To use this container in CI/CD is simple (based on LSIO):

HOPPSCOTH_RELEASE="2023.4.3"
docker build --build-arg HOPPSCOTH_RELEASE="${HOPPSCOTH_RELEASE}" . \
    -t hoppscotch/hoppscotch:"${HOPPSCOTH_RELEASE}"

This base allow's more friendly usage for getting help with contribution:

HOPPSCOTH_REPO=webysther/hoppscotch
HOPPSCOTH_RELEASE="2023.4.3"
docker build \
    --build-arg HOPPSCOTH_REPO="${HOPPSCOTH_REPO}"
    --build-arg HOPPSCOTH_RELEASE="${HOPPSCOTH_RELEASE}" . \
    -t ${HOPPSCOTH_REPO}:"${HOPPSCOTH_RELEASE}"

A solid base version to use inside docker compose to reduce the build time in daily-basis.

This give us the ability to create in future a specific image for every module:

  • Dockerfile.app
  • Dockerfile.admin
  • Dockerfile.api

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information


🔄 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/hoppscotch/hoppscotch/pull/3107 **Author:** [@webysther](https://github.com/webysther) **Created:** 6/3/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/docker-selfhost` --- ### 📝 Commits (4) - [`04273cc`](https://github.com/hoppscotch/hoppscotch/commit/04273cc0d3d1fe2b488e3a855d0463bfc948cefe) Added base docker image - [`5923393`](https://github.com/hoppscotch/hoppscotch/commit/5923393999f218eddd1935c338a2d89b5edffe4e) Removed not need software - [`3b985a4`](https://github.com/hoppscotch/hoppscotch/commit/3b985a4addef38351ff6ee0549426688ee380360) Merge pull request #4 from hoppscotch/main - [`2c3ca42`](https://github.com/hoppscotch/hoppscotch/commit/2c3ca4253d18b1dc12e117618eb0c61322aad7b7) Merge branch 'main' into feat/docker-selfhost ### 📊 Changes **2 files changed** (+245 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.dockerignore` (+184 -0) ➕ `Dockerfile` (+61 -0) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> Closes #3069 ### Description Add a base image to make possible to publish a base version to be available in hub docker. The full process of build from source code is about 3 minutes, with this container the time needed is reduced by half. To use this container in CI/CD is simple (based on LSIO): ```bash HOPPSCOTH_RELEASE="2023.4.3" docker build --build-arg HOPPSCOTH_RELEASE="${HOPPSCOTH_RELEASE}" . \ -t hoppscotch/hoppscotch:"${HOPPSCOTH_RELEASE}" ``` This base allow's more friendly usage for getting help with contribution: ```bash HOPPSCOTH_REPO=webysther/hoppscotch HOPPSCOTH_RELEASE="2023.4.3" docker build \ --build-arg HOPPSCOTH_REPO="${HOPPSCOTH_REPO}" --build-arg HOPPSCOTH_RELEASE="${HOPPSCOTH_RELEASE}" . \ -t ${HOPPSCOTH_REPO}:"${HOPPSCOTH_RELEASE}" ``` A solid base version to use inside docker compose to reduce the build time in daily-basis. This give us the ability to create in future a specific image for every module: - Dockerfile.app - Dockerfile.admin - Dockerfile.api <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed ### Additional Information <!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behaviour, etc. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:47:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4230
No description provided.