diff --git a/.goreleaser.yml b/.goreleaser.yml index 9ccf4629b..9f257bead 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -25,6 +25,7 @@ builds: - amd64 - arm - arm64 + - ppc64le ignore: # don't build arm/arm64 for darwin or windows - goos: darwin diff --git a/Dockerfile-fsfreeze-pause-ppc64le b/Dockerfile-fsfreeze-pause-ppc64le new file mode 100644 index 000000000..b0c836432 --- /dev/null +++ b/Dockerfile-fsfreeze-pause-ppc64le @@ -0,0 +1,19 @@ +# Copyright 2018, 2019 the Velero contributors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FROM ubuntu:bionic + +LABEL maintainer="Steve Kriss " + +ENTRYPOINT ["/bin/bash", "-c", "while true; do sleep 10000; done"] diff --git a/Dockerfile-velero-ppc64le b/Dockerfile-velero-ppc64le new file mode 100644 index 000000000..19f7f6489 --- /dev/null +++ b/Dockerfile-velero-ppc64le @@ -0,0 +1,32 @@ +# Copyright 2017, 2019 the Velero contributors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FROM ubuntu:bionic + +LABEL maintainer="Steve Kriss " + +RUN apt-get update && \ + apt-get install -y --no-install-recommends ca-certificates wget && \ + wget --quiet https://oplab9.parqtec.unicamp.br/pub/ppc64el/restic/restic-0.9.4 && \ + mv restic-0.9.4 /usr/bin/restic && \ + chmod +x /usr/bin/restic && \ + apt-get remove -y wget && \ + rm -rf /var/lib/apt/lists/* + + +ADD /bin/linux/ppc64le/velero /velero + +USER nobody:nobody + +ENTRYPOINT ["/velero"] diff --git a/Dockerfile-velero-restic-restore-helper-ppc64le b/Dockerfile-velero-restic-restore-helper-ppc64le new file mode 100644 index 000000000..c18bd1b32 --- /dev/null +++ b/Dockerfile-velero-restic-restore-helper-ppc64le @@ -0,0 +1,23 @@ +# Copyright 2018, 2019 the Velero contributors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FROM ubuntu:bionic + +LABEL maintainer="Steve Kriss " + +ADD /bin/linux/ppc64le/velero-restic-restore-helper . + +USER nobody:nobody + +ENTRYPOINT [ "/velero-restic-restore-helper" ] diff --git a/Makefile b/Makefile index 31efb63f8..9caae554c 100644 --- a/Makefile +++ b/Makefile @@ -37,8 +37,8 @@ TAG_LATEST ?= false ### These variables should not need tweaking. ### -CLI_PLATFORMS := linux-amd64 linux-arm linux-arm64 darwin-amd64 windows-amd64 -CONTAINER_PLATFORMS := linux-amd64 linux-arm linux-arm64 +CLI_PLATFORMS := linux-amd64 linux-arm linux-arm64 darwin-amd64 windows-amd64 linux-ppc64le +CONTAINER_PLATFORMS := linux-amd64 linux-arm linux-arm64 linux-ppc64le platform_temp = $(subst -, ,$(ARCH)) GOOS = $(word 1, $(platform_temp)) @@ -55,6 +55,9 @@ endif #ifeq ($(GOARCH),arm64) # DOCKERFILE ?= Dockerfile.arm64 #aarch64/busybox #endif +ifeq ($(GOARCH),ppc64le) + DOCKERFILE ?= Dockerfile-$(BIN)-ppc64le +endif IMAGE = $(REGISTRY)/$(BIN)