Skip to content

Commit

Permalink
Updated docker strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Feb 21, 2022
1 parent d888ca2 commit 3fd36cc
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 44 deletions.
7 changes: 0 additions & 7 deletions docker-compose-dev.yml

This file was deleted.

39 changes: 39 additions & 0 deletions docker-compose.deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
version: '3.9'

services:
softioc:
image: slominskir/softioc:1.1.0
tty: true
stdin_open: true
hostname: softioc
container_name: softioc
ports:
- "5064:5064/tcp"
- "5065:5065/tcp"
- "5064:5064/udp"
- "5065:5065/udp"
volumes:
- ./examples/softioc-db:/db
- ./examples/softioc-scripts:/scripts

zookeeper:
image: debezium/zookeeper:1.5.0.Final
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
- "2888:2888"
- "3888:3888"

kafka:
image: debezium/kafka:1.5.0.Final
hostname: kafka
container_name: kafka
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
ZOOKEEPER_CONNECT: 'zookeeper:2181'
CREATE_TOPICS: 'channels:1:1:compact,topic1:1:1:compact,topic2:1:1:compact,topic3:1:1:compact'
29 changes: 29 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
version: '3.9'

services:
softioc:
extends:
file: docker-compose.yml
service: softioc

zookeeper:
extends:
file: docker-compose.yml
service: zookeeper

kafka:
extends:
file: docker-compose.yml
service: kafka

connect:
extends:
file: docker-compose.yml
service: connect
build:
context: .
dockerfile: Dockerfile
volumes:
- ./build/install:/kafka/connect
- ./scripts:/scripts
6 changes: 6 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
version: '3.9'

services:
connect:
image: slominskir/epics2kafka:1.2.0
47 changes: 10 additions & 37 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,23 @@
---
version: '3.8'
version: '3.9'

services:
softioc:
image: slominskir/softioc:1.1.0
tty: true
stdin_open: true
hostname: softioc
container_name: softioc
ports:
- "5064:5064/tcp"
- "5065:5065/tcp"
- "5064:5064/udp"
- "5065:5065/udp"
volumes:
- ./examples/softioc-db:/db
- ./examples/softioc-scripts:/scripts
extends:
file: docker-compose.deps.yml
service: softioc

zookeeper:
image: debezium/zookeeper:1.5.0.Final
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
- "2888:2888"
- "3888:3888"
extends:
file: docker-compose.deps.yml
service: zookeeper

kafka:
image: debezium/kafka:1.5.0.Final
hostname: kafka
container_name: kafka
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
ZOOKEEPER_CONNECT: 'zookeeper:2181'
CREATE_TOPICS: 'channels:1:1:compact,topic1:1:1:compact,topic2:1:1:compact,topic3:1:1:compact'
extends:
file: docker-compose.deps.yml
service: kafka

connect:
build:
context: .
dockerfile: Dockerfile
args:
- CUSTOM_CRT_URL=http://pki.jlab.org/JLabCA.crt
hostname: connect
container_name: connect
depends_on:
Expand All @@ -61,4 +35,3 @@ services:
MONITOR_CHANNELS: "channel1|topic1|v|key1,channel2|topic2|v|key2,channel3|topic3|v|key3"
volumes:
- ./examples/connect-config/distributed:/config
- ./scripts:/scripts

0 comments on commit 3fd36cc

Please sign in to comment.