-
-
Notifications
You must be signed in to change notification settings - Fork 465
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
Docker revamp #19
Open
heyqule
wants to merge
58
commits into
shirosaidev:master
Choose a base branch
from
heyqule:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Docker revamp #19
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
b292b6d
Add docker compose for kibana and elasticsearch
heyqule 4aef0a3
Merge remote-tracking branch 'upstream/master'
heyqule 8ee20b8
Add support for multiple set of nltk tokens. Controls by --index
heyqule 9dca234
Fequency adjustment
heyqule 74e6b36
Fully automate the build with docker
heyqule 53408c9
Add support to bypass fetching stock price outside of regular hours.
heyqule d5393e7
Fix time display
heyqule 4dc0238
Optimization
heyqule b7cda28
Fix hour() error
heyqule a8bf22a
Fix Cache Cleaning issue
heyqule aea6a59
Change startup.sh to startup.sample.sh
heyqule 64ddc35
Add Curl to python instance for cleaning purposes.
heyqule 004c17c
Clean cache
heyqule 3cd6de0
Change Kibana template
heyqule fde9181
Move news out of original sentiment script
heyqule 92a9447
Break down News SA
heyqule 4205c8c
remove exposed ports
heyqule ff5a8cf
Elasticsearch / Kibana 7.3 change
heyqule e310886
Add ndjson importer
heyqule 10502c8
Add ndjson importer
heyqule 7675154
Remove kibana 5.6 export
heyqule c2a7010
Fix kibana importer
heyqule cb42d10
Update Copyright
heyqule fd9fe56
Change to wt
heyqule 3a3b452
Change Mapping to 7.3 format
heyqule f3c1895
Disable twitter sentiment stream in start.sh
heyqule e6c9f1b
Rename original py to og.py
heyqule 3fc49a6
Change config handling
heyqule e86efe7
Fix twitter
heyqule 5f1d87f
Since it's single node insance, disable replica
heyqule 3e862ec
Refactors
heyqule 84c6324
Minor Import script adjustment
heyqule 4cd6af4
Index structure change
heyqule 622eae1
Fix message body
heyqule baa9d5f
Optimiaztion
heyqule 040887b
Add delay before fetching from elasticsearch .
heyqule 56901dc
Kibana change
heyqule abbc740
Kibana - remove legend
heyqule a6002ac
Add kibana listener
heyqule c6cf17b
Revert ndjson
heyqule bda22a4
Attempt to fix stock price operant error
heyqule b7226d4
Fix elastic mapping
heyqule 5cde9c9
Add delay for Seek Alpha
heyqule c3431c4
Add delay for Seek Alpha
heyqule d086bc6
- Separate sentiment for message and title
heyqule f84a379
- Kibana adjustment
heyqule 60e06fc
- Config adjustment
heyqule 0d7c7a4
- Improve Kibana dashboard
heyqule fb6bea1
- Improve Kibana Dashboard
heyqule 097c774
- Additonal Readme change
heyqule efc7387
- Fix kibana tmp folder issue
heyqule 175dd61
- Minor change to spawn timers
heyqule a178733
Minor Refactor
heyqule 9c55d3d
Merge branch 'master' into master
shirosaidev 6f38025
Fix issue found by shaggy63
heyqule 5d17a6c
Merge remote-tracking branch 'origin/master'
heyqule 646b0d9
Disable unnecessary exposed ports
heyqule b985410
Add copyright blocks to non-py files
heyqule File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
patreon: shirosaidev | ||
custom: https://www.paypal.me/shirosaidev | ||
custom: https://www.paypal.me/heyqule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# ./docker-compose.yml | ||
# | ||
#Copyright (C) Chris Park 2018-2019 | ||
#Copyright (C) Allen (Jian Feng) Xie 2019 | ||
#stocksight is released under the Apache 2.0 license. See | ||
#LICENSE for the full license text. | ||
version: '3' | ||
|
||
services: | ||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.1 | ||
environment: | ||
- cluster.name=elasticsearch | ||
- node.name=stockdata | ||
- cluster.initial_master_nodes=stockdata | ||
- bootstrap.memory_lock=true | ||
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | ||
volumes: | ||
- ./data:/usr/share/elasticsearch/data | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
nofile: | ||
soft: 65536 | ||
hard: 65536 | ||
nproc: | ||
soft: 4096 | ||
hard: 4096 | ||
#expose this port for local dev only! | ||
#ports: | ||
# - "9200:9200" | ||
restart: unless-stopped | ||
redis: | ||
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. Why has redis been added to container? 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. It serves as article cache. When you fetch the news article from the news page, added article won't add again. |
||
build: | ||
context: ./redis-docker | ||
#expose this port for local dev only! | ||
#ports: | ||
# - "6379:6379" | ||
restart: unless-stopped | ||
kibana: | ||
image: docker.elastic.co/kibana/kibana:7.3.1 | ||
depends_on: | ||
- elasticsearch | ||
ports: | ||
- "5601:5601" | ||
restart: unless-stopped | ||
python3: | ||
build: | ||
context: ./python-docker | ||
environment: | ||
#interval for getting stock price in seconds | ||
- stockprice_tick_time=120 | ||
#interval for getting stock news in seconds | ||
- news_sentiment_tick_time=3600 | ||
depends_on: | ||
- elasticsearch | ||
- redis | ||
volumes: | ||
- ./src:/usr/src/app | ||
restart: unless-stopped |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What does this do?
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.
It set the cluster name and node name. ElasticSearch wanted me to specify it.