Preparing Host¶
Docker¶
- Get access the Datavault Builder repository
Provide us your Email address so you your account can be initiated and we can send you a prepared configuration file.
- Install Docker & Docker Compose
Verify docker version to be 19+:
docker --version
Verify docker compose version to be 1.24+:
docker compose --version
- Sample for CentOS7
Tested version: 7.4 minimal, normal installation without any additional packages
Run the following commands as root:
yum remove docker docker-common docker-selinux docker-engine yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum install docker-ce systemctl start docker systemctl enable docker curl -L https://github.com/docker/compose/releases/download/[current version]/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
In case you would like to start the containers with another user than root, add that user:
groupadd docker usermod -aG docker USERNAME
- Log into our repository and pull an image (once you have provided us your user and have been granted access):
docker login docker.datavault-builder.com docker pull docker.datavault-builder.com/datavaultbuilder/api:7.0.1.1
Hint
If your host machine does not have direct access to our repository, you can as well download the images on another machine and copy them manually. Please check the section below regarding details.
- Optional: Run a hello-world sample:
To check docker compose and docker are running properly, save the following file to a local folder to a file called
docker-compose.yml
:version: '3.1' services: helloworld: image: 'hello-world'
Switch using cmd or bash to the folder where you saved the
docker-compose.yml
and type:docker-compose up
You should get a message saying:
helloworld | helloworld | Hello from Docker!
Note
If this doesn’t work check the following prerequisities
your computer is connected to the internet
if you use a proxy that the proxy is configured correctly
you have the latest version of Docker and Docker compose installed
Download of Container Images on Another Computer¶
You can pull the image on a computer that have access to the internet:
sudo docker pull hello-world
Then you can save this image to a file:
sudo docker save -o hello-world_image.docker hello-world
Transfer the file on the offline computer (USB/CD/…) and load the image from the file:
sudo docker load -i hello-world_image.docker
Note
For details about the commands
Kubernetes¶
Currently the documentation is based on docker/docker-compose.
Please reach out to us regarding HELM Charts.