-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
189 changed files
with
11,271 additions
and
1,230 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,29 @@ | ||
path_classifiers: | ||
library: | ||
# Treat source files for all compiled languages in the specs directories | ||
# as 3rd party library sources because they are not owned by us. | ||
# | ||
# Extensions from https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/. | ||
- "SPECS*/**/*.c" | ||
- "SPECS*/**/*.c++" | ||
- "SPECS*/**/*.cc" | ||
- "SPECS*/**/*.cpp" | ||
- "SPECS*/**/*.cs" | ||
- "SPECS*/**/*.cshtml" | ||
- "SPECS*/**/*.csproj" | ||
- "SPECS*/**/*.cts" | ||
- "SPECS*/**/*.cxx" | ||
- "SPECS*/**/*.go" | ||
- "SPECS*/**/*.h" | ||
- "SPECS*/**/*.h++" | ||
- "SPECS*/**/*.hh" | ||
- "SPECS*/**/*.hpp" | ||
- "SPECS*/**/*.hxx" | ||
- "SPECS*/**/*.java" | ||
- "SPECS*/**/*.kt" | ||
- "SPECS*/**/*.mts" | ||
- "SPECS*/**/*.sln" | ||
- "SPECS*/**/*.swift" | ||
- "SPECS*/**/*.ts" | ||
- "SPECS*/**/*.tsx" | ||
- "SPECS*/**/*.xaml" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
ARG BASE_IMAGE | ||
|
||
FROM $BASE_IMAGE | ||
|
||
@INCLUDE_MAIN_RUN_INSTRUCTION@ | ||
|
||
RUN set -eux && \ | ||
valkey-cli --version && \ | ||
valkey-server --version && \ | ||
mkdir /data && \ | ||
chown valkey:valkey /data | ||
|
||
VOLUME /data | ||
WORKDIR /data | ||
|
||
COPY valkey-docker-entrypoint.sh /usr/local/bin/ | ||
|
||
RUN chmod +x /usr/local/bin/valkey-docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["/usr/local/bin/valkey-docker-entrypoint.sh"] | ||
|
||
EXPOSE 6379 | ||
CMD ["valkey-server"] |
26 changes: 26 additions & 0 deletions
26
.pipelines/containerSourceData/valkey/configuration-files/valkey-docker-entrypoint.sh
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,26 @@ | ||
#!/bin/bash | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
set -e | ||
|
||
# first arg is `-f` or `--some-option` | ||
# or first arg is `something.conf` | ||
if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then | ||
set -- valkey-server "$@" | ||
fi | ||
|
||
# allow the container to be started with `--user` | ||
if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then | ||
find . \! -user valkey -exec chown valkey '{}' + | ||
exec setpriv --reuid=valkey --regid=valkey --init-groups --inh-caps=-all "$BASH_SOURCE" "$@" | ||
fi | ||
|
||
# set an appropriate umask (if one isn't set already) | ||
# - https://github.com/docker-library/redis/issues/305 | ||
# - https://github.com/redis/redis/blob/bb875603fb7ff3f9d19aad906bd45d7db98d9a39/utils/systemd-redis_server.service#L37 | ||
um="$(umask)" | ||
if [ "$um" = '0022' ]; then | ||
umask 0077 | ||
fi | ||
|
||
exec "$@" $VALKEY_EXTRA_FLAGS |
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 @@ | ||
valkey |
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,3 @@ | ||
valkey | ||
cronie | ||
util-linux |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.