Steps to build custom docker image for centos7, rhel7, centos6, rhel6, ubuntu16 base images.
For centos7:
- Run the following command:
bdwb --baseimg centos7
- Once you execute this bdwb command, an new directory will be created (directory name will be the image name, e.g. centos7) with the following three files inside the directory:
- build.sh
- Makefile
- template directory that houses the Dockerfile.template and limits-90-nproc.conf files.
- Set the following param before invoking the make command:
export CATALOG_BASE_IMG_VERSION=4.0
- If make doesn't already exist in your environment, run:
yum install make
- If you are using Docker 1.12 (docker --version), you must remove the '-f' argument in the following line of the build.sh file to avoid throwing errors:
docker tag -f $1 $2
- Run the following command to execute the build:
make all
- Once the image build is complete, you should see a Docker image locally (run docker images) with the name bluedata/centos7:latest for centos7.
- You can now push this image of a remote repository or create a tar file and import it to other machines for creating other Docker images on top of this new base image. To tar the file, use the following command:
docker save -o <TAR_FILE_NAME> <IMAGE>:<TAG>
For rhel7:
- Run the following command:
bdwb --baseimg rhel7
- Once you execute this bdwb command, an new directory will be created (directory name will be the image name, e.g. rhel7) with the following three files inside the directory:
- build.sh
- Makefile
- template directory that houses the Dockerfile.template and limits-90-nproc.conf files.
- Set the following param before invoking the make command:
export CATALOG_BASE_IMG_VERSION=4.0
- Set RHEL username and password:
export RHEL_USERNAME=<username>
export RHEL_PASSWORD=<password>
- If make doesn't already exist in your environment, run:
yum install make
- If you are using Docker 1.12 (docker --version), you must remove the '-f' argument in the following line of the build.sh file to avoid throwing errors:
docker tag -f $1 $2
- Run the following command to execute the build:
make all
- Once the image build is complete, you should see a Docker image locally (run docker images) with the name bluedata/rhel7:latest for rhel7.
- You can now push this image of a remote repository or create a tar file and import it to other machines for creating other Docker images on top of this new base image. To tar the file, use the following command:
docker save -o <TAR_FILE_NAME> <IMAGE>:<TAG>
For centos6:
- Run the following command:
bdwb --baseimg centos6
- Once you execute this bdwb command, an new directory will be created (directory name will be the image name, e.g. centos6) with the following three files inside the directory:
- build.sh
- Makefile
- template directory that houses the Dockerfile.template and limits-90-nproc.conf files.
- Set the following param before invoking the make command:
export CATALOG_BASE_IMG_VERSION=2.1
- If make doesn't already exist in your environment, run:
yum install make
- If you are using Docker 1.12 (docker --version), you must remove the '-f' argument in the following line of the build.sh file to avoid throwing errors:
docker tag -f $1 $2
- Run the following command to execute the build:
make all
- Once the image build is complete, you should see a Docker image locally (run docker images) with the name bluedata/centos6:latest for centos6.
- You can now push this image of a remote repository or create a tar file and import it to other machines for creating other Docker images on top of this new base image. To tar the file, use the following command:
docker save -o <TAR_FILE_NAME> <IMAGE>:<TAG>
For rhel6:
- Run the following command:
bdwb --baseimg rhel6
- Once you execute this bdwb command, an new directory will be created (directory name will be the image name, e.g. rhel6) with the following three files inside the directory:
- build.sh
- Makefile
- template directory that houses the Dockerfile.template and limits-90-nproc.conf files.
- Set the following param before invoking the make command:
export CATALOG_BASE_IMG_VERSION=2.1
- Set RHEL username and password:
export RHEL_USERNAME=<username>
export RHEL_PASSWORD=<password>
- If make doesn't already exist in your environment, run:
yum install make
- If you are using Docker 1.12 (docker --version), you must remove the '-f' argument in the following line of the build.sh file to avoid throwing errors:
docker tag -f $1 $2
- Run the following command to execute the build:
make all
- Once the image build is complete, you should see a Docker image locally (run docker images) with the name bluedata/rhel6:latest for rhel6.
- You can now push this image of a remote repository or create a tar file and import it to other machines for creating other Docker images on top of this new base image. To tar the file, use the following command:
docker save -o <TAR_FILE_NAME> <IMAGE>:<TAG>
For Ubuntu16:
- Run the following command:
bdwb --baseimg ubuntu16
- Once you run this, an new directory will be created (directory name will be the image name, e.g. ubuntu16) with the following two files inside the directory:
- Makefile
- template directory that houses the Dockerfile.template and limits-90-nproc.conf files.
- Set the following param before invoking the make command:
export CATALOG_BASE_IMG_VERSION=3.0
- If make doesn't already exist in your environment, run:
yum install make
- If you are using Docker 1.12 (docker --version), you must remove the '-f' argument in the following line of the Makefile to avoid throwing errors:
docker tag -f $1 $2
- Run the following command to execute the build:
make all
- Once the image build is complete, you should see a Docker image locally (run docker images) with the name bluedata/ubuntu16:latest for ubuntu16.
- You can now push this image of a remote repository or create a tar file and import it to other machines for creating other Docker images on top of this new base image. To tar the file, use the following command:
docker save -o <TAR_FILE_NAME> <IMAGE>:<TAG>
NOTES:
- If you are planning to make changes to the existing Dockerfile with versions, etc., some of the EPIC features may not work and could potentially cause issues.
- If you are building base centos/rhel/ubuntu image on Docker 1.7, it will work with higher versions of Docker (i.e. Docker 1.12), but the opposite is not true.
- User Authentication is not currently available for the Ubuntu image, but will be made available in a later App Workbench release.
Comments
0 comments
Please sign in to leave a comment.