Skip to content

Commit

Permalink
[CI] Fix linter issues in Ubuntu Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszstolarczuk committed Jan 16, 2024
1 parent fe5c223 commit d08237c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/docker/ubuntu-22.04.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 Intel Corporation
# Copyright (C) 2023-2024 Intel Corporation
# Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
# See LICENSE.TXT
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Expand Down Expand Up @@ -51,20 +51,23 @@ RUN apt-get update \
${BASE_DEPS} \
${UR_DEPS} \
${MISC_DEPS} \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean all

RUN pip3 install ${UR_PYTHON_DEPS}
# pip package is pinned to a version, but it's probably improperly parsed here
# hadolint ignore=DL3013
RUN pip3 install --no-cache-dir ${UR_PYTHON_DEPS}

# Install DPC++
COPY install_dpcpp.sh install_dpcpp.sh
COPY install_dpcpp.sh /opt/install_dpcpp.sh
ENV DPCPP_PATH=/opt/dpcpp
RUN ./install_dpcpp.sh
RUN /opt/install_dpcpp.sh

# Install libbacktrace
COPY install_libbacktrace.sh install_libbacktrace.sh
RUN ./install_libbacktrace.sh
COPY install_libbacktrace.sh /opt/install_libbacktrace.sh
RUN /opt/install_libbacktrace.sh

# Add a new (non-root) 'user'
ENV USER user
ENV USERPASS pass
RUN useradd -m $USER -g sudo -p `mkpasswd $USERPASS`
RUN useradd -m "${USER}" -g sudo -p "$(mkpasswd ${USERPASS})"
2 changes: 2 additions & 0 deletions .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ jobs:
with:
recursive: true
dockerfile: ".github/docker/*Dockerfile"
# ignore pinning apt packages to versions
ignore: DL3008

0 comments on commit d08237c

Please sign in to comment.