Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any Docker file for reference? #9

Closed
IDerr opened this issue May 17, 2022 · 4 comments
Closed

Is there any Docker file for reference? #9

IDerr opened this issue May 17, 2022 · 4 comments

Comments

@IDerr
Copy link
Contributor

IDerr commented May 17, 2022

Hello,

where can i find the docker images used in this project
tongduncloud/redis-cluster for example
And what's the difference between official images ?

Thanks a lot

@IDerr
Copy link
Contributor Author

IDerr commented May 20, 2022

i didn't found anything in this repo :(

@gaoshengL
Copy link
Collaborator

gaoshengL commented May 20, 2022

hi,there is nearly no difference between officila images,we only add some script and binary file(you can find in pod instance) into docker iamges,just like:

Dockerfile of redis standby:

FROM registry.tongdun.me/library/centos7.2-common:1.1.0
RUN mkdir /home/admin/redis && \
    cd /home/admin/redis && \
    mkdir output data script
COPY redis-server redis-cli redis-check-rdb docker-entrypoint.sh check_ok.py  check_master.py  redis-login.sh /usr/local/bin/
COPY init_redis.py /home/admin/redis/script
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 6379

Dockerfile of sentinel:

FROM registry.tongdun.me/library/centos7.2-common:1.1.0
RUN mkdir /home/admin/sentinel && \
    cd /home/admin/sentinel && \
    mkdir output && \
    mkdir script
COPY redis-cli redis-sentinel docker-entrypoint.sh  check_sentinel_alive.sh /usr/local/bin/
COPY sentinel.conf /home/admin/sentinel
COPY init_sentinel.py /home/admin/sentinel/script
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 26379

@houseonline houseonline changed the title Docker file Is there any Docker file for reference? Jun 21, 2022
@IDerr
Copy link
Contributor Author

IDerr commented Jul 19, 2022

Thanks for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants