Skip to content

Instantly share code, notes, and snippets.

@donbr
Last active August 7, 2018 02:16
Show Gist options
  • Save donbr/e10172a16e0beeed0609d0a13b200db1 to your computer and use it in GitHub Desktop.
Save donbr/e10172a16e0beeed0609d0a13b200db1 to your computer and use it in GitHub Desktop.
Spring Cloud Data Flow notes

download Spring Cloud Data Flow

load pre-requisites

  • rabbitmq
  • redis
  • mysql
docker run --name dataflow-rabbit -p 15672:15672 -p 5672:5672 -d rabbitmq:3-management
docker run --name dataflow-redis -p 6379:6379 -d redis
docker run --name dataflow-mysql -e MYSQL_ROOT_PASSWORD=dataflow -e MYSQL_DATABASE=scdf -p 3306:3306 -d mysql:5.7

load local-server using jar

java -jar spring-cloud-dataflow-server-local-1.6.1.BUILD-SNAPSHOT.jar --spring.datasource.url=jdbc:mysql://localhost:3306/scdf --spring.datasource.username=root --spring.datasource.password=dataflow --spring.datasource.driver-class-name=org.mariadb.jdbc.Driver --spring.rabbitmq.host=127.0.0.1 --spring.rabbitmq.port=5672 --spring.rabbitmq.username=guest --spring.rabbitmq.password=guest

use local-server's docker compose artifact

  • download and run from directory that you want to run docker-compose from
curl -O https://raw.githubusercontent.com/spring-cloud/spring-cloud-dataflow/v1.6.0.RELEASE/spring-cloud-dataflow-server-local/docker-compose.yml
DATAFLOW_VERSION=1.6.0.RELEASE docker-compose up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment