Suren A. Chilingaryan 929520e63d Optimize dockerile | 4 years ago | |
---|---|---|
files | 4 years ago | |
Dockerfile | 4 years ago | |
Makefile | 4 years ago | |
README.md | 6 years ago |
Simple container used to have an os container running in openshift and ready to investigate using sysadmin tools. This image is based on centos/s2i-core-centos7 done by sclorg.
You can find information on this image and how to use it by visiting the Dockerhub registry
This container contain updated core OS rpm (kernel, libs,...) as well as usefull tools like pwgen, tar, zip, psmisc, procps, coreutils, findutils, wget
| | Dockerhub Registry | Sources | STARTX Profile | |-------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|----------------------------------------------------------------------|-----------------------------------------------|
docker
you can run docker run -it --name="centos" startx/openshift-centos
from any docker hostwith docker-compose
you can create a docker-compose.yml file with the following content
fedora:
image: startx/openshift-centos:latest
container_name: "os-ocp-centos7"
environment:
CONTAINER_TYPE: "os"
CONTAINER_SERVICE: "fedora"
CONTAINER_INSTANCE: "os-ocp-centos7"
You can use this Dockerfile template to start a new personalized container based on this container
FROM startx/openshift-centos:latest
#... your container specifications
CMD ["/bin/sx"]
Variable | Type | Mandatory | Description |
---|---|---|---|
CONTAINER_INSTANCE | string |
yes |
Container name. Should be uning to get fine grained log and application reporting |
CONTAINER_TYPE | string |
no |
Container family (os, service, application. could be enhanced |
CONTAINER_SERVICE | string |
no |
Define the type of service or application provided |
HOSTNAME | auto |
auto |
Container unique id automatically assigned by docker daemon at startup |
You you want to use this container and code to build and create locally this container. You can follow theses instructions to setup and working environment.
This section will help you if you want to :
You must have a working environment with the source code of this repository. Read and follow how to setup your working environment to get a working directory. The following instructions assume you are at the top level of your working directory.
docker
cd OS
docker build -t fedora .
docker run -it fedora
. If you add a second parameter (like /bin/bash
) to will run this command instead of the default entrypoint. Usefull to interact with this container (ex: /bin/bash
, /bin/ps -a
, /bin/df -h
,...)docker run -d fedora
docker-compose
cd OS
docker-compose up
Startup logs appears and escaping this command stop the containerdocker-compose up -d
. Container startup logs can be read using docker-compose logs