Zero icon indicating copy to clipboard operation
Zero copied to clipboard

Upload Docker Image to Docker Hub

Open dennysubke opened this issue 11 months ago • 21 comments

Description:

It would be highly beneficial to have the Docker image for this project uploaded to Docker Hub. This would make it easier for users to pull and deploy the container without needing to build it locally.

Reasons:

  • Simplifies the setup process for users who want to use the image in their own environments.
  • Ensures that the image is easily accessible and up-to-date for all users.
  • Provides a standardized version of the image for public use.

dennysubke avatar Feb 18 '25 19:02 dennysubke

+1 PRs are welcome

MrgSub avatar Feb 18 '25 19:02 MrgSub

As soon as I have time I will create a PR. 👍

dennysubke avatar Feb 18 '25 20:02 dennysubke

hey I want to create this PR, if @dennysubke is not working on this, can I ?

shashankdaima avatar Feb 23 '25 06:02 shashankdaima

hey I want to create this PR, if @dennysubke is not working on this, can I ?

It would be great if you could take over. I'm very busy at the moment.

dennysubke avatar Feb 23 '25 08:02 dennysubke

thank you, it will be my first open source contribution in a while. thank you.

shashankdaima avatar Feb 23 '25 13:02 shashankdaima

Github container registry (ghcr.io) would be even better imo, see example: https://mxd.codes/articles/docker-ci-cd-for-nextjs-with-github-actions

Jogai avatar Mar 18 '25 16:03 Jogai

Hey 👋🏻, is this issue still open? If so, and if no one is already working on it, I'd love to take it up. However, I might need some guidance along the way.

Thanks!

Muhammad-Owais-Warsi avatar Apr 03 '25 05:04 Muhammad-Owais-Warsi

Hey 👋🏻, is this issue still open? If so, and if no one is already working on it, I'd love to take it up. However, I might need some guidance along the way.

Thanks!

Yes

hiheyhello123 avatar Apr 03 '25 16:04 hiheyhello123

Hey @needleXO, since the Dockerfile is already present in the codebase, I just need to push the image, right? Also, if I'm not mistaken, I don't have to push it to my account. Please correct me if I misunderstood anything. Thanks :)

Muhammad-Owais-Warsi avatar Apr 03 '25 18:04 Muhammad-Owais-Warsi

Hey @needleXO, since the Dockerfile is already present in the codebase, I just need to push the image, right? Also, if I'm not mistaken, I don't have to push it to my account. Please correct me if I misunderstood anything. Thanks :)

The Dockerfile we have is outdated and for .devcontainer

hiheyhello123 avatar Apr 03 '25 22:04 hiheyhello123

Okay, I'll be adding a dockerfile in the root and will create a PR after the changes. Let me know if you have any suggestions.

Muhammad-Owais-Warsi avatar Apr 04 '25 08:04 Muhammad-Owais-Warsi

Hey @needleXO, I tried making a dockerfile and it builds successfuly. But on running the image I'm stuck up with this error.

 $ next start
@zero/mail:start:    ▲ Next.js 15.2.3
@zero/mail:start:    - Local:        http://localhost:3000
@zero/mail:start:    - Network:      http://172.17.0.2:3000
@zero/mail:start: 
@zero/mail:start:  ✓ Starting...
@zero/mail:start: ============================================================
@zero/mail:start: Bun Canary v1.2.9-canary.35 (bb4f8d89) Linux x64 (baseline)
@zero/mail:start: Linux Kernel v5.15.0 | glibc v2.31
@zero/mail:start: CPU: sse42 popcnt
@zero/mail:start: Args: "node" "/app/node_modules/.bin/next" "start"
@zero/mail:start: Features: Bun.stderr(2) Bun.stdout(2) dotenv http_server jsc no_avx2 no_avx transpiler_cache(13) tsconfig(2) tsconfig_paths process_dlopen 
@zero/mail:start: Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:dns/promises" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:querystring" "node:stream" "node:stream/web" "node:string_decoder" "node:tty" "node:url" "node:util" "node:vm" "node:zlib" "node:v8" 
@zero/mail:start: Elapsed: 705ms | User: 619ms | Sys: 79ms
@zero/mail:start: RSS: 1.06GB | Peak: 131.29MB | Commit: 1.06GB | Faults: 18
@zero/mail:start: 
@zero/mail:start: CPU lacks AVX support. Please consider upgrading to a newer CPU.
@zero/mail:start: panic: Segmentation fault at address 0x2670018
@zero/mail:start: oh no: Bun has crashed. This indicates a bug in Bun, not your code.
@zero/mail:start: 
@zero/mail:start: To send a redacted crash report to Bun's team,
@zero/mail:start: please file a GitHub issue using the link below:
@zero/mail:start: 
@zero/mail:start:  https://bun.report/1.2.9/Bn2bb4f8d8uIqwg0gGk/62nE+8mOu91ymFsriy7Eqpgy7E4poy7Eow/96E2sr96E8xq96Em26t7EA2Awhg8sC
@zero/mail:start: 
@zero/mail:start: error: script "start" was terminated by signal SIGILL (Illegal instruction)
  x Internal errors encountered: external process killed a task

error: script "start" exited with code 1

Maybe if you say I create a PR with changes, it I'll be easy to review up there.

Muhammad-Owais-Warsi avatar Apr 04 '25 16:04 Muhammad-Owais-Warsi

Hey @needleXO, I tried making a dockerfile and it builds successfuly. But on running the image I'm stuck up with this error.

 $ next start
@zero/mail:start:    ▲ Next.js 15.2.3
@zero/mail:start:    - Local:        http://localhost:3000
@zero/mail:start:    - Network:      http://172.17.0.2:3000
@zero/mail:start: 
@zero/mail:start:  ✓ Starting...
@zero/mail:start: ============================================================
@zero/mail:start: Bun Canary v1.2.9-canary.35 (bb4f8d89) Linux x64 (baseline)
@zero/mail:start: Linux Kernel v5.15.0 | glibc v2.31
@zero/mail:start: CPU: sse42 popcnt
@zero/mail:start: Args: "node" "/app/node_modules/.bin/next" "start"
@zero/mail:start: Features: Bun.stderr(2) Bun.stdout(2) dotenv http_server jsc no_avx2 no_avx transpiler_cache(13) tsconfig(2) tsconfig_paths process_dlopen 
@zero/mail:start: Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:dns/promises" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:querystring" "node:stream" "node:stream/web" "node:string_decoder" "node:tty" "node:url" "node:util" "node:vm" "node:zlib" "node:v8" 
@zero/mail:start: Elapsed: 705ms | User: 619ms | Sys: 79ms
@zero/mail:start: RSS: 1.06GB | Peak: 131.29MB | Commit: 1.06GB | Faults: 18
@zero/mail:start: 
@zero/mail:start: CPU lacks AVX support. Please consider upgrading to a newer CPU.
@zero/mail:start: panic: Segmentation fault at address 0x2670018
@zero/mail:start: oh no: Bun has crashed. This indicates a bug in Bun, not your code.
@zero/mail:start: 
@zero/mail:start: To send a redacted crash report to Bun's team,
@zero/mail:start: please file a GitHub issue using the link below:
@zero/mail:start: 
@zero/mail:start:  https://bun.report/1.2.9/Bn2bb4f8d8uIqwg0gGk/62nE+8mOu91ymFsriy7Eqpgy7E4poy7Eow/96E2sr96E8xq96Em26t7EA2Awhg8sC
@zero/mail:start: 
@zero/mail:start: error: script "start" was terminated by signal SIGILL (Illegal instruction)
  x Internal errors encountered: external process killed a task

error: script "start" exited with code 1

Maybe if you say I create a PR with changes, it I'll be easy to review up there.

Open a PR and we'll see

hiheyhello123 avatar Apr 05 '25 02:04 hiheyhello123

Hey @needleXO, I tried making a dockerfile and it builds successfuly. But on running the image I'm stuck up with this error.

 $ next start
@zero/mail:start:    ▲ Next.js 15.2.3
@zero/mail:start:    - Local:        http://localhost:3000
@zero/mail:start:    - Network:      http://172.17.0.2:3000
@zero/mail:start: 
@zero/mail:start:  ✓ Starting...
@zero/mail:start: ============================================================
@zero/mail:start: Bun Canary v1.2.9-canary.35 (bb4f8d89) Linux x64 (baseline)
@zero/mail:start: Linux Kernel v5.15.0 | glibc v2.31
@zero/mail:start: CPU: sse42 popcnt
@zero/mail:start: Args: "node" "/app/node_modules/.bin/next" "start"
@zero/mail:start: Features: Bun.stderr(2) Bun.stdout(2) dotenv http_server jsc no_avx2 no_avx transpiler_cache(13) tsconfig(2) tsconfig_paths process_dlopen 
@zero/mail:start: Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:dns/promises" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:querystring" "node:stream" "node:stream/web" "node:string_decoder" "node:tty" "node:url" "node:util" "node:vm" "node:zlib" "node:v8" 
@zero/mail:start: Elapsed: 705ms | User: 619ms | Sys: 79ms
@zero/mail:start: RSS: 1.06GB | Peak: 131.29MB | Commit: 1.06GB | Faults: 18
@zero/mail:start: 
@zero/mail:start: CPU lacks AVX support. Please consider upgrading to a newer CPU.
@zero/mail:start: panic: Segmentation fault at address 0x2670018
@zero/mail:start: oh no: Bun has crashed. This indicates a bug in Bun, not your code.
@zero/mail:start: 
@zero/mail:start: To send a redacted crash report to Bun's team,
@zero/mail:start: please file a GitHub issue using the link below:
@zero/mail:start: 
@zero/mail:start:  https://bun.report/1.2.9/Bn2bb4f8d8uIqwg0gGk/62nE+8mOu91ymFsriy7Eqpgy7E4poy7Eow/96E2sr96E8xq96Em26t7EA2Awhg8sC
@zero/mail:start: 
@zero/mail:start: error: script "start" was terminated by signal SIGILL (Illegal instruction)
  x Internal errors encountered: external process killed a task

error: script "start" exited with code 1

Maybe if you say I create a PR with changes, it I'll be easy to review up there.

Open a PR and we'll see

Here it is #591

Muhammad-Owais-Warsi avatar Apr 05 '25 07:04 Muhammad-Owais-Warsi

Am I mistaken or is it still not published on dockerhub or ghcr.io?

Jogai avatar Apr 23 '25 07:04 Jogai

Am I mistaken or is it still not published on dockerhub or ghcr.io?

I think it's still not published.

Muhammad-Owais-Warsi avatar Apr 25 '25 17:04 Muhammad-Owais-Warsi

Am I mistaken or is it still not published on dockerhub or ghcr.io?

I think it's still not published.

It wont because there is no action that pushes it to any registry...

Jogai avatar Apr 25 '25 20:04 Jogai

Am I mistaken or is it still not published on dockerhub or ghcr.io?

I think it's still not published.

It wont because there is no action that pushes it to any registry...

It's up to the mantainers it seems

Muhammad-Owais-Warsi avatar Apr 25 '25 21:04 Muhammad-Owais-Warsi

Could you please reopen this issue, as it is not yet completed? @dennysubke

bowencool avatar Jun 15 '25 02:06 bowencool

@MrgSub can i resolve this issue by creating a github workflow and by optimising the Docker/app/dockerfile and Docker/db/dockerfile

omsuneri avatar Jun 18 '25 09:06 omsuneri

This issue is stale (3+ days) and will be closed.

github-actions[bot] avatar Aug 12 '25 00:08 github-actions[bot]

Closing stale issue.

github-actions[bot] avatar Aug 12 '25 00:08 github-actions[bot]