Skip to content

Commit 75df2c9

Browse files
docker install instruction for csp (#843)
Signed-off-by: sri <srinarayan.srikanthan@intel.com> Signed-off-by: srinarayan-srikanthan <srinarayan.srikanthan@intel.com>
1 parent 62e06a0 commit 75df2c9

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

ChatQnA/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Quick Start Deployment Steps:
1616
2. Run Docker Compose.
1717
3. Consume the ChatQnA Service.
1818

19+
Note: If you do not have docker installed you can run this script to install docker : `bash docker_compose/install_docker.sh`
20+
1921
### Quick Start: 1.Setup Environment Variable
2022

2123
To set up environment variables for deploying ChatQnA services, follow these steps:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
# Copyright (C) 2024 Intel Corporation
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
# Update the package index
7+
sudo apt-get -y update
8+
9+
# Install prerequisites
10+
sudo apt-get -y install ca-certificates curl
11+
12+
# Create the directory for the Docker GPG key
13+
sudo install -m 0755 -d /etc/apt/keyrings
14+
15+
# Add Docker's official GPG key
16+
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
17+
18+
# Set permissions for the GPG key
19+
sudo chmod a+r /etc/apt/keyrings/docker.asc
20+
21+
# Add Docker repository to the sources list
22+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
23+
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
24+
25+
# Update the package index with Docker packages
26+
sudo apt-get -y update
27+
28+
# Install Docker packages
29+
sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
30+
31+
# add existing user
32+
sudo usermod -aG docker $USER
33+
34+
# Optional: Verify that Docker is installed correctly
35+
sudo docker --version

0 commit comments

Comments
 (0)