Created
          June 7, 2022 05:15 
        
      - 
      
- 
        Save hSATAC/149badc5a4ac92e6dd18d839f0d01311 to your computer and use it in GitHub Desktop. 
    Install redis-cli with tls in alpine
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | export REDIS_VERSION="6.0.4" | |
| export REDIS_DOWNLOAD_URL="http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz" | |
| apk add --update --no-cache --virtual build-deps gcc make linux-headers musl-dev tar openssl-dev pkgconfig | |
| wget -O redis.tar.gz "$REDIS_DOWNLOAD_URL" | |
| mkdir -p /usr/src/redis | |
| tar -xzf redis.tar.gz -C /usr/src/redis --strip-components=1 | |
| cd /usr/src/redis/src | |
| make BUILD_TLS=yes MALLOC=libc redis-cli | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Uh oh!
There was an error while loading. Please reload this page.