Bootstrap:library
From: debian:9

%help

	Singularity container running Redis 5.0.0 for Debian 9 (Stretch)

%post

	#Update and install dependencies
	apt-get update
	apt-get install -y wget build-essential

	#Get redis and install it
	wget http://download.redis.io/releases/redis-5.0.0.tar.gz
	tar xzf redis-5.0.0.tar.gz
	cd redis-5.0.0
	make

%startscript

	#Start the server daemon with this command
	/redis-5.0.0/src/redis-server

%runscript

	#Start the Redis client with this command
	/redis-5.0.0/src/redis-cli
