GithubHelp home page GithubHelp logo

toughiq / oci-omg Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

This repo is for containerizing the o-must-gather app found here: https://github.com/kxr/o-must-gather

Dockerfile 84.66% Shell 15.34%

oci-omg's Introduction

oci-omg [WiP]

This repo is for creating an OCI compliant container image of the o-must-gather app found here: https://github.com/kxr/o-must-gather

Note: Currently using V1 of o-must-gather, since V2 is still work in progress.

This container image provides an environment to run the omg command within this container. Additionally this tool also allows to use the oc command within the container. Just for convenience reasons.

If you run docker instead of podman just replace podman with docker in all the commands.

Image at quay.io

https://quay.io/repository/toughiq/omg

Build

podman build -t quay.io/toughiq/omg:latest .

If you build locally, you can set the image name to your likings.

Run via Podman

podman run -it --rm -v /path/to/must-gather.local.6450507246821680:/home/omg/must-gather:Z quay.io/toughiq/omg:latest

This inits the container with your desired must-gather directory and places you afterwards in the container and you can start doing your omg/oc work.

Create BASH alias function

mkdir ${HOME}/.bashrc.d

cat << EOF > ${HOME}/.bashrc.d/omg.sh
#!/bin/bash

function omg() {
    filename=$(readlink -f $1)
    podman run -ti --rm -v "${filename}":/home/omg/must-gather:Z quay.io/toughiq/omg:latest
}

EOF

source ${HOME}/.bashrc.d/omg.sh

Run via BASH CLI using alias function

omg /PATH/TO/must-gather-directory

This inits the container with your desired must-gather directory and places you afterwards in the container and you can start doing your omg/oc work.

oci-omg's People

Contributors

toughiq avatar

Watchers

 avatar

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.