https://github.com/e-bits/openshift-client
OpenShift Client (OC)
https://github.com/e-bits/openshift-client
alpine cli docker docker-image openshift
Last synced: 5 months ago
JSON representation
OpenShift Client (OC)
- Host: GitHub
- URL: https://github.com/e-bits/openshift-client
- Owner: e-bits
- Created: 2017-03-10T07:58:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-09T10:09:38.000Z (over 7 years ago)
- Last Synced: 2025-06-16T22:42:10.143Z (about 1 year ago)
- Topics: alpine, cli, docker, docker-image, openshift
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 6
- Watchers: 2
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenShift Client Tools - Docker Image
## Summary
- A :whale: Docker image for the oc command line tool, used to control Openshift based on alpine.
## To build the Docker image
- Build the image using docker
```bash
$ docker build -t openshift-client .
```
- Run the container
```bash
$ docker run --rm -it openshift-client oc version
```
- Optionally add an alias to your local profile so you can run the container as a cli (you may also want to mount kube config or pass env vars...)
```bash
$ alias oc='docker run --rm -it openshift-client oc'
$ oc version
```
## Alternatively, you can use the Docker Hub automated build
[](https://microbadger.com/images/ebits/openshift-client "Get your own image badge on microbadger.com") [](https://microbadger.com/images/ebits/openshift-client "Get your own version badge on microbadger.com")
```bash
$ docker pull ebits/openshift-client
```
## Contributing
File issues in GitHub to report bugs or issue a pull request to contribute.