Table of Contents

OpenShift

oc import-image <NAME OF STREAM>

Resources

Dockerfile Best Practices

OpenShift on CentOS 7
OpenShift ''Getting Started'' on GitHub
Create builder images with S2I

DNS for OpenShift v3 cluster
OpenShift 3.6 Master Node config
Sudhaker's blog

Generate Docker Image

# Gen image via s2i ... using python container
IMGBASE=s2i-python-container
mkdir s2iloadgen
s2i create ${IMGBASE} s2iloadgen

Docker Cheat-Sheet


Example: Resurrect Bluejay in OpenShift


Trivia

Installation: Docker & OC CLI

PoC/Exploration Notes

Some URLs researched ...

http://www.testautomationguru.com/jmeter-distributed-load-testing-using-docker/
https://hub.docker.com/_/openjdk/
https://eleanordare.com/blog/2018/5/3/using-a-jenkins-pipeline-to-run-jmeter-tests-in-openshift-bkba6
https://eleanordare.com/blog/2017/6/14/using-a-jenkins-pipeline-to-run-jmeter-tests-in-openshift
https://blog.openshift.com/remotely-push-pull-container-images-openshift
https://docs.openshift.org/latest/dev_guide/jobs.html
https://docs.openshift.com/enterprise/3.0/architecture/core_concepts/builds_and_image_streams.html
https://blog.openshift.com/running-any-docker-image-on-openshift-origin/
https://docs.openshift.com/online/architecture/core_concepts/builds_and_image_streams.html#pipeline-build
https://docs.openshift.com/online/dev_guide/application_lifecycle/new_app.html#dev-guide-new-app
https://docs.openshift.com/online/dev_guide/index.html
https://docs.openshift.com/online/dev_guide/builds/build_inputs.html#image-source
https://docs.openshift.com/online/dev_guide/application_lifecycle/new_app.html
https://blog.openshift.com/getting-any-docker-image-running-in-your-own-openshift-cluster/
https://blog.openshift.com/openshift-jobs
https://docs.openshift.com/online/rest_api/apis-batch/v1.Job.html

Initial PoC at Optum's OpenShift

NOTE: these commands assume being run from $HOME/src/bluejay …

Misc ...

Container DNS

In order for containers to be able to resolve external names, change the dnsIP value in /var/lib/origin/openshift.local.config/node-localhost/node-config.yaml to the real LAN's DNS nameserver

SSH Key Initialization

/usr/bin/ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
/usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
/usr/bin/ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ''
/usr/bin/ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ''
/usr/bin/ssh-keygen -A

Interesting Resources


Links … TechLinux