-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. host images on dockerhub now
- Loading branch information
yuzhi.wx
committed
Dec 5, 2023
1 parent
8d7aac8
commit cf2df7a
Showing
13 changed files
with
65 additions
and
45 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,12 +1,12 @@ | ||
FROM golang:1.18 AS builder | ||
FROM --platform=linux/amd64 golang:1.18 AS builder | ||
|
||
WORKDIR /go/src/github.com/alibaba/open-local | ||
COPY . . | ||
RUN make build && chmod +x bin/open-local | ||
|
||
FROM sting2me/open-local-base:latest | ||
FROM --platform=linux/amd64 openlocal/open-local-base:latest | ||
LABEL maintainers="Alibaba Cloud Authors" | ||
LABEL description="open-local is a local disk management system" | ||
COPY --from=builder /go/src/github.com/alibaba/open-local/bin/open-local /bin/open-local | ||
COPY --from=thebeatles1994/open-local:tools /usr/local/bin/restic-amd64 /usr/local/bin/restic | ||
COPY --from=openlocal/open-local-tools:latest /usr/local/bin/restic-amd64 /usr/local/bin/restic | ||
ENTRYPOINT ["open-local"] |
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,5 @@ | ||
FROM alpine:3.14 | ||
LABEL open-local-base="v0.1.0" | ||
LABEL maintainers="Alibaba Cloud Authors" | ||
LABEL description="open-local is a local disk management system" | ||
RUN apk update && apk upgrade && apk add util-linux coreutils e2fsprogs e2fsprogs-extra xfsprogs xfsprogs-extra blkid file open-iscsi jq |
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,4 +1,4 @@ | ||
FROM alpine:3.9 | ||
FROM alpine:3.14 | ||
|
||
# run ./hack/download-restic.sh first | ||
|
||
|
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,21 @@ | ||
# create linux arm64 and amd64 environment named mybuilder | ||
docker buildx create --name mybuilder --platform linux/arm64,linux/amd64 --use | ||
mybuilder | ||
# open-local-base image build multiarch image with mybuilder | ||
docker buildx build --platform=linux/arm64/v8,linux/amd64 --builder mybuilder --push --tag openlocal/open-local-base:latest -f Dockerfile.base . | ||
# open-local-tools image build multiarch image with mybuilder | ||
docker buildx build --platform=linux/arm64/v8,linux/amd64 --builder mybuilder --push --tag openlocal/open-local-tools:latest -f Dockerfile.tools . | ||
|
||
# open-local main image | ||
|
||
make image && make image-arm64 | ||
# tag=v0.8.0-alpha | ||
docker tag openlocal/open-local:$tag openlocal/open-local:$tag-amd | ||
docker push openlocal/open-local:$tag-amd | ||
docker tag openlocal/open-local:$tag-arm64 openlocal/open-local:$tag-arm64 | ||
docker push openlocal/open-local:$tag-arm64 | ||
docker manifest create openlocal/open-local:$tag --amend openlocal/open-local:$tag-arm64 --amend openlocal/open-local:$tag-amd | ||
docker manifest push openlocal/open-local:$tag | ||
|
||
|
||
|
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,5 +1,5 @@ | ||
apiVersion: v1 | ||
description: cloud-native local storage management system | ||
name: open-local | ||
version: v0.7.1 | ||
appVersion: v0.7.1 | ||
version: v0.8.0-alpha | ||
appVersion: v0.8.0-alpha |
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
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 |
---|---|---|
|
@@ -947,4 +947,4 @@ func GetFuncName(funcName interface{}, full bool) string { | |
return funcs[0] | ||
} | ||
return origin | ||
} | ||
} |