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

Support Docker Installation #1631

Open
Tranduy1dol opened this issue Oct 4, 2024 · 1 comment
Open

Support Docker Installation #1631

Tranduy1dol opened this issue Oct 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Tranduy1dol
Copy link

Problem

While running docker compose, scarb installation cannot dectech shell.
Behavior:

> [madara-devnet builder 3/8] RUN PATH="$HOME/.local/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"     curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh:
0.475 scarb-install: retrieving latest version from https://github.com/software-mansion/scarb...
1.072 scarb-install: downloading scarb-v2.8.3-x86_64-unknown-linux-gnu.tar.gz...
1.076   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
1.076                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 38.0M  100 38.0M    0     0  8464k      0  0:00:04  0:00:04 --:--:-- 10.9M
6.302 scarb-install: installed scarb to /root/.local/share/scarb-install/latest
6.304 scarb-install: created symlink /root/.local/bin/scarb -> /root/.local/share/scarb-install/latest/bin/scarb
6.304 
6.305 scarb-install: could not detect shell, manually add '$HOME/.local/bin' to your PATH.
------
failed to solve: process "/bin/sh -c PATH=\"$HOME/.local/bin:${PATH}\"     curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh" did not complete successfully: exit code: 1

OS: ubuntu 22.04

Steps

No response

Possible Solution(s)

No response

Notes

No response

Version

No response

@Tranduy1dol Tranduy1dol added the bug Something isn't working label Oct 4, 2024
@github-project-automation github-project-automation bot moved this to Triage in Scarb Oct 4, 2024
@mkaput
Copy link
Member

mkaput commented Oct 4, 2024

If you control this Dockerfile, then I recommend you to skip using the install script and just download the archive manually. Links are here: https://docs.swmansion.com/scarb/download.html#stable-version

Feel free to take install script's source code and rip out all the PATH management logic that is failing (because it doesn't make sense in Dockerfile context anyway).

If you do not control it, ask maintainers to do what I suggest.

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
Status: Triage
Development

No branches or pull requests

2 participants