bitnami/centos
TL;DR
FROM bitnami/centos:7
About
The bitnami/centos
image is a customized base image for use in Bitnami container images and is built on top of the offical centos/7
image.
The Dockerfile
installs Nami and includes a bitnami-pkg
helper script to simplify downloading of Nami modules from the Bitnami package repositories. Additionally the Dockerfile
installs tini and is used in the default entrypoint.
Variants
The image is available in the following variants:
Image | Configuration |
---|---|
bitnami/centos:7 | Standard |
bitnami/centos:7-buildpack | Buildpack (includes build-essential , git , etc.) |
Usage
Use like a regular base image.
The following example uses the bitnami-pkg
tool to install nami
packages published by Bitnami.
FROM bitnami/centos:7
ENV BITNAMI_APP_NAME=apache
RUN bitnami-pkg install apache-2.4.25-0
CMD ["nami", "start", "--foreground", "apache"]
Configuration Parameters
The following tables lists the configurable parameters of the image.
Parameter | Description |
---|---|
BASH_DEBUG |
Turn on bash debugging |
NAMI_DEBUG |
Turn on nami debugging |
DISABLE_WELCOME_MESSAGE |
Turn off the welcome text |
Turn on BASH debugging
Add BASH_DEBUG=1
to the container environment to enable BASH debugging which prints the commands being executed.
Turn on Nami debugging
To enable debugging add NAMI_DEBUG=1
to the container environment. The NAMI_DEBUG
variable enables helpful logging and debugging features which can be valuable for debugging issues.
Turn off the welcome text
When a new container is launched, a welcome message is displayed as illustrated below:
*** Welcome to the apache image ***
*** Brought to you by Bitnami ***
*** More information: https://github.com/bitnami/bitnami-docker-apache ***
*** Issues: https://github.com/bitnami/bitnami-docker-apache/issues ***
Adding DISABLE_WELCOME_MESSAGE=1
to the container environment turns off this message.
Contributing
We'd love for you to contribute to this container. You can request new features by creating an issue or submitting a pull request with your contribution.
Issues
If you encountered a problem running this container, you can file an issue. Be sure to include the following information in your issue:
- Host OS and version
- Output of:
docker version
docker info
- Steps to reproduce the issue
- Logging information with debug mode enabled
License
Copyright 2015 - 2017 Bitnami
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.