Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
- ubuntu-18.04-dev
- ubuntu-20.04-dev
- ubuntu-20.04-clang
- ubuntu-22.04-dev

env:
image: ghcr.io/${{ github.repository }}/${{ matrix.container }}
Expand Down
49 changes: 49 additions & 0 deletions container/ubuntu-22.04-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause

# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

# Requires Docker >= 20.10.9, which returns ENOSYS instead of the
# default EPERM on clone3 syscall to ensure that glibc falls back to
# clone syscall. Needed for dpkg and apt to run DPkg::Post-Invoke and
# APT::Update::Post-Invoke as part of /etc/apt/apt.conf.d/docker-clean
# https://github.com/moby/moby/issues/42680
# https://github.com/moby/moby/pull/42681
FROM ubuntu:22.04

# Optionally override uid of default user in container, e.g.,
# docker build --build-arg uid=1001 ...
ARG uid

WORKDIR /work

# Before using a new script, update .github/workflows/container.yml
# to extend the `paths` on which the workflow runs.
COPY scripts/. ./

RUN apt-get -y update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade \
build-essential \
ca-certificates \
cmake \
curl \
git \
jq \
libelf-dev \
libtinfo5 \
libxml2 \
ninja-build \
python3 \
sudo \
zlib1g-dev \
&& apt-get -y clean \
&& ./install_aocl.sh /opt/aocl \
&& useradd --system ${uid:+--uid "$uid"} --user-group --shell /sbin/nologin --create-home --home-dir /home/build build \
&& echo 'build ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/build \
&& rm -rf "$PWD"

USER build
WORKDIR /home/build

ENV PATH="/opt/aocl/hld/bin:$PATH"
RUN aoc -version