Skip to content

Commit

Permalink
chore(build): no longer support ppc64le
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory-Z authored and ngjaying committed May 27, 2021
1 parent b5b0f4a commit 3737b36
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ jobs:
set -e -u -x
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USER }} --password-stdin
docker buildx build --no-cache \
--platform=linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/ppc64le \
--platform=linux/amd64,linux/arm64,linux/arm/v7,linux/386 \
-t emqx/kuiper:$(git describe --tags --always) \
-f deploy/docker/Dockerfile . \
--push
Expand All @@ -224,7 +224,7 @@ jobs:
set -e -u -x
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USER }} --password-stdin
docker buildx build --no-cache \
--platform=linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/ppc64le \
--platform=linux/amd64,linux/arm64,linux/arm/v7,linux/386 \
-t emqx/kuiper:$(git describe --tags --always)-$SUFFIX \
-f deploy/docker/Dockerfile-$SUFFIX . \
--push
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,19 @@ docker:
.PHONY:cross_docker
cross_docker: cross_prepare
docker buildx build --no-cache \
--platform=linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/ppc64le \
--platform=linux/amd64,linux/arm64,linux/arm/v7,linux/386 \
-t $(TARGET):$(VERSION) \
-f deploy/docker/Dockerfile . \
--push

docker buildx build --no-cache \
--platform=linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/ppc64le \
--platform=linux/amd64,linux/arm64,linux/arm/v7,linux/386 \
-t $(TARGET):$(VERSION)-slim \
-f deploy/docker/Dockerfile-slim . \
--push

docker buildx build --no-cache \
--platform=linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/ppc64le \
--platform=linux/amd64,linux/arm64,linux/arm/v7,linux/386 \
-t $(TARGET):$(VERSION)-alpine \
-f deploy/docker/Dockerfile-alpine . \
--push
Expand Down Expand Up @@ -184,7 +184,7 @@ $(PLUGINS): PLUGIN_TYPE = $(word 1, $(subst /, , $@))
$(PLUGINS): PLUGIN_NAME = $(word 2, $(subst /, , $@))
$(PLUGINS):
@docker buildx build --no-cache \
--platform=linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/ppc64le \
--platform=linux/amd64,linux/arm64,linux/arm/v7,linux/386 \
-t cross_build \
--build-arg VERSION=$(VERSION) \
--build-arg PLUGIN_TYPE=$(PLUGIN_TYPE)\
Expand All @@ -193,13 +193,13 @@ $(PLUGINS):
-f .ci/Dockerfile-plugins .

@mkdir -p _plugins/debian/$(PLUGIN_TYPE)
@for arch in amd64 arm64 arm_v7 386 ppc64le; do \
@for arch in amd64 arm64 arm_v7 386; do \
tar -xvf /tmp/cross_build_plugins_$(PLUGIN_TYPE)_$(PLUGIN_NAME).tar --wildcards "linux_$${arch}/go/kuiper/plugins/$(PLUGIN_TYPE)/$(PLUGIN_NAME)/$(PLUGIN_NAME)_$$(echo $${arch%%_*}).zip" \
&& mv $$(ls linux_$${arch}/go/kuiper/plugins/$(PLUGIN_TYPE)/$(PLUGIN_NAME)/$(PLUGIN_NAME)_$$(echo $${arch%%_*}).zip) _plugins/debian/$(PLUGIN_TYPE); \
done
@rm -f /tmp/cross_build_plugins_$(PLUGIN_TYPE)_$(PLUGIN_NAME).tar

.PHONY: clean
clean:
@rm -rf cross_build.tar linux_amd64 linux_arm64 linux_arm_v7 linux_ppc64le linux_386
@rm -rf cross_build.tar linux_amd64 linux_arm64 linux_arm_v7 linux_386
@rm -rf _build _packages _plugins
2 changes: 1 addition & 1 deletion deploy/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

- **Supported architectures**

`amd64`, `arm64v8`, `arm32v7`, `i386`, `ppc64le`
`amd64`, `arm64v8`, `arm32v7`, `i386`

- **Supported Docker versions**:

Expand Down

0 comments on commit 3737b36

Please sign in to comment.