Skip to content

Commit

Permalink
support running Fluvio for Apple Silicon Machines (#1896)
Browse files Browse the repository at this point in the history
resolves #1363.

Fluvio cluster works with Docker on M1:
```
 kind create cluster --config k8-util/cluster/kind.yaml 
flvd cluster start  --develop --proxy-addr  127.0.0.1
```

Changes
* Nodes ports are specified rather than keep none
* SPG controller pass-thru node port values
* Use Docker for CI
  • Loading branch information
sehz committed Nov 17, 2021
1 parent 0dc8082 commit b8d9fe1
Show file tree
Hide file tree
Showing 15 changed files with 424 additions and 234 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
rust-target: [x86_64-unknown-linux-musl]
run: [r1]
test: [smoke,election,multiple-partition,reconnection]
# run: ${{ fromJson(needs.config.outputs.runs )}}
Expand All @@ -383,18 +384,18 @@ jobs:
- name: Download artifact - fluvio
uses: actions/download-artifact@v2
with:
name: fluvio-x86_64-unknown-linux-musl
name: fluvio-${{ matrix.rust-target }}
path: .
- name: Download artifact - fluvio-run
uses: actions/download-artifact@v2
with:
name: fluvio-run-x86_64-unknown-linux-musl
name: fluvio-run-${{ matrix.rust-target }}
path: ~/.fluvio/extensions
- run: chmod +x ~/.fluvio/extensions/fluvio-run
- name: Download artifact - fluvio-test
uses: actions/download-artifact@v2
with:
name: fluvio-test-x86_64-unknown-linux-musl
name: fluvio-test-${{ matrix.rust-target }}
path: .
- name: Print artifacts and mark executable
run: chmod +x ./fluvio ./fluvio-test && ./fluvio version
Expand Down Expand Up @@ -498,6 +499,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
rust-target: [x86_64-unknown-linux-musl]
run: [r1]
k8: [k3d,minikube]
steps:
Expand All @@ -506,17 +508,17 @@ jobs:
- name: Download artifact - fluvio
uses: actions/download-artifact@v2
with:
name: fluvio-x86_64-unknown-linux-musl
name: fluvio-${{ matrix.rust-target }}
path: .
- name: Download artifact - fluvio-test
uses: actions/download-artifact@v2
with:
name: fluvio-test-x86_64-unknown-linux-musl
name: fluvio-test-${{ matrix.rust-target }}
path: .
- name: Download Docker Image as Artifact
uses: actions/download-artifact@v2
with:
name: infinyon-fluvio-x86_64-unknown-linux-musl.tar
name: infinyon-fluvio-${{ matrix.rust-target }}.tar
path: /tmp

- name: Print artifacts and mark executable
Expand All @@ -526,8 +528,8 @@ jobs:
- name: Load Fluvio Docker Image for K3d
run: |
ls -la /tmp
docker image load --input /tmp/infinyon-fluvio-x86_64-unknown-linux-musl.tar
docker image tag infinyon/fluvio:${{ github.sha }}-x86_64-unknown-linux-musl infinyon/fluvio:${{ github.sha }}
docker image load --input /tmp/infinyon-fluvio-${{ matrix.rust-target }}.tar
docker image tag infinyon/fluvio:${{ github.sha }}-${{ matrix.rust-target }} infinyon/fluvio:${{ github.sha }}
docker image ls -a
#- name: Load Docker image for Minikube
# eval $(minikube -p minikube docker-env)
Expand Down
Loading

0 comments on commit b8d9fe1

Please sign in to comment.