Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.71 KB

File metadata and controls

42 lines (33 loc) · 1.71 KB

camellia-redis-proxy-nacos

compile(java21)

git clone https://github.com/caojiajun/camellia-jdk21-bootstraps.git
cd camellia-jdk21-bootstraps
mvn clean package

package to tar.gz and run

cd camellia-redis-proxy-bootstraps/camellia-redis-proxy-nacos-bootstrap
cp target/xxx.jar /yourdict/camellia-redis-proxy-nacos/redis-proxy-nacos.jar
cd /yourdict/camellia-redis-proxy-nacos
jar xvf redis-proxy-nacos.jar
rm -rf redis-proxy-nacos.jar
touch start.sh
echo "java -XX:+UseG1GC -Xms4096m -Xmx4096m -Dio.netty.tryReflectionSetAccessible=true --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/jdk.internal.access=ALL-UNNAMED --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/sun.net.util=ALL-UNNAMED -server org.springframework.boot.loader.launch.JarLauncher" > start.sh
chmod +x start.sh
cd ..
tar zcvf redis-proxy-nacos.tar.gz ./camellia-redis-proxy-nacos
tar xvf redis-proxy-nacos.tar.gz
cd camellia-redis-proxy-nacos
## modify config on ./BOOT-INF/classes, such as application.yml、logback.xml and more
./start.sh

build docker images and run

docker build -t camellia-redis-proxy-nacos -f docs/redis-proxy-nacos/Dockerfile .
docker run -d -p 6381:6381 -v /yourconfdict/application.yml:/opt/camellia-redis-proxy-nacos/BOOT-INF/classes/application.yml camellia-redis-proxy-nacos