Skip to Content
Learn OpenShift
book

Learn OpenShift

by Denis Zuev, Artemii Kropachev, Aleksey Usov
July 2018
Intermediate to advanced
504 pages
11h 34m
English
Packt Publishing
Content preview from Learn OpenShift

Building an application from Dockerfile

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), ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Operating OpenShift

Operating OpenShift

Rick Rackow, Manuel Dewald
OpenShift for Developers, 2nd Edition

OpenShift for Developers, 2nd Edition

Joshua Wood, Brian Tannous
Kubernetes: Up and Running, 2nd Edition

Kubernetes: Up and Running, 2nd Edition

Brendan Burns, Joe Beda, Kelsey Hightower

Publisher Resources

ISBN: 9781788992329Supplemental Content