From Fedora Project Wiki
(Created page with "This is a simple testcase to determine whether the latest Fedora docker image run properly. {{Admon/note|Prerequisite|This testcase assumes you have already ran the [https://f...")
 
No edit summary
 
Line 5: Line 5:


# Download the latest image using curl like so:
# Download the latest image using curl like so:
   curl https://dl.fedoraproject.org/pub/alt/stage/22_TC1/Docker/x86_64/Fedora-Docker-Base-22_TC1-20150428.x86_64.tar.xz > F22.tar.xz
   curl http://alt.fedoraproject.org/pub/alt/stage/23_Beta_RC1/Docker/x86_64/Fedora-Docker-Base-23_Beta-20150915.x86_64.tar.xz > F23.tar.xz
# Load the tar.gz docker image into the docker daemon like so:
# Load the tar.gz docker image into the docker daemon like so:
   docker load -i F22.tar.xz
   docker load -i F23.tar.xz
# Run a dockerized application using the tag from the image
# Run a dockerized application using the tag from the image
# Example:
# Example:
   docker run -it --rm Fedora-Docker-Base-22_TC1-20150428.x86_64 true && echo "PASS" || echo "FAIL"
   docker run -it --rm Fedora-Docker-Base-23_Beta-20150915.x86_64 true && echo "PASS" || echo "FAIL"
results=
results=
# Output from the example command should resemble:
# Output from the example command should resemble:
  PASS
  PASS

Latest revision as of 15:40, 22 September 2015

This is a simple testcase to determine whether the latest Fedora docker image run properly.

Prerequisite
This testcase assumes you have already ran the boot test.
  1. Ensure you have a booted working Atomic Host and have downloaded (using curl) the latest docker image
  1. Download the latest image using curl like so:
 curl http://alt.fedoraproject.org/pub/alt/stage/23_Beta_RC1/Docker/x86_64/Fedora-Docker-Base-23_Beta-20150915.x86_64.tar.xz > F23.tar.xz
  1. Load the tar.gz docker image into the docker daemon like so:
 docker load -i F23.tar.xz
  1. Run a dockerized application using the tag from the image
  2. Example:
 docker run -it --rm Fedora-Docker-Base-23_Beta-20150915.x86_64 true && echo "PASS" || echo "FAIL"

results=

  1. Output from the example command should resemble:
PASS