Skip to content

Commit 91e1dbf

Browse files
authored
feat: add oras cli (#6)
1 parent 633278f commit 91e1dbf

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎Dockerfile‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ FROM golang:1.25-bookworm
55
ARG BUF_VERSION=1.64.0
66
ARG AIR_VERSION=1.64.5
77
ARG OAPI_CODEGEN_VERSION=2.4.1
8+
ARG ORAS_VERSION=1.1.0
89

910
RUN apt-get update \
1011
&& apt-get install -y --no-install-recommends \
@@ -20,6 +21,11 @@ RUN curl -sSL "https://github.com/bufbuild/buf/releases/download/v${BUF_VERSION}
2021
-o /usr/local/bin/buf \
2122
&& chmod +x /usr/local/bin/buf
2223

24+
RUN curl -fsSL -o /tmp/oras.tar.gz \
25+
"https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_$(dpkg --print-architecture).tar.gz" \
26+
&& tar -xzf /tmp/oras.tar.gz -C /usr/local/bin oras \
27+
&& rm /tmp/oras.tar.gz
28+
2329
RUN GOBIN=/usr/local/bin go install github.com/air-verse/air@v${AIR_VERSION}
2430

2531
RUN GOBIN=/usr/local/bin go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v${OAPI_CODEGEN_VERSION}

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Go development container image for Agynio services.
1919
| buf | 1.64.0 | Multi-arch binary via `BUF_VERSION` |
2020
| air | 1.64.5 | Go hot-reload via `AIR_VERSION` |
2121
| oapi-codegen | 2.4.1 | OpenAPI code generation via `OAPI_CODEGEN_VERSION` |
22+
| oras | 1.1.0 | OCI registry CLI via `ORAS_VERSION` |
2223
| git, curl, bash, openssh-client, inotify-tools | Debian packages | Installed via apt |
2324

2425
## Usage

0 commit comments

Comments
 (0)