Skip to content

Install doesn't downloads $filename on linux #5055

Closed

Description

Activity

  1. github-actions commented on Dec 4, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Dec 13, 2025

    @rekram1-node
    Contributor

    You're saying that the curl script doesn't work on linux? can u tell me more about your os and arch?

  3. self-assigned this
    on Dec 13, 2025
  4. Rom888 commented on Dec 14, 2025

    @Rom888
    Author

    Right,
    Ubuntu 24.04
    amd64

  5. rekram1-node commented on Dec 14, 2025

    @rekram1-node
    Contributor

    can you share your actual error message or issue you encounter?

    The script definitely works on linux, but maybe it is missing something specific for your system

  6. Rom888 commented on Dec 15, 2025

    @Rom888
    Author
    FROM ubuntu:24.04
    
    ENV DEBIAN_FRONTEND=noninteractive
    
    RUN apt-get update && apt-get install -y --no-install-recommends \
      curl \
      ca-certificates \
      tar \
      less \
      tree \
      ripgrep && \
      apt-get clean && \
      rm -rf /var/lib/apt/lists/*
    
    ARG VERSION=v1.0.137
    ENV VERSION=$VERSION
    ARG url="https://raw.githubusercontent.com/sst/opencode/$VERSION/install"
    RUN echo $url && curl -H 'Cache-Control: no-cache' -L "$url" -o install.sh && chmod 744 install.sh
    RUN ./install.sh
    
    CMD ["/bin/bash"]
    

    podman build -t opencode -f opencode.dockerfile .

    ...
    STEP 7/9: RUN echo $url && curl -H 'Cache-Control: no-cache' -L "$url" -o install.sh && chmod 744 install.sh
    https://raw.githubusercontent.com/sst/opencode/v1.0.137/install
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  9726  100  9726    0     0   1840      0  0:00:05  0:00:05 --:--:--  2148
    --> 855e58476676
    STEP 8/9: RUN ./install.sh
    
    Installing opencode version: v1.0.137
    
    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Error is not recoverable: exiting now
    Error: building at STEP "RUN ./install.sh": while running runtime: exit status 2
    
  7. rekram1-node commented on Dec 16, 2025

    @rekram1-node
    Contributor

    Hm try now maybe?

  8. rekram1-node commented on Dec 16, 2025

    @rekram1-node
    Contributor

    well i just updated it, maube in like 10 min or so try it

  9. Rom888 commented on Dec 16, 2025

    @Rom888
    Author

    Tried with dev branch:

    STEP 4/9: ARG VERSION=dev
    --> 73d9a6f4ee29
    STEP 5/9: ENV VERSION=$VERSION
    --> 7711dea7310e
    STEP 6/9: ARG url="https://raw.githubusercontent.com/sst/opencode/$VERSION/install"
    --> d8a52ec2bdcd
    STEP 7/9: RUN echo $url && curl -H 'Cache-Control: no-cache' -L "$url" -o install.sh && chmod 744 install.sh
    https://raw.githubusercontent.com/sst/opencode/dev/install
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  9865  100  9865    0     0   1854      0  0:00:05  0:00:05 --:--:--  2587
    --> 890a8738b6d0
    STEP 8/9: RUN ./install.sh
    
    Installing opencode version: dev
    ######################################################################## 100.0%
    
    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Error is not recoverable: exiting now
    Error: building at STEP "RUN ./install.sh": while running runtime: exit status 2
    
  10. rekram1-node commented on Dec 16, 2025

    @rekram1-node
    Contributor

    Tested w/ your dockerfile, should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions