Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
139 lines (137 loc) · 4.13 KB
/
Copy pathDockerfile
File metadata and controls
139 lines (137 loc) · 4.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# syntax=docker.io/docker/dockerfile:1
#
# Dockerfile
# AVO2 Library
#
# SPDX-FileCopyrightText: 2010 University of North Carolina at Chapel Hill
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Please send all bug reports to <geom@cs.unc.edu>.
#
# The authors may be contacted via:
#
# Jur van den Berg, Jamie Snape, Stephen J. Guy, and Dinesh Manocha
# Dept. of Computer Science
# 201 S. Columbia St.
# Frederick P. Brooks, Jr. Computer Science Bldg.
# Chapel Hill, N.C. 27599-3175
# United States of America
#
# <https://gamma.cs.unc.edu/AVO/>
#
FROM ubuntu:26.04
ARG TARGETARCH
LABEL org.opencontainers.image.authors="Jur van den Berg, Jamie Snape, Stephen J. Guy, and Dinesh Manocha"
LABEL org.opencontainers.image.base.name="docker.io/library/ubuntu:26.04"
LABEL org.opencontainers.image.description="Reciprocal Collision Avoidance with Acceleration-Velocity Obstacles"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.source="https://github.com/snape/AVO2/"
LABEL org.opencontainers.image.title="AVO2 Library"
LABEL org.opencontainers.image.url="https://gamma.cs.unc.edu/AVO/"
LABEL org.opencontainers.image.vendor="University of North Carolina at Chapel Hill"
LABEL org.opencontainers.image.version="1.0.1"
ENV LANG=C.UTF-8
ENV LOGNAME=root
ENV USER=root
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# hadolint ignore=DL3008,DL3013
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update -qq \
&& apt-get install --no-install-recommends -o Dpkg::Use-Pty=0 -qy \
ca-certificates \
clang \
clang-format \
clang-tidy \
clang-tools \
cmake \
cmake-format \
codespell \
cppcheck \
cpplint \
curl \
dirmngr \
doxygen \
dpkg-dev \
file \
g++ \
gdb \
git \
gnupg \
gcovr \
graphviz \
iwyu \
jsonlint \
lldb \
make \
markdownlint \
meson \
nano \
netbase \
ninja-build \
openssh-client \
pkgconf \
pipx \
python3 \
python3-click \
python3-dateutil \
python3-docopt \
python3-jsonschema \
python3-pathspec \
python3-pip \
python3-pygments \
python3-pykwalify \
python3-requests \
python3-ruamel.yaml \
python3-venv \
reuse \
shellcheck \
strace \
sudo \
valgrind \
yamllint \
&& rm -rf /var/lib/apt/lists/* \
&& curl -fsSLO \
https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-${TARGETARCH:-amd64}.deb \
&& dpkg -i bazelisk-${TARGETARCH:-amd64}.deb \
&& rm -rf bazelisk-${TARGETARCH:-amd64}.deb \
&& curl -fsSL \
https://github.com/bazelbuild/buildtools/releases/latest/download/buildifier-linux-${TARGETARCH:-amd64} \
-o /usr/local/bin/buildifier \
&& curl -fsSL \
https://github.com/bazelbuild/buildtools/releases/latest/download/buildozer-linux-${TARGETARCH:-amd64} \
-o /usr/local/bin/buildozer \
&& curl -fsSL \
"https://github.com/hadolint/hadolint/releases/latest/download/hadolint-linux-$([ "${TARGETARCH:-amd64}" = "arm64" ] && echo arm64 || echo x86_64)" \
-o /usr/local/bin/hadolint \
&& chmod +x \
/usr/local/bin/buildifier \
/usr/local/bin/buildozer \
/usr/local/bin/hadolint \
&& curl -fsSL \
https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash \
| bash -s -- '' /usr/local/bin \
&& pipx install --global \
cffconvert \
check-jsonschema \
lizard \
pre-commit \
&& echo "ubuntu ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/ubuntu \
&& chmod 0440 /etc/sudoers.d/ubuntu
ENV LOGNAME=ubuntu
ENV SHELL=/bin/bash
ENV USER=ubuntu
# hadolint ignore=DL3066
USER ubuntu
WORKDIR /workspace