-
Notifications
You must be signed in to change notification settings - Fork 1
Python bokeh graph ui #4
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
base: master
Are you sure you want to change the base?
Changes from all commits
921e2c4
e95807f
38d4a94
5777ebb
0f7da55
b703b37
8acba38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,24 @@ RUN apt-get update | |
| ENV \ | ||
| SCALA_MAJOR_VERSION=2.11 \ | ||
| SBT_VERSION=0.13.8 \ | ||
| KAFKA_CLIENT_VERSION=0.10.1.0 | ||
| KAFKA_CLIENT_VERSION=0.10.1.0 \ | ||
| DEV_INSTALL_HOME=~ \ | ||
| STREAMAI_HOME=$DEV_INSTALL_HOME/streamai \ | ||
| CONFIG_HOME=$STREAMAI_HOME/config \ | ||
| SCRIPTS_HOME=$STREAMAI_HOME/binsc \ | ||
| LOGS_HOME=$STREAMAI_HOME/logs \ | ||
| JAVA_HOME=/usr/lib/jvm/java-8-oracle \ | ||
| JRE_HOME=$JAVA_HOME/jre \ | ||
| PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH \ | ||
| PATH=$SCRIPTS_HOME/service:$SCRIPTS_HOME/util:$PATH \ | ||
| KAFKA_HOME=$DEV_INSTALL_HOME/kafka_2.11-0.10.1.0 \ | ||
| PATH=$KAFKA_HOME/bin:$PATH \ | ||
| ZOOKEEPER_HOME=$KAFKA_HOME \ | ||
| PATH=$ZOOKEEPER_HOME/bin:$PATH \ | ||
| FLASK_APP=$STREAMAI_HOME/python/flask-producer.py \ | ||
| LC_ALL=C.UTF-8 \ | ||
| LANG=C.UTF-8 | ||
|
|
||
|
|
||
| RUN \ | ||
| apt-get update \ | ||
|
|
@@ -37,7 +54,7 @@ RUN \ | |
| && apt-get install -y apache2 \ | ||
| && apt-get install -y libssl-dev \ | ||
| && apt-get install -y python3.5 \ | ||
| && apt-get install -y python3-pip | ||
| && apt-get install -y python3-pip | ||
|
|
||
| RUN \ | ||
| # Maven for custom builds | ||
|
|
@@ -50,23 +67,32 @@ RUN \ | |
| && pip3 install kafka-python==1.3.2 \ | ||
| && pip3 install bokeh==0.12.4 | ||
|
|
||
| # Create a directory to | ||
| RUN mkdir ~/.ssh | ||
| COPY ./config/ssh_config .ssh/config | ||
|
|
||
| RUN \ | ||
| # Sbt | ||
| # git clone during image build and setting enviroment variables | ||
| cd ~ \ | ||
| && git clone https://yogeshgo05@github.com/abgoswam/streamai | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://github.com/abgoswam/streamaiis it the same as doing git clone on base URL i.e. 'git clone https://github.com/abgoswam/streamai'
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there is a failure at this step.. Step 10/13 : COPY ./config/ssh_config .ssh/config lstat config/ssh_config: no such file or directory
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok thanks , its not happening to me . I will look at it |
||
|
|
||
| RUN \ | ||
| #Sbt | ||
| cd ~ \ | ||
| && wget https://dl.bintray.com/sbt/native-packages/sbt/${SBT_VERSION}/sbt-${SBT_VERSION}.tgz \ | ||
| && tar xvzf sbt-${SBT_VERSION}.tgz \ | ||
| && rm sbt-${SBT_VERSION}.tgz \ | ||
| && ln -s /root/sbt/bin/sbt /usr/local/bin \ | ||
| # Sbt Clean - This seems weird, but it triggers the full Sbt install which involves a lot of external downloads | ||
| && sbt clean clean-files | ||
|
|
||
| #Sbt Clean - This seems weird, but it triggers the full Sbt install which involves a lot of external downloads | ||
| && sbt clean clean-files | ||
|
|
||
| RUN \ | ||
| # Apache Kafka | ||
| #Apache Kafka | ||
| cd ~ \ | ||
| && wget http://apache.claz.org/kafka/${KAFKA_CLIENT_VERSION}/kafka_${SCALA_MAJOR_VERSION}-${KAFKA_CLIENT_VERSION}.tgz \ | ||
| && tar -xvzf kafka_${SCALA_MAJOR_VERSION}-${KAFKA_CLIENT_VERSION}.tgz \ | ||
| && rm kafka_${SCALA_MAJOR_VERSION}-${KAFKA_CLIENT_VERSION}.tgz | ||
|
|
||
|
|
||
|
|
||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought you said that in to docker file you will also start zookeeper and kafka... (right now we do that by running the file 'streamai/binsc/setup/RUNME_ONCE.sh')... I dont see you starting the contents in the RUNME_ONCE.sh file could you clarify ? am i missing something ?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I removed the code that was starting kafka ,zookeeper and spark . Keep your work flow going as it is for now . I will add that code back with docker compose . We don't want all in the same container when you run on ECS
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if possible lets put 'streamai/binsc/setup/RUNME_ONCE.sh' in the docker file so that kafka and zookeeper start by default when we spin up new container |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git reads the keys from the .ssh folder from your home folder . Hence we need to have the ssh keys in that folder in order to execute the next command . I am using this branch for D3 and flask development .