Public | Automated Build

Last pushed: a day ago
Short Description
Simple container used for all startx based services and applications containers
Full Description

<img align="right" height="50" src="https://raw.githubusercontent.com/startxfr/docker-images/master/travis/logo.svg?sanitize=true">

Docker OS Images : FEDORA

Simple container used for all startx based services and applications published in 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

Container flavours

Version Docker Hub repository Openshift Fedora distribution
latest startx/fedora:latest imageStreams deployement Fedora 28 (kernel 4.14 + GNU 2.23 )
28 startx/fedora:28 imageStreams deployement Fedora 27 (kernel 4.11 + GNU 2.21 )
27 startx/fedora:27 imageStreams deployement Fedora 27 (kernel 4.11 + GNU 2.21 )
26 startx/fedora:26 imageStreams deployement Fedora 26 (kernel 4.09 + GNU 2.20 )
23 startx/fedora:23 N/A Fedora 23 (kernel 4.2 + GNU 3.18 )
22 startx/fedora:22 N/A Fedora 22 (kernel 4.0 + GNU 3.16 )
21 startx/fedora:21 N/A Fedora 21 (kernel 3.16 + GNU 3.14 )
20 startx/fedora:20 N/A Fedora 20 (kernel 3.11 + GNU 3.10 )

Running this image

Running from dockerhub registry

  • with docker you can run docker run -it --name="fedora" startx/fedora from any docker host
  • with docker-compose you can create a docker-compose.yml file with the following content
    fedora:
    image: startx/fedora:latest
    container_name: "os-fedora"
    

Using this image as Openshift Build image

You can use this public image as a base image in your openshift build strategy. You can first import
our openshift image stream
and automatically add them in your service catalog. You can also test our deploy template
or our build and deploy template

# import image streams
oc create -f https://raw.githubusercontent.com/startxfr/docker-images/master/OS/openshift-imageStreams.json
# import deploy template and start a sample application
oc create -f https://raw.githubusercontent.com/startxfr/docker-images/master/OS/openshift-template.json
oc process startx-os-fedora-template | oc create -f -
# import build and deploy template and start a sample application
oc create -f https://raw.githubusercontent.com/startxfr/docker-images/master/OS/openshift-template-build.json
oc process startx-os-fedora-build-template | oc create -f -

Using this image as S2I builder

You can use this image as an s2i builder image.

s2i build https://github.com/startxfr/docker-images-example-bash startx/fedora test-fedora
docker run --rm -i -t test-fedora

Using this image as base container

You can use this Dockerfile template to start a new personalized container based on this container. Create a file named Dockerfile in your project directory and copy this content inside. See docker guide for instructions on how to use this file.

FROM startx/fedora:latest
#... your container specifications
CMD ["/bin/sx"]

Environment variable

Variable Type Default Description
SX_VERSION string latest container version
SX_TYPE string OS Container family (os, service, application). could be enhanced
SX_SERVICE string fedora Define the type of service or application provided
SX_ID auto startx/fedora Container ID coresponding to the image repository
SX_NAME auto yes Container name
SX_SUMMARY auto yes Container purpose description
SX_VERBOSE bool no Display information about the execution
SX_DEBUG bool no Display debug informations during execution

For advanced users

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 :

  • Get latest version of this container OS
  • Enhance container content by adding instruction in Dockefile before build step

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.

Build & run a container using docker

  1. Jump into the container directory with cd OS
  2. Build the container using docker build -t fedora .
  3. Run this container
    1. Interactively with 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,...)
    2. As a daemon with docker run -d fedora

Build & run a container using docker-compose

  1. Jump into the container directory with cd OS
  2. Run this container
    1. Interactively with docker-compose up Startup logs appears and escaping this command stop the container
    2. As a daemon with docker-compose up -d. Container startup logs can be read using docker-compose logs
Docker Pull Command
Owner
startx
Source Repository