Skip to content

Commit

Permalink
Change docker image to the one with non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
ababushk committed Sep 13, 2023
1 parent 3e1175e commit 5531164
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
shell: bash
runs-on: aks-linux-16-cores
container:
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04
image: openvinogithubactions.azurecr.io/ci/ubuntu:22.04
volumes:
- /mount/caches:/mount/caches
env:
Expand All @@ -61,8 +61,8 @@ jobs:
steps:
- name: Install git
run: |
apt-get update
apt-get install -y git git-lfs
sudo -E apt-get update
sudo -E apt-get install -y git git-lfs
- name: Clone OpenVINO
uses: actions/checkout@v4
Expand Down Expand Up @@ -91,9 +91,9 @@ jobs:

- name: Install build dependencies
run: |
bash ${OPENVINO_REPO}/install_build_dependencies.sh
apt update
apt --assume-yes install openjdk-11-jdk libbz2-dev clang unzip libpugixml-dev libtbb-dev intel-opencl-icd ocl-icd-opencl-dev opencl-headers
sudo -E ${OPENVINO_REPO}/install_build_dependencies.sh
sudo -E apt update
sudo -E apt --assume-yes install openjdk-11-jdk libbz2-dev clang unzip libpugixml-dev libtbb-dev intel-opencl-icd ocl-icd-opencl-dev opencl-headers
wget https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip
unzip ninja-linux.zip
Expand Down Expand Up @@ -296,7 +296,7 @@ jobs:
shell: bash
runs-on: aks-linux-4-cores
container:
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04
image: openvinogithubactions.azurecr.io/ci/ubuntu:22.04
volumes:
- /mount/caches:/mount/caches
env:
Expand All @@ -314,8 +314,8 @@ jobs:

- name: Install dependencies
run: |
apt update
apt --assume-yes install openjdk-11-jdk libbz2-dev clang unzip libpugixml-dev libtbb-dev intel-opencl-icd ocl-icd-opencl-dev opencl-headers libsnappy-dev
sudo -E apt update
sudo -E apt --assume-yes install openjdk-11-jdk libbz2-dev clang unzip libpugixml-dev libtbb-dev intel-opencl-icd ocl-icd-opencl-dev opencl-headers libsnappy-dev
- name: Download OpenVINO package
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -496,7 +496,7 @@ jobs:
shell: bash
runs-on: aks-linux-4-cores
container:
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04
image: openvinogithubactions.azurecr.io/ci/ubuntu:22.04
volumes:
- /mount/caches:/mount/caches
env:
Expand All @@ -520,8 +520,8 @@ jobs:
- name: Install git
run: |
apt update
apt --assume-yes install git git-lfs
sudo -E apt update
sudo -E apt --assume-yes install git git-lfs
- name: Clone OpenVINO
uses: actions/checkout@v4
Expand All @@ -535,8 +535,8 @@ jobs:

- name: Install dependencies
run: |
apt update
apt --assume-yes install openjdk-11-jdk libbz2-dev clang unzip libpugixml-dev libtbb-dev intel-opencl-icd ocl-icd-opencl-dev opencl-headers libsnappy-dev
sudo -E apt update
sudo -E apt --assume-yes install openjdk-11-jdk libbz2-dev clang unzip libpugixml-dev libtbb-dev intel-opencl-icd ocl-icd-opencl-dev opencl-headers libsnappy-dev
- uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -775,7 +775,7 @@ jobs:
shell: bash
runs-on: aks-linux-4-cores
container:
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04
image: openvinogithubactions.azurecr.io/ci/ubuntu:22.04
volumes:
- /mount/caches:/mount/caches
env:
Expand All @@ -790,8 +790,8 @@ jobs:

- name: Install dependencies
run: |
apt update
apt --assume-yes install openjdk-11-jdk libbz2-dev clang unzip libpugixml-dev libtbb-dev intel-opencl-icd ocl-icd-opencl-dev opencl-headers libsnappy-dev
sudo -E apt update
sudo -E apt --assume-yes install openjdk-11-jdk libbz2-dev clang unzip libpugixml-dev libtbb-dev intel-opencl-icd ocl-icd-opencl-dev opencl-headers libsnappy-dev
- name: Download OpenVINO package
uses: actions/download-artifact@v3
Expand Down
2 changes: 0 additions & 2 deletions tools/mo/unit_tests/mo/utils/cli_parser_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,13 +1224,11 @@ def test_single_writable_dir(self):
self.assertEqual(__class__.WRITABLE_DIR, writable_dir(__class__.WRITABLE_DIR))

@unittest.skipIf(sys.platform.startswith("win"), "chmod() on Windows do nor support not writable dir")
@unittest.skipIf(os.getenv("GITHUB_ACTIONS") == 'true', "Ticket - 118388")
def test_single_non_writable_dir(self):
with self.assertRaises(Error) as cm:
writable_dir(__class__.NOT_WRITABLE_DIR)

@unittest.skipIf(sys.platform.startswith("win"), "chmod() on Windows do nor support not writable dir")
@unittest.skipIf(os.getenv("GITHUB_ACTIONS") == 'true', "Ticket - 118388")
def test_single_non_writable_sub_dir(self):
with self.assertRaises(Error) as cm:
writable_dir(__class__.NOT_WRITABLE_SUB_DIR)
Expand Down

0 comments on commit 5531164

Please sign in to comment.