File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 branches : ['main']
88jobs :
99 tls :
10- runs-on : ubuntu-latest
10+ runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v2
1313 - name : install dependencies
Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ Optionally you may configure your `user`/`password` via environment variables. T
110110
111111### TLS
112112
113- Transport Layer Security (TLS) can be enabled in Redis and within the Triton Redis Cache, to do so you will need a TLS
114- enabled version of Redis, e.g. [ OSS Redis] ( https://redis.io/docs/management/security/encryption/ ) or
113+ Transport Layer Security (TLS) can be enabled in Redis and within the Triton Redis Cache, to do so you will need a TLS
114+ enabled version of Redis, e.g. [ OSS Redis] ( https://redis.io/docs/management/security/encryption/ ) or
115115[ Redis Enterprise] ( https://docs.redis.com/latest/rs/security/tls/enable-tls/ ) . You will also need to configure Triton Server to use TLS with Redis
116116through the following ` --cache-config ` TLS options.
117117
Original file line number Diff line number Diff line change 1- FROM nvcr.io/nvidia/tritonserver:23.03 -py3-sdk
1+ FROM nvcr.io/nvidia/tritonserver:23.06 -py3-sdk
22
3- RUN apt install -y lsb-release curl gpg
4- RUN curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
5- RUN echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/redis.list
6- RUN apt-get update
3+ RUN apt install -y lsb-release curl gpg
4+ RUN curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
5+ RUN echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/redis.list
6+ RUN apt-get update
77RUN apt-get install -y redis
88
99CMD "/app/test.sh"
Original file line number Diff line number Diff line change 99
1010numKeys=$( redis-cli -h triton-redis --tls --cert /certs/redis.crt --key /certs/redis.key --cacert /certs/ca.crt DBSIZE) # check that there's only one key
1111
12- if [[ $numKeys -eq 1 ]]; then
12+ if [[ $numKeys -eq 1 ]]; then
1313 exit 0
1414else
1515 echo " Redis did not have the expected number of keys."
Original file line number Diff line number Diff line change @@ -146,9 +146,10 @@ RedisCache::Create(
146146 poolOptions.wait_timeout = std::chrono::milliseconds (1000 );
147147 }
148148
149- // tls options
150- if (document.HasMember (" tls_enabled" )){
151- options.tls .enabled = strcmp (document[" tls_enabled" ].GetString (), " true" ) == 0 ;
149+ // tls options
150+ if (document.HasMember (" tls_enabled" )) {
151+ options.tls .enabled =
152+ strcmp (document[" tls_enabled" ].GetString (), " true" ) == 0 ;
152153 setOption (" cert" , options.tls .cert , document);
153154 setOption (" key" , options.tls .key , document);
154155 setOption (" cacert" , options.tls .cacert , document);
You can’t perform that action at this time.
0 commit comments