Skip to content
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

add jina embedding support #345

Closed
wants to merge 294 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
294 commits
Select commit Hold shift + click to select a range
b0ad877
Added OpenAI compatible options and examples
hunkim Oct 15, 2024
3fabaf0
Merge pull request #16 from hunkimForks/main
LarFii Oct 16, 2024
10d1ac4
ollama test
LarFii Oct 16, 2024
2b49f6e
update README.md
LarFii Oct 16, 2024
72200af
update requirements.txt
LarFii Oct 16, 2024
cf869fc
update README.md
LarFii Oct 16, 2024
ed7e051
Merge pull request #25 from HKUDS/test
LarFii Oct 16, 2024
4bbe4f8
setup encoding modify
Oct 16, 2024
758d07d
Merge branch 'main' of https://github.com/JavieHush/LightRAG
Oct 16, 2024
1e74af5
Update README.md
LarFii Oct 16, 2024
8c6e8dd
Merge pull request #26 from HKUDS/test
LarFii Oct 16, 2024
5d70578
Merge branch 'HKUDS:main' into main
JavieHush Oct 17, 2024
7ab6999
Update README.md
LarFii Oct 17, 2024
0e0a037
Add Discord channel link
LarFii Oct 17, 2024
a2f1654
fix Ollama bugs
LarFii Oct 17, 2024
70dbca1
update Step_3.py and openai compatible script
russellkim Oct 17, 2024
19717e4
Merge pull request #39 from russellkim/main
LarFii Oct 18, 2024
996c954
Add a link to a LightRAG explanatory video
LarFii Oct 18, 2024
d04f70d
Update README.md
HKUDS Oct 18, 2024
f576a28
Create lightrag_azure_openai_demo.py
lightrag Oct 18, 2024
e7a7ff6
Update operate.py
lightrag Oct 18, 2024
7050875
Added support for Amazon Bedrock models
JGalego Oct 18, 2024
75a91d9
Fixed retry strategy, message history and inference params; Cleaned u…
JGalego Oct 18, 2024
a7b43d2
Add comment specifying jupyter req
wrosko Oct 19, 2024
b854ab4
Merge pull request #49 from JGalego/feat/bedrock-support
LarFii Oct 19, 2024
cba9b9c
Merge pull request #54 from wrosko/patch-1
LarFii Oct 19, 2024
e2db7b6
fix prompt.py
LarFii Oct 19, 2024
744dad3
chore: added pre-commit-hooks and ruff formatting for commit-hooks
sank8-2 Oct 19, 2024
12c960c
Merge pull request #56 from sank8-2/dev
LarFii Oct 19, 2024
4945027
Update README.md
LarFii Oct 19, 2024
263cde8
add visualizing graph
Oct 20, 2024
a7e4340
delete not used files
Oct 20, 2024
c6585ff
ignore idea files
Oct 20, 2024
347e8a9
'update'
hanbin49 Oct 20, 2024
d20d725
Merge pull request #64 from hanbin49/v2
LarFii Oct 20, 2024
a716e62
Add vram_management_demo.py
LarFii Oct 20, 2024
ae4aafb
Update README.md
LarFii Oct 20, 2024
7b36116
Merge pull request #62 from BinNong/main
LarFii Oct 20, 2024
c800fa4
Update README.md
LarFii Oct 20, 2024
f400b02
make graph visualization become colorful
BinNong Oct 20, 2024
f3a0459
Merge pull request #70 from BinNong/main
LarFii Oct 20, 2024
8e9005b
Add visualization methods
LarFii Oct 20, 2024
95c5ffe
Update __init__.py
LarFii Oct 20, 2024
57e9604
Update README.md
HKUDS Oct 20, 2024
0174553
Merge branch 'HKUDS:main' into main
JavieHush Oct 21, 2024
32188fe
add import and rm duplicate working dir in README
sebastianschramm Oct 21, 2024
6941f3e
Add ability to passadditional parameters to ollama library like host …
alazarchuk Oct 21, 2024
216813c
Add ability to passadditional parameters to ollama library like host …
alazarchuk Oct 21, 2024
f7d1e43
Merge remote-tracking branch 'origin/main' into fix-ollama-integration
alazarchuk Oct 21, 2024
3d0b954
Merge pull request #78 from sebastianschramm/ses/improve_readme_example
LarFii Oct 21, 2024
2720442
Update README.md
LarFii Oct 21, 2024
0d44308
Small fix on demo
alazarchuk Oct 21, 2024
d517ef9
added a class to use multiple models
Soumil32 Oct 21, 2024
c69a360
Update llm.py
abylikhsanov Oct 21, 2024
274d0fc
feat(examples): support siliconcloud free API
tpoisonooo Oct 22, 2024
a52ae45
Merge branch 'HKUDS:main' into main
JavieHush Oct 22, 2024
6412400
set encoding as utf-8 when reading ./book.txt in examples
Oct 22, 2024
a9e1c23
Merge branch 'main' of https://github.com/JavieHush/LightRAG
Oct 22, 2024
2aa576f
Merge pull request #3 from alazarchuk/fix-ollama-integration
alazarchuk Oct 22, 2024
c9baa4e
Finetune example to be able to run ollama example without need to twe…
alazarchuk Oct 22, 2024
b022700
Merge pull request #4 from alazarchuk/fix-ollama-integration
alazarchuk Oct 22, 2024
53a1ee9
Merge pull request #98 from JavieHush/main
LarFii Oct 23, 2024
a7364bc
Merge pull request #96 from tpoisonooo/support-siliconcloud
LarFii Oct 23, 2024
cd41fa1
Merge branch 'main' into main
LarFii Oct 23, 2024
ab07401
Merge pull request #88 from abylikhsanov/main
LarFii Oct 23, 2024
5e388f3
Merge pull request #87 from Soumil32/main
LarFii Oct 23, 2024
7fa7bd5
Update lightrag_siliconcloud_demo.py
tpoisonooo Oct 23, 2024
db5bbcd
Merge pull request #107 from tpoisonooo/patch-1
LarFii Oct 23, 2024
e20d2a0
Update base.py
LarFii Oct 23, 2024
0bfcc00
Update README.md
LarFii Oct 23, 2024
2fb3fd2
Update README.md
LarFii Oct 23, 2024
5972958
Update README.md
LarFii Oct 23, 2024
63c0283
fix hf bug
tackhwa Oct 23, 2024
fd30ae4
move_code
tackhwa Oct 23, 2024
6f40fad
Merge pull request #110 from tackhwa/main
LarFii Oct 23, 2024
f0856b9
[hotfix-#75][embedding] Fix the potential embedding problem
Dormiveglia-elf Oct 23, 2024
1a25c85
Merge pull request #116 from Dormiveglia-elf/hotfix/embedding-dim
LarFii Oct 24, 2024
516b4df
Update lightrag.py
tpoisonooo Oct 25, 2024
ef41871
Update operate.py
tpoisonooo Oct 25, 2024
8fbbf70
Added linting actions for pull request
sank8-2 Oct 25, 2024
5e3ab98
Manually reformatted files
sank8-2 Oct 25, 2024
a168316
fix Step_3_openai_compatible.py
LarFii Oct 25, 2024
45eceb0
Merge pull request #123 from tpoisonooo/patch-2
LarFii Oct 25, 2024
72ce8b8
Key Enhancements:
jatin009v Oct 25, 2024
526cc06
adding neo4j integration
wiltshirek Oct 25, 2024
542f883
add Algorithm Flowchart
thinkthinking Oct 25, 2024
e5cb01b
add Algorithm FLowchart
thinkthinking Oct 25, 2024
d9054c6
fix hf output bug
tackhwa Oct 25, 2024
5bfd107
Update token length
tackhwa Oct 25, 2024
7b589d4
adding neo4j
wiltshirek Oct 25, 2024
e3d978d
fixing bug
Yazington Oct 26, 2024
e099019
Merge pull request #130 from jatin9823/main
LarFii Oct 26, 2024
f192041
Merge pull request #125 from sank8-2/main
LarFii Oct 26, 2024
f6e97c0
Update graph_visual_with_html.py
LarFii Oct 26, 2024
fd68757
Merge pull request #138 from tackhwa/main
LarFii Oct 26, 2024
21eaf76
Merge pull request #141 from Yazington/feature/other-storage
LarFii Oct 26, 2024
57dd4ac
Merge pull request #134 from thinkthinking/main
LarFii Oct 26, 2024
4d078e9
update version
LarFii Oct 26, 2024
02f94ab
[feat] Add API server implementation and endpoints
thinkthinking Oct 26, 2024
08feac9
Refactor code formatting in lightrag_api_openai_compatible_demo.py
thinkthinking Oct 26, 2024
fb84c1e
Refactor code formatting in lightrag_api_openai_compatible_demo.py
thinkthinking Oct 26, 2024
88f4e34
support lmdeploy backend
tackhwa Oct 26, 2024
f71e389
Refactor code formatting in lightrag_api_openai_compatible_demo.py
thinkthinking Oct 26, 2024
2120a6d
pre-commit
tackhwa Oct 26, 2024
81d5b90
update do_preprocess
tackhwa Oct 26, 2024
627776d
adding neo4j
wiltshirek Oct 26, 2024
474fe59
use seperate module
wiltshirek Oct 26, 2024
0796d3d
inference running locally. use neo4j next
wiltshirek Oct 27, 2024
b22049c
Merge pull request #144 from tackhwa/lmdeploy_backend
LarFii Oct 28, 2024
12d4c69
Merge pull request #143 from thinkthinking/main
LarFii Oct 28, 2024
6fe468b
Update README.md
LarFii Oct 28, 2024
b202121
Update README.md
LarFii Oct 28, 2024
478998b
Merge branch 'main' into before-sync-28-10-2024
alazarchuk Oct 28, 2024
29bf41d
Fix lint issue
alazarchuk Oct 28, 2024
51c0788
Update README with more details
alazarchuk Oct 28, 2024
9671584
Merge pull request #5 from alazarchuk/before-sync-28-10-2024
alazarchuk Oct 28, 2024
ddd4aa4
Merge pull request #156 from alazarchuk/main
LarFii Oct 29, 2024
b6a216e
Update README.md
MrGidea Oct 29, 2024
2294e40
Update README.md
MrGidea Oct 29, 2024
12a85bc
Update README.md
MrGidea Oct 29, 2024
9fd2add
Update README.md
MrGidea Oct 29, 2024
3e99d3f
Update README.md
LarFii Oct 29, 2024
31c61bd
Update README.md
MrGidea Oct 29, 2024
dbeceac
Merge branch 'HKUDS:main' into main
MrGidea Oct 29, 2024
ea5e63e
Merge pull request #164 from MrGidea/main
LarFii Oct 29, 2024
4761a73
[hotfix-#163] Fix asynchronous problem
Dormiveglia-elf Oct 29, 2024
7364735
edge degree next almost done
wiltshirek Oct 29, 2024
d869386
Merge pull request #168 from Dormiveglia-elf/hotfix/asynchronous
LarFii Oct 30, 2024
013d8ce
Update README.md
HKUDS Oct 30, 2024
c997273
Update README.md
HKUDS Oct 30, 2024
c2ebb81
index to neo4j working and tested. check queires next.
wiltshirek Oct 30, 2024
185f3b1
fix:Step_3.py context
WinstonCHEN1 Oct 30, 2024
df671a2
Merge pull request #177 from WinstonCHEN1/main
LarFii Oct 31, 2024
11f5496
Update operate.py
gogoswift Oct 31, 2024
e434469
Update utils.py
gogoswift Oct 31, 2024
00d570e
Update operate.py
gogoswift Oct 31, 2024
7d884b9
Update utils.py
gogoswift Oct 31, 2024
11b9403
Update operate.py
gogoswift Oct 31, 2024
e44046f
set kg by start param, defaults to networkx
wiltshirek Nov 1, 2024
c86bc0e
securing for production with env vars for creds
wiltshirek Nov 1, 2024
caa24ee
env var naming conflict, qualified by prefix
wiltshirek Nov 1, 2024
ca65e36
cleaning code for pull
wiltshirek Nov 1, 2024
2c6cc20
cleaning code for pull
wiltshirek Nov 1, 2024
620be71
cleaning code for pull
wiltshirek Nov 1, 2024
40e80eb
Merge branch 'main' into main
wiltshirek Nov 1, 2024
f19af82
using neo4j async
wiltshirek Nov 2, 2024
d1e3f36
Merge pull request #183 from gogoswift/main
LarFii Nov 3, 2024
6dd778e
Update utils.py
LarFii Nov 3, 2024
5aa3be9
linting errors fixed
wiltshirek Nov 3, 2024
346e968
Merge branch 'HKUDS:main' into main
wiltshirek Nov 3, 2024
6d9bd10
Merge pull request #197 from wiltshirek/main
LarFii Nov 4, 2024
c523dd6
Update README.md
LarFii Nov 4, 2024
ae41894
Update README.md
HKUDS Nov 5, 2024
1f699f1
Update README.md
LarFii Nov 5, 2024
534efce
Update README.md
LarFii Nov 5, 2024
f098bd5
fastapi接收环境变量EMBEDDING_MODEL、LLM_MODEL、OPENAI_API_KEY、OPENAI_BASE_URL…
monk-after-90s Nov 5, 2024
8adc485
Merge remote-tracking branch 'origin/main'
monk-after-90s Nov 5, 2024
7d26419
docs(README): 添加环境变量配置说明
monk-after-90s Nov 5, 2024
8d00f5a
API中可以通过POST参数控制查询是否only_need_context
monk-after-90s Nov 5, 2024
b2a5235
README
monk-after-90s Nov 5, 2024
5099a2e
refactor(lightrag): 优化文件上传接口
monk-after-90s Nov 5, 2024
c956e39
bug fix issue #95
benx13 Nov 6, 2024
d644ee5
feat(lightrag): 添加环境变量控制嵌入层最大 token 数量
monk-after-90s Nov 6, 2024
bc9cfcb
集中处理环境变量
monk-after-90s Nov 6, 2024
a73ef6e
event loop issue
wiltshirek Nov 6, 2024
ac0b7fd
fix event loop conflict
wiltshirek Nov 6, 2024
41f24af
Merge branch 'HKUDS:main' into main
wiltshirek Nov 6, 2024
42b2c81
Merge pull request #211 from monk-after-90s/main
LarFii Nov 7, 2024
928c8bf
Merge pull request #221 from wiltshirek/main
LarFii Nov 7, 2024
36e9236
Merge branch 'main' into main
LarFii Nov 7, 2024
7c5080e
Merge pull request #215 from benx13/main
LarFii Nov 7, 2024
27b25f6
fix typo
LarFii Nov 7, 2024
d86aed7
Update README.md
LarFii Nov 7, 2024
1bc4e23
Oracle Database support
jin38324 Nov 8, 2024
7fadd91
Update README.md
jin38324 Nov 8, 2024
b690e07
support Oracle Database storage
jin38324 Nov 8, 2024
6e56c83
support Oracle DB
jin38324 Nov 8, 2024
07c0238
support Oralce DB
jin38324 Nov 8, 2024
20a8136
Update README.md
HTplex Nov 9, 2024
6a3729b
Added GUI (linked), updated README.md
aiproductguy Nov 10, 2024
a0a71b0
Merge pull request #240 from HTplex/patch-1
LarFii Nov 11, 2024
791917e
Merge pull request #241 from aiproductguy/patch-1
LarFii Nov 11, 2024
b6b2e69
Linting
LarFii Nov 11, 2024
39cf939
Update README.md
LarFii Nov 11, 2024
a8ec12e
fix bug
jin38324 Nov 11, 2024
40b5327
Merge branch 'main' of https://github.com/jin38324/LightRAG
jin38324 Nov 11, 2024
f905305
Update oracle_impl.py
jin38324 Nov 11, 2024
ff0c763
Update oracle_impl.py
jin38324 Nov 11, 2024
c89bf79
Create lightrag_api_oracle_demo..py
jin38324 Nov 11, 2024
b1f3500
Add delete method
LarFii Nov 11, 2024
379b310
update
LarFii Nov 11, 2024
e40549c
Update Discord link
LarFii Nov 11, 2024
273600d
add Oracle support
jin38324 Nov 12, 2024
2a13bf9
Update README.md
HKUDS Nov 12, 2024
45156ef
add oracle support
jin38324 Nov 12, 2024
5dce625
Update oracle_impl.py
jin38324 Nov 12, 2024
e5383ed
Merge branch 'HKUDS:main' into main
jin38324 Nov 12, 2024
66799fb
Update oracle_impl.py
jin38324 Nov 12, 2024
9079074
Update oracle_impl.py
jin38324 Nov 12, 2024
33caba3
fix pre commit
jin38324 Nov 12, 2024
5a1e657
Merge pull request #257 from jin38324/main
LarFii Nov 12, 2024
d904f2a
Update lightrag_api_oracle_demo..py
LarFii Nov 12, 2024
83f8a51
Only update storage if there was something to insert
detaos Nov 12, 2024
3d37888
Merge pull request #263 from detaos/detaos-patch-1
LarFii Nov 13, 2024
38e1956
fix hf embedding to support loading to different device
davidleon Nov 13, 2024
87aad35
Merge pull request #266 from davidleon/fix_hf_embedding_device
LarFii Nov 13, 2024
30cf5a6
fix cache bug
LarFii Nov 14, 2024
371e444
Update Discord Link
LarFii Nov 14, 2024
186cd34
Update Discord Link
LarFii Nov 14, 2024
d658968
use oracle bind variables to avoid error
jin38324 Nov 15, 2024
5661d76
fix neo4j bug
Sucran Nov 15, 2024
8e16f08
change the type of binding parameters in Oracle23AI
tmuife Nov 18, 2024
89d7967
use pre-commit reformat
tmuife Nov 18, 2024
e203aad
fix:error working directory name in Step_1.py
WinstonCHEN1 Nov 18, 2024
7aa53c6
Merge pull request #295 from tmuife/change_bind_prarm_type
LarFii Nov 19, 2024
b7ccf98
Merge pull request #300 from WinstonCHEN1/main
LarFii Nov 19, 2024
c9becdf
A more robust approach for result to json.
Luobots Nov 19, 2024
93e0dcf
Merge pull request #286 from Sucran/main
LarFii Nov 19, 2024
14cd7ba
Merge pull request #302 from Luobots/main
LarFii Nov 19, 2024
bcaaaad
Update
LarFii Nov 19, 2024
9d871fb
Update README.md
LarFii Nov 19, 2024
a50ed0b
Update README.md
LarFii Nov 19, 2024
2a3d92b
使用AzureOpenAI实现,支持RPM/TPM限制。修复原先429响应即抛出异常的问题
magicyuan876 Nov 21, 2024
e0488bc
Update Discord Link
LarFii Nov 21, 2024
116e1d2
修改了relation_counts计数规则
zzzcccxx Nov 21, 2024
717afe4
Update lightrag_azure_openai_demo.py
magicyuan876 Nov 21, 2024
143f82d
Update lightrag_azure_openai_demo.py
magicyuan876 Nov 21, 2024
f51b5c6
更新format
magicyuan876 Nov 21, 2024
e6f380f
删除Neo4JStorage.has_edge中定义的没有用到的同步close函数
Lizidong01 Nov 22, 2024
b267f30
Merge pull request #316 from magicyuan876/patch-1
LarFii Nov 22, 2024
8b4da85
Merge pull request #318 from zzzcccxx/main
LarFii Nov 22, 2024
6aeb2cf
Merge pull request #320 from Lizidong01/main
LarFii Nov 22, 2024
8161bd1
Update README.md
HKUDS Nov 22, 2024
af3aef5
Optimization logic
jin38324 Nov 25, 2024
bf5815b
Merge branch 'main' of https://github.com/jin38324/LightRAG
jin38324 Nov 25, 2024
21f1613
Logic Optimization
jin38324 Nov 25, 2024
b5050ba
Update oracle_impl.py
jin38324 Nov 25, 2024
0ffd44b
Update oracle_impl.py
jin38324 Nov 25, 2024
ac1587a
Add a progress bar
LarFii Nov 25, 2024
abc56d6
Add custom KG insertion
LarFii Nov 25, 2024
6b070af
Update README.md
HKUDS Nov 25, 2024
5bde05e
add LightRAG init parameters in readme
jin38324 Nov 26, 2024
28bc45c
fix formate
jin38324 Nov 26, 2024
a889080
Merge branch 'HKUDS:main' into main
jin38324 Nov 27, 2024
69867da
Update insert_custom_kg.py
jin38324 Nov 27, 2024
2d36d1a
Merge pull request #325 from jin38324/main
LarFii Nov 27, 2024
58bdc73
Update README.md
LarFii Nov 27, 2024
ba25614
fix templating of language in prompts
sebastianschramm Nov 28, 2024
f3fe5d3
Merge pull request #343 from sebastianschramm/ses/fix_language_templa…
LarFii Nov 28, 2024
275b47b
add jina embedding support
davidleon Nov 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
30 changes: 30 additions & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Linting and Formatting

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint-and-format:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit

- name: Run pre-commit
run: pre-commit run --all-files
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
__pycache__
*.egg-info
dickens/
book.txt
lightrag-dev/
.idea/
dist/
env/
local_neo4jWorkDir/
neo4jWorkDir/
ignore_this.txt
.venv/
*.ignore.*
.ruff_cache/
gui/
*.log
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: requirements-txt-fixer


- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.4
hooks:
- id: ruff-format
- id: ruff
args: [--fix]


- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
stages: [manual]
56 changes: 56 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
FROM debian:bullseye-slim
ENV JAVA_HOME=/opt/java/openjdk
COPY --from=eclipse-temurin:17 $JAVA_HOME $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}" \
NEO4J_SHA256=7ce97bd9a4348af14df442f00b3dc5085b5983d6f03da643744838c7a1bc8ba7 \
NEO4J_TARBALL=neo4j-enterprise-5.24.2-unix.tar.gz \
NEO4J_EDITION=enterprise \
NEO4J_HOME="/var/lib/neo4j" \
LANG=C.UTF-8
ARG NEO4J_URI=https://dist.neo4j.org/neo4j-enterprise-5.24.2-unix.tar.gz

RUN addgroup --gid 7474 --system neo4j && adduser --uid 7474 --system --no-create-home --home "${NEO4J_HOME}" --ingroup neo4j neo4j

COPY ./local-package/* /startup/

RUN apt update \
&& apt-get install -y curl gcc git jq make procps tini wget \
&& curl --fail --silent --show-error --location --remote-name ${NEO4J_URI} \
&& echo "${NEO4J_SHA256} ${NEO4J_TARBALL}" | sha256sum -c --strict --quiet \
&& tar --extract --file ${NEO4J_TARBALL} --directory /var/lib \
&& mv /var/lib/neo4j-* "${NEO4J_HOME}" \
&& rm ${NEO4J_TARBALL} \
&& sed -i 's/Package Type:.*/Package Type: docker bullseye/' $NEO4J_HOME/packaging_info \
&& mv /startup/neo4j-admin-report.sh "${NEO4J_HOME}"/bin/neo4j-admin-report \
&& mv "${NEO4J_HOME}"/data /data \
&& mv "${NEO4J_HOME}"/logs /logs \
&& chown -R neo4j:neo4j /data \
&& chmod -R 777 /data \
&& chown -R neo4j:neo4j /logs \
&& chmod -R 777 /logs \
&& chown -R neo4j:neo4j "${NEO4J_HOME}" \
&& chmod -R 777 "${NEO4J_HOME}" \
&& chmod -R 755 "${NEO4J_HOME}/bin" \
&& ln -s /data "${NEO4J_HOME}"/data \
&& ln -s /logs "${NEO4J_HOME}"/logs \
&& git clone https://github.com/ncopa/su-exec.git \
&& cd su-exec \
&& git checkout 4c3bb42b093f14da70d8ab924b487ccfbb1397af \
&& echo d6c40440609a23483f12eb6295b5191e94baf08298a856bab6e15b10c3b82891 su-exec.c | sha256sum -c \
&& echo 2a87af245eb125aca9305a0b1025525ac80825590800f047419dc57bba36b334 Makefile | sha256sum -c \
&& make \
&& mv /su-exec/su-exec /usr/bin/su-exec \
&& apt-get -y purge --auto-remove curl gcc git make \
&& rm -rf /var/lib/apt/lists/* /su-exec


ENV PATH "${NEO4J_HOME}"/bin:$PATH

WORKDIR "${NEO4J_HOME}"

VOLUME /data /logs

EXPOSE 7474 7473 7687

ENTRYPOINT ["tini", "-g", "--", "/startup/docker-entrypoint.sh"]
CMD ["neo4j"]
Loading
Loading