July 2018
Intermediate to advanced
504 pages
11h 34m
English
It is good practice to deploy an application in a separate namespace:
$ oc new-project dockerfileNow using project "dockerfile" on server "https://localhost:8443".
For this lab, we are going to use the redis container. First, we need a Dockerfile with additional files located at https://github.com/docker-library/redis.git. Let's clone this repository locally to understand its structure:
$ git clone https://github.com/docker-library/redis.gitCloning into 'redis'...remote: Counting objects: 738, done.remote: Compressing objects: 100% (15/15), done.remote: Total 738 (delta 7), reused 13 (delta 4), pack-reused 719Receiving objects: 100% (738/738), 108.56 KiB | 0 bytes/s, done.Resolving deltas: 100% (323/323), ...