-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
{pkg/files/docker/{base,storj,edge,storjscan}: update docker images
Update the storj and edge images to use an updated base image with more dependencies. Also add a docker image for storjscan. Change-Id: Id55a8a94a67a3edf478ee973f296d6f257fdc6ed
- Loading branch information
1 parent
e8552c4
commit f57c59b
Showing
5 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20230825-1 | ||
20231012-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# syntax=docker/dockerfile:1.3 | ||
ARG TYPE | ||
ARG SOURCE | ||
FROM --platform=$TARGETPLATFORM img.dev.storj.io/storjup/build:20230627-1 AS base | ||
|
||
FROM base AS commit | ||
ARG BRANCH | ||
ARG COMMIT | ||
RUN git clone https://github.com/storj/storjscan.git --branch ${BRANCH} | ||
RUN cd storjscan && git reset --hard ${COMMIT} | ||
WORKDIR storjscan | ||
|
||
FROM base AS branch | ||
ARG BRANCH | ||
RUN git clone https://github.com/storj/storjscan.git --depth=1 --branch ${BRANCH} | ||
WORKDIR storjscan | ||
|
||
FROM ${SOURCE} AS github | ||
|
||
FROM base AS gerrit | ||
ARG REF | ||
RUN git clone https://github.com/storj/storjscan.git | ||
WORKDIR storjscan | ||
RUN git fetch https://review.dev.storj.io/storj/storjscan ${REF} && git checkout FETCH_HEAD | ||
|
||
FROM base AS local | ||
ARG PATH | ||
WORKDIR /var/lib/storj/storjscan | ||
COPY --chown=storj ${PATH} . | ||
|
||
FROM --platform=$TARGETPLATFORM ${TYPE} AS binaries | ||
RUN --mount=type=cache,target=/var/lib/storj/go/pkg/mod,mode=777,uid=1000 \ | ||
--mount=type=cache,target=/var/lib/storj/.cache/go-build,mode=777,uid=1000 \ | ||
go install ./cmd/... | ||
RUN go install github.com/elek/cethacea@main | ||
|
||
FROM img.dev.storj.io/storjup/base:20231012-1 AS final | ||
COPY --from=binaries /var/lib/storj/go/bin /var/lib/storj/go/bin | ||
|
||
|