Skip to content

Install script fails most of the time #604

@stephenmontgomery

Description

@stephenmontgomery

Describe the bug
Have a dockerfile that fails intermittently (3 out of 4 times) attempting to install opengrep from script:

Image

Have seen it locally to on Mac.

To Reproduce

FROM python:3.13-alpine

RUN apk update && \
    apk add curl openjdk21-jdk bash cosign

WORKDIR /usr/app
SHELL ["/bin/bash", "-c"]

RUN curl -fsSL https://raw.githubusercontent.com/opengrep/opengrep/main/install.sh | bash
ENV PATH='/root/.opengrep/cli/latest':$PATH
RUN opengrep --version

Have attempted to download the script too - to take network issues out of the mix - same flaky results:

RUN curl -Lo /tmp/install.sh https://raw.githubusercontent.com/opengrep/opengrep/main/install.sh
RUN chmod +x /tmp/install.sh
RUN /tmp/install.sh
ENV PATH='/root/.opengrep/cli/latest':$PATH
RUN opengrep --version

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions