Skip to content

Commit 3cfb107

Browse files
author
root
committed
Fixed deployment script
1 parent a688c03 commit 3cfb107

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

redis-message-server/docker-build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
mvn clean install
22

3-
unzip target/docker.zip -o -d target
3+
unzip target/docker.zip -d target
44

5-
docker build -t cspinformatique/redis-message-server target/docker
5+
docker build -t cspinformatique/redis-message-server target/docker

redis-message-server/docker-deploy.sh

100644100755
+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
docker rm -f wevan-redis wevan-redis-message-server
2+
13
docker-resources/scripts/deploy-redis.sh
2-
docker-resources/scripts/deploy-redis-message-server.sh
4+
docker-resources/scripts/deploy-redis-message-server.sh
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docker run --name wevan-redis-message-server --link wevan-redis:redis -d cspinformatique/redis-message-server
1+
docker run --name wevan-redis-message-server -p 8070:8080 --link wevan-redis:redis -e redis.hostname=redis -e redis.port=6379 -d cspinformatique/redis-message-server
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
REDIS_VOLUME_PATH=/docker-volumes/wevan-redis
22

3-
if [ ! -f $REDIS_DATA_PATH]; then
3+
if [ ! -f $REDIS_VOLUME_PATH ]; then
44
echo "Creating $REDIS_VOLUME_PATH"
55
mkdir -p $REDIS_VOLUME_PATH
66
fi
77

8-
CMD=docker run --name wevan-redis -v $REDIS_VOLUME_PATH:/data -d redis redis-server
8+
CMD="docker run --name wevan-redis -v $REDIS_VOLUME_PATH:/data -d redis"
99

1010
echo "Executing docker command :"
1111
echo " : $CMD"
1212

13-
$CMD
13+
$CMD

0 commit comments

Comments
 (0)