forked from bitpoke/mysql-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'extra_image' of https://github.com/ksmartdata/mysql-ope…
…rator into extra_image # Conflicts: # .github/workflows/release.yml
- Loading branch information
Showing
3 changed files
with
40 additions
and
2 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
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,34 @@ | ||
FROM --platform=$TARGETPLATFORM docker.m.daocloud.io/redis:6.2.5-alpine | ||
|
||
|
||
#https://github.com/redis/redis/archive/refs/tags/6.2.5.tar.gz | ||
|
||
#RUN addgroup -S -g 1001 redis \ | ||
# && adduser -S -G redis -u 1001 redis \ | ||
# && apk add --no-cache su-exec tzdata make curl build-base linux-headers bash | ||
|
||
RUN apk add --no-cache su-exec tzdata make curl build-base linux-headers bash | ||
|
||
RUN mkdir -p /etc/redis | ||
|
||
COPY redis.conf /etc/redis/redis.conf | ||
|
||
COPY entrypoint.sh /usr/bin/entrypoint.sh | ||
|
||
COPY setupMasterSlave.sh /usr/bin/setupMasterSlave.sh | ||
|
||
COPY healthcheck.sh /usr/bin/healthcheck.sh | ||
|
||
RUN mkdir -p /opt/redis/ && chmod -R g+rwX /etc/redis /opt/redis | ||
|
||
RUN chmod +x /usr/bin/entrypoint.sh | ||
RUN chmod +x /usr/bin/setupMasterSlave.sh | ||
RUN chmod +x /usr/bin/healthcheck.sh | ||
|
||
VOLUME ["/data"] | ||
|
||
WORKDIR /data | ||
|
||
EXPOSE 6379 6379 | ||
|
||
ENTRYPOINT ["/usr/bin/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