File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ ADD ./examples/ $WORKDIR/examples
5
5
WORKDIR $WORKDIR
6
6
RUN pip install git+https://github.com/toluaina/pgsync.git
7
7
COPY ./docker/wait-for-it.sh wait-for-it.sh
8
+ ARG EXAMPLE_NAME=airbnb
9
+ ENV EXAMPLE_NAME=$EXAMPLE_NAME
8
10
COPY ./docker/runserver.sh runserver.sh
9
11
RUN chmod +x wait-for-it.sh
10
12
RUN chmod +x runserver.sh
Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ services:
21
21
- xpack.security.enabled=false
22
22
- network.host=127.0.0.1
23
23
- http.host=0.0.0.0
24
+ kibana :
25
+ image : docker.elastic.co/kibana/kibana:7.17.13
26
+ ports :
27
+ - " 5601:5601"
28
+ environment :
29
+ - ELASTICSEARCH_HOSTS=http://elasticsearch:9200
30
+ depends_on :
31
+ - elasticsearch
24
32
pgsync :
25
33
build :
26
34
context : .
Original file line number Diff line number Diff line change 6
6
7
7
./wait-for-it.sh $REDIS_HOST :$REDIS_PORT -t 60
8
8
9
- EXAMPLE_DIR=" examples/airbnb"
9
+ EXAMPLE_DIR=" examples/${EXAMPLE_NAME :- airbnb} "
10
10
11
11
python $EXAMPLE_DIR /schema.py --config $EXAMPLE_DIR /schema.json
12
12
You can’t perform that action at this time.
0 commit comments