- Ensure the HBase source code directory is located within the current directory (alongside the Dockerfile and other required files). The directory should contain the HBase source code needed to build the image. The structure should look like this:
. ├── Dockerfile ├── docker-compose.yml ├── build-images.sh ├── hbase/ │ └── [HBase source files] └── ...
- Create
.envwith the correct details.HBASE_IMAGE=vhegde/hbase-docker
- Make the build script executable:
chmod +x build-images.sh
- Build the images:
./build-images.sh
Start HBase:
docker-compose up -d