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

docker build failed when use docker/dockerfile #4646

Closed
2 tasks done
WangYunT opened this issue Apr 3, 2024 · 1 comment
Closed
2 tasks done

docker build failed when use docker/dockerfile #4646

WangYunT opened this issue Apr 3, 2024 · 1 comment
Labels
area:deployment related to how uptime kuma can be deployed help

Comments

@WangYunT
Copy link

WangYunT commented Apr 3, 2024

⚠️ Please verify that this question has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

  1. i downloaded the source code, the branch is master

  2. upload the source to my server, the service is centos 7, installed docker ..
    image
    image

  3. then, i run the script docker build -f docker/dockerfile -t uptime-kuma:test . then failed,
    image

📝 Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

master

💻 Operating System and Arch

centos 7

🌐 Browser

Google

🖥️ Deployment Environment

  • Runtime: docker 25.0.3
  • Database:
  • Filesystem used to store the database on:
  • number of monitors:
@WangYunT WangYunT added the help label Apr 3, 2024
@WangYunT WangYunT closed this as completed Apr 3, 2024
@CommanderStorm CommanderStorm added the area:deployment related to how uptime kuma can be deployed label Apr 3, 2024
@CommanderStorm
Copy link
Collaborator

docker build failed when use docker/dockerfile

What are you trying to do?
v2.0 is not yet ready for public testing.
Please see #4500 for the bugs which still remain.

If you want to test PRs, this can be done via this guide https://github.com/louislam/uptime-kuma/wiki/Test-Pull-Requests
If you want to develop the project, this can be done via the contribution guide: https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md

For your issue, please see

uptime-kuma/package.json

Lines 39 to 50 in 822ce53

"build-docker": "npm run build && npm run build-docker-full && npm run build-docker-slim",
"build-docker-base": "docker buildx build -f docker/debian-base.dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:base2 --target base2 . --push",
"build-docker-base-slim": "docker buildx build -f docker/debian-base.dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:base2-slim --target base2-slim . --push",
"build-docker-builder-go": "docker buildx build -f docker/builder-go.dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:builder-go . --push",
"build-docker-slim": "node ./extra/env2arg.js docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:2-slim -t louislam/uptime-kuma:$VERSION-slim --target release --build-arg BASE_IMAGE=louislam/uptime-kuma:base2-slim . --push",
"build-docker-full": "node ./extra/env2arg.js docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:2 -t louislam/uptime-kuma:$VERSION --target release . --push",
"build-docker-nightly": "node ./extra/test-docker.js && npm run build && docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:nightly2 --target nightly . --push",
"build-docker-slim-rootless": "node ./extra/env2arg.js docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:2-slim-rootless -t louislam/uptime-kuma:$VERSION-slim-rootless --target rootless --build-arg BASE_IMAGE=louislam/uptime-kuma:base2-slim . --push",
"build-docker-full-rootless": "node ./extra/env2arg.js docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:2-rootless -t louislam/uptime-kuma:$VERSION-rootless --target rootless . --push",
"build-docker-nightly-rootless": "node ./extra/test-docker.js && npm run build && docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:nightly2-rootless --target nightly-rootless . --push",
"build-docker-nightly-local": "npm run build && docker build -f docker/dockerfile -t louislam/uptime-kuma:nightly2 --target nightly .",
"build-docker-pr-test": "docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64 -t louislam/uptime-kuma:pr-test2 --target pr-test2 . --push",

=> you need to run this command prior. Also the command you provided has extra options and some options are missing.

npm run build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:deployment related to how uptime kuma can be deployed help
Projects
None yet
Development

No branches or pull requests

2 participants