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

error on image build - 404 #12

Closed
gt4dev opened this issue Dec 20, 2022 · 3 comments
Closed

error on image build - 404 #12

gt4dev opened this issue Dec 20, 2022 · 3 comments

Comments

@gt4dev
Copy link

gt4dev commented Dec 20, 2022

Hi
When I try to build image from Dockerfile
with command:
docker build -t test-image-t1 .

Initially build works ok
but ultimately it fails with an error:

 > [6/7] RUN set -ex;   curl -o mybb.tar.gz -fSL "https://github.com/mybb/mybb/archive/refs/tags/mybb_.tar.gz";         echo " *mybb.tar.gz" | sha512sum -c -;      tar -xzf mybb.tar.gz -C /usr/src/;      rm mybb.tar.gz;         chown -R www-data:www-data /usr/src/mybb-mybb_:                                     
#9 0.188 + curl -o mybb.tar.gz -fSL https://github.com/mybb/mybb/archive/refs/tags/mybb_.tar.gz                                                             
#9 0.191   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#9 0.191                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0    14    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#9 1.136 curl: (22) The requested URL returned error: 404

Do you know where I can find this file?
https://github.com/mybb/mybb/archive/refs/tags/mybb_.tar.gz

I'm using MacOS 13.0.1 with CPU ARM64 - that's why I want to build own image. The one from docker repo seems to be for AMD64.
Thank you & cheers
GT

edit:
Seems that standard image - works fine on M1 CPU. And in essence - the whole MyBB works well on docker.
Earlier I mistook 'docker compose' config.

@gt4dev
Copy link
Author

gt4dev commented Dec 20, 2022

btw. seems like archives have been moved
where? here? ;]
https://mybb.com/versions/1.8.32/

@kawaii
Copy link
Member

kawaii commented Dec 21, 2022

https://github.com/mybb/docker#how-to-build-this-image

You are missing required BUILD_SHA512SUM and BUILD_VERSION environment variables from your docker build command most likely.

@gt4dev
Copy link
Author

gt4dev commented Dec 23, 2022

Thank you @kawaii, it works now.
Sorry for bothering you, I don't know how I could not notice this requirement in readme.md.

@gt4dev gt4dev closed this as completed Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants