Skip to content

Can't install agentapi into code-server #778

@turbotankist

Description

@turbotankist

latest coder-server codercom/code-server:4.109.2-ubuntu doesn't support curl option in the agentapi script

https://github.com/coder/registry/blob/main/registry/coder/modules/agentapi/scripts/main.sh#L76

+ download_url=https://github.com/coder/agentapi/releases/download/v0.11.8/agentapi-linux-amd64
+ curl --retry 5 --retry-delay 5 --fail --retry-all-errors -L -C - -o agentapi https://github.com/coder/agentapi/releases/download/v0.11.8/agentapi-linux-amd64
curl: option --retry-all-errors: is unknown
curl: try 'curl --help' or 'curl --manual' for more information

it has version and can't be updated

curl --version
curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08

sudo apt install curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version (7.68.0-1ubuntu2.25).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

Need to remove this option from the script.

Metadata

Metadata

Assignees

No one assigned

    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