Skip to content

Commit a588dea

Browse files
committed
Build ubuntu-22.04-dev container
This is the latest long-term support release. https://wiki.ubuntu.com/JammyJellyfish/ReleaseNotes Signed-off-by: Peter Colberg <[email protected]>
1 parent 451b8ca commit a588dea

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/workflows/container.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
- ubuntu-18.04-dev
6060
- ubuntu-20.04-dev
6161
- ubuntu-20.04-clang
62+
- ubuntu-22.04-dev
6263

6364
env:
6465
image: ghcr.io/${{ github.repository }}/${{ matrix.container }}

container/ubuntu-22.04-dev/Dockerfile

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

0 commit comments

Comments
 (0)