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

how to fix this error building docker compose up in ubuntu 22.04 #541

Open
bakukan2008 opened this issue Nov 15, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@bakukan2008
Copy link

how to fix this error i use docker compose up but i cant build
Here is the error

[+] Building 1.3s (7/19)                                                                                                        docker-container:romantic_keldysh
 => [master internal] load build definition from Dockerfile-master                                                                                           0.0s
 => => transferring dockerfile: 1.21kB                                                                                                                       0.0s
 => [master internal] load metadata for docker.io/library/python:3.10-bullseye                                                                               1.0s
 => [master internal] load .dockerignore                                                                                                                     0.0s
 => => transferring context: 2B                                                                                                                              0.0s
 => [master  1/15] FROM docker.io/library/python:3.10-bullseye@sha256:5c6f3a5a8ab7f559a2d5adb543030c0306e5656a049be19fe51b1677ca8d04d7                       0.0s
 => => resolve docker.io/library/python:3.10-bullseye@sha256:5c6f3a5a8ab7f559a2d5adb543030c0306e5656a049be19fe51b1677ca8d04d7                                0.0s
 => [master internal] load build context                                                                                                                     0.0s
 => => transferring context: 940B                                                                                                                            0.0s
 => CACHED [master  2/15] RUN apt-get update &&   apt-get upgrade -y -o DPkg::Options::=--force-confold &&   apt-get install -y -o DPkg::Options::=--force-  0.0s
 => ERROR [master  3/15] RUN curl -L https://bootstrap.saltstack.com | sh -s -- -X -M -x python3 stable latest                                               0.2s
------
 > [master  3/15] RUN curl -L https://bootstrap.saltstack.com | sh -s -- -X -M -x python3 stable latest:
0.074   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0.074                                  Dload  Upload   Total   Spent    Left  Speed
100    80  100    80    0     0    824      0 --:--:-- --:--:-- --:--:--   824
0.171 sh: 2: Syntax error: newline unexpected
------
failed to solve: process "/bin/sh -c curl -L https://bootstrap.saltstack.com | sh -s -- -X -M -x python3 stable latest" did not complete successfully: exit code: 2
@bakukan2008 bakukan2008 added the bug Something isn't working label Nov 15, 2024
@katsil-pp
Copy link

On bootstrap website it says:

Salt Bootstrap Script Migration Warning
In October 2024, the Salt Project package repositories migrated. Both bootstrap.saltproject.io and winbootstrap.saltproject.io will be decomissioned by end of November 2024.

New download locations:

https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh
https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh.sha256
https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.ps1
https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.ps1.sha256
Resources
[FAQs from Salt Project Repo Migration](https://saltproject.io/blog/post-migration-salt-project-faqs/)
[salt-bootstrap code repo](https://github.com/saltstack/salt-bootstrap)
[Salt Install Guide](https://docs.saltproject.io/salt/install-guide/en/latest/index.html)

I think you need to change URL in docker/Dockerfile-master from https://bootstrap.saltstack.com to https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh -- actually for me this resolved the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants