File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
container/ubuntu-22.04-dev Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 59
59
- ubuntu-18.04-dev
60
60
- ubuntu-20.04-dev
61
61
- ubuntu-20.04-clang
62
+ - ubuntu-22.04-dev
62
63
63
64
env :
64
65
image : ghcr.io/${{ github.repository }}/${{ matrix.container }}
Original file line number Diff line number Diff line change
1
+ # Copyright (C) 2021 Intel Corporation
2
+ # SPDX-License-Identifier: BSD-3-Clause
3
+
4
+ # https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
5
+
6
+ # Requires Docker >= 20.10.9, which returns ENOSYS instead of the
7
+ # default EPERM on clone3 syscall to ensure that glibc falls back to
8
+ # clone syscall. Needed for dpkg and apt to run DPkg::Post-Invoke and
9
+ # APT::Update::Post-Invoke as part of /etc/apt/apt.conf.d/docker-clean
10
+ # https://github.com/moby/moby/issues/42680
11
+ # https://github.com/moby/moby/pull/42681
12
+ FROM ubuntu:22.04
13
+
14
+ # Optionally override uid of default user in container, e.g.,
15
+ # docker build --build-arg uid=1001 ...
16
+ ARG uid
17
+
18
+ WORKDIR /work
19
+
20
+ # Before using a new script, update .github/workflows/container.yml
21
+ # to extend the `paths` on which the workflow runs.
22
+ COPY scripts/. ./
23
+
24
+ RUN apt-get -y update \
25
+ && DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade \
26
+ build-essential \
27
+ ca-certificates \
28
+ cmake \
29
+ curl \
30
+ git \
31
+ jq \
32
+ libelf-dev \
33
+ libtinfo5 \
34
+ libxml2 \
35
+ ninja-build \
36
+ python3 \
37
+ sudo \
38
+ zlib1g-dev \
39
+ && apt-get -y clean \
40
+ && ./install_aocl.sh /opt/aocl \
41
+ && useradd --system ${uid:+--uid "$uid" } --user-group --shell /sbin/nologin --create-home --home-dir /home/build build \
42
+ && echo 'build ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/build \
43
+ && rm -rf "$PWD"
44
+
45
+ USER build
46
+ WORKDIR /home/build
47
+
48
+ ENV PATH="/opt/aocl/hld/bin:$PATH"
49
+ RUN aoc -version
You can’t perform that action at this time.
0 commit comments