-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from microsoft/philon/merge_ser
Merge latest changes from StackExchange.Redis repo
- Loading branch information
Showing
9 changed files
with
85 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ARG INSTALL_NODE=false | ||
ARG INSTALL_AZURE_CLI=false | ||
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:dev-5.0 | ||
|
||
ENV DOTNET_NOLOGO=true | ||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=true | ||
ENV DEVCONTAINER=true | ||
|
||
# install redis-cli and ping | ||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get -y install --no-install-recommends iputils-ping redis-tools mono-runtime | ||
|
||
# install SDK 3.1 | ||
RUN curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 3.1 --install-dir /usr/share/dotnet/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"MasterServer": "redis", | ||
"ReplicaServer": "redis", | ||
"SecureServer": "redis", | ||
"FailoverMasterServer": "redis", | ||
"FailoverReplicaServer": "redis", | ||
"RediSearchServer": "redisearch", | ||
"IPv4Server": "redis", | ||
"RemoteServer": "redis", | ||
"SentinelServer": "redis", | ||
"ClusterServer": "redis" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "StackExchange.Redis", | ||
"dockerComposeFile": [ | ||
"docker-compose.yml" | ||
], | ||
"service": "devcontainer", | ||
"workspaceFolder": "/workspace", | ||
"postCreateCommand": "dotnet restore Build.csproj", | ||
|
||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
"extensions": [ | ||
"ms-dotnettools.csharp", | ||
"ms-azuretools.vscode-docker" | ||
], | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: '3.7' | ||
|
||
services: | ||
devcontainer: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
volumes: | ||
- ..:/workspace:cached | ||
# Mount the TestConfig.json file as readonly, so that tests talk to services in the internal docker network | ||
# This leaves the original TestsConfig.json outside the devcontainer untouched | ||
- ./TestConfig.json:/workspace/tests/StackExchange.Redis.Tests/TestConfig.json:ro | ||
depends_on: | ||
- redis | ||
- redisearch | ||
links: | ||
- "redis:redis" | ||
- "redisearch:redisearch" | ||
command: /bin/sh -c "while sleep 1000; do :; done" | ||
redis: | ||
build: | ||
context: ../tests/RedisConfigs | ||
dockerfile: Dockerfile | ||
sysctls : | ||
net.core.somaxconn: '511' | ||
redisearch: | ||
image: redislabs/redisearch:latest |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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