Skip to content

update docker #285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/_embeds/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ubuntu:22.04

RUN apt-get update
RUN apt-get install -y curl unzip
RUN apt-get install -y tini openssl curl
RUN curl -fsS https://hub.infinyon.cloud/install/install.sh | bash

ENV PATH "$PATH:/root/.fluvio/bin"
ENV PATH "$PATH:/root/.fvm/bin"
45 changes: 45 additions & 0 deletions docs/_embeds/docker/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
services:
sc:
image: fluvio:fluvio
container_name: sc
hostname: sc
ports:
- "9103:9003"
environment:
- RUST_LOG=info
command: "fluvio-run sc --local /fluvio/metadata"
volumes:
- fluvio-metadata:/fluvio/metadata

spu:
image: fluvio:fluvio
container_name: spu
hostname: spu
volumes:
- fluvio-data:/fluvio/data
environment:
- RUST_LOG=info
ports:
- "9110:9010"
- "9111:9011"
command: "fluvio-run spu -i 5001 -p spu:9010 -v spu:9011 --sc-addr sc:9004 --log-base-dir /fluvio/data"
depends_on:
- sc-setup

sc-setup:
image: fluvio:fluvio
container_name: sc-setup
environment:
- RUST_LOG=info
entrypoint: >
/bin/sh -c "
fluvio profile add docker sc:9003 docker;
fluvio cluster spu register --id 5001 --public-server 0.0.0.0:9110 --public-server-local spu:9010 --private-server spu:9011;
exit 0;
"
depends_on:
- sc

volumes:
fluvio-data:
fluvio-metadata:
8 changes: 8 additions & 0 deletions docs/_embeds/docker/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# build dockerfile
docker build -t fluvio:fluvio .

# start fluvio cluster
docker compose up -d

# Download profile to the CLI
fluvio profile add fluvio-docker 127.0.0.1:9103 docker