Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

Add ability to use atomic run for redis container #238

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions redis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ MAINTAINER http://fedoraproject.org/wiki/Cloud
RUN dnf -y update && dnf clean all
RUN dnf -y install redis && dnf clean all

# This Label is used to run the image with atomic command
LABEL RUN='docker run -d -p 6379:6379 $IMAGE'

EXPOSE 6379

CMD [ "redis-server" ]
Expand Down
10 changes: 8 additions & 2 deletions redis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ To build:

Copy the sources down -

# docker build --rm -t <username>/redis .
# docker build --rm -t fedora/redis .

To run:

# docker run -d -p 6379:6379 <username>/redis
On Atomic host:

# atomic run fedora/redis

Non-Atomic host:

# docker run -d -p 6379:6379 fedora/redis

To test:

Expand Down