mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-30 23:26:36 +08:00
Bump infinity to v0.6.0-dev1 (#4448)
### What problem does this PR solve? Bump infinity to v0.6.0-dev1 and poetry to 2.0.1 ### Type of change - [x] Refactoring
This commit is contained in:
@ -39,7 +39,7 @@ services:
|
||||
container_name: ragflow-infinity
|
||||
profiles:
|
||||
- infinity
|
||||
image: infiniflow/infinity:v0.5.2
|
||||
image: infiniflow/infinity:v0.6.0-dev1
|
||||
volumes:
|
||||
- infinity_data:/var/infinity
|
||||
- ./infinity_conf.toml:/infinity_conf.toml
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
[general]
|
||||
version = "0.5.0"
|
||||
version = "0.6.0"
|
||||
time_zone = "utc-8"
|
||||
|
||||
[network]
|
||||
|
||||
@ -1,67 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# unset http proxy which maybe set by docker daemon
|
||||
export http_proxy=""; export https_proxy=""; export no_proxy=""; export HTTP_PROXY=""; export HTTPS_PROXY=""; export NO_PROXY=""
|
||||
|
||||
echo "Elasticsearch built-in user: elastic:${ELASTIC_PASSWORD}"
|
||||
|
||||
# Wait Elasticsearch be healthy
|
||||
while true; do
|
||||
response=$(curl -s -v -w "\n%{http_code}" -u "elastic:${ELASTIC_PASSWORD}" "http://es01:9200")
|
||||
exit_code=$?
|
||||
status=$(echo "$response" | tail -n1)
|
||||
if [ $exit_code -eq 0 ] && [ "$status" = "200" ]; then
|
||||
echo "Elasticsearch is healthy"
|
||||
break
|
||||
else
|
||||
echo "Elasticsearch is unhealthy: $exit_code $status"
|
||||
echo "$response"
|
||||
sleep 5
|
||||
fi
|
||||
done
|
||||
|
||||
# Create new role with all privileges to all indices
|
||||
# https://www.elastic.co/guide/en/elasticsearch/reference/current/security-privileges.html#privileges-list-indices
|
||||
echo "Going to create Elasticsearch role own_indices with all privileges to all indices"
|
||||
while true; do
|
||||
response=$(curl -s -v -w "\n%{http_code}" -u "elastic:${ELASTIC_PASSWORD}" -X POST http://es01:9200/_security/role/own_indices -H 'Content-Type: application/json' -d '{"indices": [{"names": ["*"], "privileges": ["all"]}]}')
|
||||
exit_code=$?
|
||||
status=$(echo "$response" | tail -n1)
|
||||
if [ $exit_code -eq 0 ] && [ "$status" = "200" ]; then
|
||||
echo "Elasticsearch role own_indices created"
|
||||
break
|
||||
else
|
||||
echo "Elasticsearch role own_indices failure: $exit_code $status"
|
||||
echo "$response"
|
||||
sleep 5
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Elasticsearch role own_indices:"
|
||||
curl -u "elastic:${ELASTIC_PASSWORD}" -X GET "http://es01:9200/_security/role/own_indices"
|
||||
echo ""
|
||||
|
||||
PAYLOAD="{\"password\": \"${KIBANA_PASSWORD}\", \"roles\": [\"kibana_admin\", \"kibana_system\", \"own_indices\"], \"full_name\": \"${KIBANA_USER}\", \"email\": \"${KIBANA_USER}@example.com\"}"
|
||||
|
||||
echo "Going to create Elasticsearch user ${KIBANA_USER}: ${PAYLOAD}"
|
||||
|
||||
# Create new user
|
||||
while true; do
|
||||
response=$(curl -s -v -w "\n%{http_code}" -u "elastic:${ELASTIC_PASSWORD}" -X POST http://es01:9200/_security/user/${KIBANA_USER} -H "Content-Type: application/json" -d "${PAYLOAD}")
|
||||
exit_code=$?
|
||||
status=$(echo "$response" | tail -n1)
|
||||
if [ $exit_code -eq 0 ] && [ "$status" = "200" ]; then
|
||||
echo "Elasticsearch user ${KIBANA_USER} created"
|
||||
break
|
||||
else
|
||||
echo "Elasticsearch user ${KIBANA_USER} failure: $exit_code $status"
|
||||
echo "$response"
|
||||
sleep 5
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Elasticsearch user ${KIBANA_USER}:"
|
||||
curl -u "elastic:${ELASTIC_PASSWORD}" -X GET "http://es01:9200/_security/user/${KIBANA_USER}"
|
||||
echo ""
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user