Code Monkey home page Code Monkey logo

hello's Introduction

Prereqs

  • docker installed and running, feel free to use podman instead
  • OpenShift 4 cluster
  • oc tools

Deploying

  1. Inspect the Dockerfile and notice which cpp file it calls out. Feel free to adjust to the code of your choice
  2. If you are planning to push your image to a registry such as quay, create a credentials file such as one named rhsm.secret.yaml with content like this
RH_USERNAME=<insert your username>
RH_PASSWORD=<insert your password>
  1. Run a docker build, for example
DOCKER_BUILDKIT=1 docker build --progress=plain --secret id=rhsm,src=rhsm.secret.yaml -t quay.io/mcochran/cpp-hello:latest -f Dockerfile .
  1. Push your image like this
docker push quay.io/mcochran/cpp-hello:latest
  1. Login to your OpenShift cluster using oc login and select your project using oc project <yourProject>
  2. Update pod.yaml with your image name
  3. Run the following to deploy your code. If it is short running you may miss it even running in the OpenShift console, but don't worry if you look at pods you can still see the logs afterwards to ensure things worked.
oc create -f pod.yaml

hello's People

Contributors

memsharded avatar

Watchers

 avatar

Forkers

mertel-rh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.