orztv
commited on
Commit
·
94866c7
1
Parent(s):
55a0404
update
Browse files- Dockerfile +2 -0
- docker/startup.sh +7 -1
Dockerfile
CHANGED
@@ -17,6 +17,8 @@ RUN adduser -D -u 1000 nocodb && \
|
|
17 |
sed -i 's/# unixsocket/unixsocket/' /etc/redis.conf && \
|
18 |
sed -i 's/# unixsocketperm 700/unixsocketperm 777/' /etc/redis.conf && \
|
19 |
echo "pidfile /var/run/redis/redis.pid" >> /etc/redis.conf && \
|
|
|
|
|
20 |
chmod 644 /etc/redis.conf && \
|
21 |
chown -R nocodb:nocodb /etc/redis.conf /var/log/redis /var/run/redis /usr/app/data
|
22 |
|
|
|
17 |
sed -i 's/# unixsocket/unixsocket/' /etc/redis.conf && \
|
18 |
sed -i 's/# unixsocketperm 700/unixsocketperm 777/' /etc/redis.conf && \
|
19 |
echo "pidfile /var/run/redis/redis.pid" >> /etc/redis.conf && \
|
20 |
+
sed -i 's/^save/# save/' /etc/redis.conf && \
|
21 |
+
echo "stop-writes-on-bgsave-error no" >> /etc/redis.conf && \
|
22 |
chmod 644 /etc/redis.conf && \
|
23 |
chown -R nocodb:nocodb /etc/redis.conf /var/log/redis /var/run/redis /usr/app/data
|
24 |
|
docker/startup.sh
CHANGED
@@ -71,11 +71,17 @@ if ! redis-cli -p 6380 -a redis_password ping; then
|
|
71 |
exit 1
|
72 |
fi
|
73 |
|
|
|
|
|
|
|
74 |
log "检查 Redis 持久化配置..."
|
75 |
redis-cli -p 6380 -a redis_password CONFIG GET save
|
|
|
76 |
|
77 |
log "检查 Redis 数据目录权限..."
|
78 |
-
ls -
|
|
|
|
|
79 |
|
80 |
log "检查 Redis 数据目录可写性..."
|
81 |
touch /usr/app/data/test_file && rm /usr/app/data/test_file
|
|
|
71 |
exit 1
|
72 |
fi
|
73 |
|
74 |
+
log "Redis 配置文件:"
|
75 |
+
cat /etc/redis.conf
|
76 |
+
|
77 |
log "检查 Redis 持久化配置..."
|
78 |
redis-cli -p 6380 -a redis_password CONFIG GET save
|
79 |
+
redis-cli -p 6380 -a redis_password CONFIG GET stop-writes-on-bgsave-error
|
80 |
|
81 |
log "检查 Redis 数据目录权限..."
|
82 |
+
ls -ld /usr/app/data
|
83 |
+
ls -ld /var/log/redis
|
84 |
+
ls -ld /var/run/redis
|
85 |
|
86 |
log "检查 Redis 数据目录可写性..."
|
87 |
touch /usr/app/data/test_file && rm /usr/app/data/test_file
|