This project is not aimed at public consumption. It exists to serve as a single endpoint for SICZ containers.
An image intended to run Docker image tests using RSpec and ServerSpec.
This image contains tools for testing Docker images:
- sicz/baseimage-alpine as a base image.
- Docker provides a Docker command line tools and engine
- Docker Compose provides a Docker Compose command line tools
- RSpec provides a Ruby testing framework
- ServerSpec provides a server testing framework for RSpec
- Docker API provides an interface for Docker Remote API
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See Deployment for notes on how to deploy the project on a live system.
Clone the GitHub repository into your working directory:
git clone https://github.com/sicz/docker-dockerspec
Use the command make
in the project directory:
make all # Build a new image and run the tests
make ci # Build a new image and run the tests
make build # Build a new image
make rebuild # Build a new image without using the Docker layer caching
make config-file # Display the configuration file for the current configuration
make vars # Display the make variables for the current configuration
make up # Remove the containers and then run them fresh
make create # Create the containers
make start # Start the containers
make stop # Stop the containers
make restart # Restart the containers
make rm # Remove the containers
make wait # Wait for the start of the containers
make ps # Display running containers
make logs # Display the container logs
make logs-tail # Follow the container logs
make shell # Run the shell in the container
make test # Run the tests
make test-shell # Run the shell in the test container
make clean # Remove all containers and work files
make docker-pull # Pull all images from the Docker Registry
make docker-pull-baseimage # Pull the base image from the Docker Registry
make docker-pull-dependencies # Pull the project image dependencies from the Docker Registry
make docker-pull-image # Pull the project image from the Docker Registry
make docker-pull-testimage # Pull the test image from the Docker Registry
make docker-push # Push the project image into the Docker Registry
You can test your container with commands:
cd MY_IMAGE
docker run -d --name=my_container MY_IMAGE
docker run -t \
-e CONTAINER_NAME=my_container \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/root/project \
-w /root/project \
--rm \
sicz/dockerspec --format=doc
- Petr Řehoř - Initial work.
See also the list of contributors who participated in this project.
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.