Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
knowledge-platform
Commits
8b39d3d7
Commit
8b39d3d7
authored
2 years ago
by
Vinu Kumar
Browse files
Options
Download
Patches
Plain Diff
Issue #KN-585 feat: Single click local installation of knowledge platform
parent
760d7baf
release-5.3.0
knowlg-oneclick
local-setup-kube
patch-1
patch-2
patch-3
release-5.2.0
release-5.2.0_RC2
release-5.2.0_RC1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+20
-1
README.md
docker-compose.yml
+61
-0
docker-compose.yml
local-setup.sh
+6
-0
local-setup.sh
with
87 additions
and
1 deletion
+87
-1
README.md
+
20
−
1
View file @
8b39d3d7
...
...
@@ -2,13 +2,32 @@
Repository for Knowledge Platform - 2.0
## Knowledge-platform local setup
## Knowledge-platform local setup
This readme file contains the instruction to set up and run the content-service in local machine.
### System Requirements:
### Prerequisites:
*
Java 11
*
Docker, Docker Compose
## One step installation
1.
Go to Root folder (knowledge-platform)
2.
Run "local-setup.sh" file
```
shell
sh ./local-setup.md
```
This will install all the requied dcoker images & local folders for DB mounting.
3.
Follow the below manual setps of running content service
refer:
[
Running Content Service:
](
#running-content-service
)
## Manual steps to install all the dependents
Please follow the manual steps in
[
One step installation
](
#one-step-installation
)
is failed.
### Prepare folders for database data and logs
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100755
+
61
−
0
View file @
8b39d3d7
version
:
"
3.0"
services
:
sunbird-neo4j
:
image
:
neo4j:3.3.0
container_name
:
"
sunbird_neo4j"
ports
:
-
7473:7473
-
7474:7474
-
7687:7687
volumes
:
-
$sunbird_dbs_path/neo4j/data:/var/lib/neo4j/data
-
$sunbird_dbs_path/neo4j/logs:/var/lib/neo4j/logs
-
$sunbird_dbs_path/neo4j/plugins:/var/lib/neo4j/plugins
environment
:
NEO4J_AUTH
:
none
NEO4J_dbms_connector_https_advertised__address
:
"
localhost:7473"
NEO4J_dbms_connector_http_advertised__address
:
"
localhost:7474"
NEO4J_dbms_connector_bolt_advertised__address
:
"
localhost:7687"
sunbird-cassandra
:
image
:
cassandra:3.11.11
container_name
:
"
sunbird_cassandra"
ports
:
-
9042:9042
depends_on
:
-
sunbird-neo4j
volumes
:
-
$sunbird_dbs_path/cassandra/data:/var/lib/cassandra
-
$sunbird_dbs_path/cassandra/logs:/opt/cassandra/logs
-
$sunbird_dbs_path/cassandra/backups:/mnt/backups
sunbird-redis
:
image
:
redis:6.0.8
container_name
:
"
sunbird_redis"
ports
:
-
6379:6379
command
:
redis-server /usr/local/etc/redis/redis.conf
volumes
:
-
$sunbird_dbs_path/redis/redis.conf:/usr/local/etc/redis/redis.conf
zookeeper
:
image
:
'
wurstmeister/zookeeper:latest'
container_name
:
zookeeper
ports
:
-
"
2181:2181"
environment
:
-
KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:2181
kafka
:
image
:
'
wurstmeister/kafka:2.11-1.0.1'
container_name
:
kafka
ports
:
-
"
9092:9092"
environment
:
-
KAFKA_BROKER_ID=1
-
KAFKA_LISTENERS=PLAINTEXT://:9092
-
KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
-
KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
-
ALLOW_PLAINTEXT_LISTENER=yes
depends_on
:
-
zookeeper
\ No newline at end of file
This diff is collapsed.
Click to expand it.
local-setup.sh
0 → 100755
+
6
−
0
View file @
8b39d3d7
#!/bin/bash
mkdir
-p
~/sunbird-dbs/neo4j ~/sunbird-dbs/cassandra ~/sunbird-dbs/redis ~/sunbird-dbs/es ~/sunbird-dbs/kafka
export
sunbird_dbs_path
=
~/sunbird-dbs
docker compose up
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets