From 5ee53c824cc138cb33620828e45720197633212b Mon Sep 17 00:00:00 2001 From: rakeshkumar1019 Date: Fri, 15 Mar 2024 12:16:48 +0530 Subject: [PATCH] install docker --- .github/workflows/veracode.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/veracode.yml b/.github/workflows/veracode.yml index 9b88d45577..75b631602e 100644 --- a/.github/workflows/veracode.yml +++ b/.github/workflows/veracode.yml @@ -100,6 +100,34 @@ jobs: echo "Unable to determine operating system" fi + - name: Install Docker + run: | + # Update the package index + sudo apt-get update + + # Install necessary packages to allow apt to use a repository over HTTPS + sudo apt-get install -y \ + apt-transport-https \ + ca-certificates \ + curl \ + software-properties-common + + # Add Docker's official GPG key + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - + + # Add Docker repository to APT sources + sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" + + # Update the package index again + sudo apt-get update + + # Install Docker + sudo apt-get install -y docker-ce + + # Verify Docker installation + sudo docker --version + + - name: view settings.xml run : cat ~/.m2/settings.xml