File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,11 @@ jobs:
6969
7070      - name : tests 
7171        run : | 
72+           sudo sysctl vm.overcommit_memory=1 
7273          VALKEY_PRIMARY=$(tests/start_valkey.sh) 
7374          VALKEY_SENTINEL=$(tests/start_valkey.sh --sentinel) 
7475          CONTAINERS="$VALKEY_PRIMARY $VALKEY_SENTINEL" 
75-           trap "docker stop $CONTAINERS && docker rm $CONTAINERS" EXIT 
76+           trap "sudo docker logs --details $VALKEY_PRIMARY &&  docker stop $CONTAINERS && docker rm $CONTAINERS" EXIT 
7677          tests/wait_for_valkey.sh $VALKEY_PRIMARY 6379 
7778          tests/wait_for_valkey.sh $VALKEY_SENTINEL 26379 
7879
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ if [[ $SENTINEL == 0 ]]; then
4141  ARGS=(" ${ARGS[@]} " 
4242fi 
4343
44+ sudo chown $( id -u) $( id -g) 
45+ sudo chmod -R 777 /data
46+ 
4447#  start valkey
4548sudo docker run \
4649  --health-cmd " valkey-cli -p $PORT :$PORT  ping" 
@@ -50,4 +53,4 @@ sudo docker run \
5053  --network host \
5154  --user $( id -u) $( id -g) 
5255  --volume /tmp:/tmp \
53-   --detach valkey/valkey valkey-server " ${ARGS[@]} " 
56+   --detach valkey/valkey valkey-server " ${ARGS[@]} "  --save  " " 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments