Skip to content

Commit 9787bd9

Browse files
committed
add: ubuntu env
0 parents  commit 9787bd9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Dockerfile.Ubuntu

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.241.1/containers/cpp/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Debian / Ubuntu version (use Debian 11, Ubuntu 18.04/22.04 on local arm64/Apple Silicon): debian-11, debian-10, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04
4+
FROM ubuntu:22.04
5+
6+
ARG DEBIAN_FRONTEND=noninteractive
7+
ENV TZ=Etc/UTC
8+
9+
# [Optional] Install additional packages.
10+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
11+
&& apt-get -y install --no-install-recommends \
12+
build-essential gfortran devscripts wget cmake software-properties-common dirmngr \
13+
libopenblas-dev libgsl-dev
14+
15+
RUN mkdir armadillo && \
16+
wget -qO- http://sourceforge.net/projects/arma/files/armadillo-9.900.6.tar.xz | \
17+
tar -Jxf- --directory=armadillo --strip-components=1 && \
18+
cmake -B armadillo/build -S armadillo -DCMAKE_INSTALL_PREFIX=/usr -DDETECT_HDF5=OFF -DBUILD_SHARED_LIBS=OFF . && \
19+
cmake --build armadillo/build --config Release && \
20+
cmake --install armadillo/build
21+
22+
RUN mkdir catch2 && \
23+
wget -qO- https://github.com/catchorg/Catch2/archive/refs/tags/v2.13.9.tar.gz | \
24+
tar -zxf- --directory=catch2 --strip-components=1 && \
25+
cmake -B catch2/build -S catch2 -DCMAKE_INSTALL_PREFIX=/usr . && \
26+
cmake --build catch2/build --config Release && \
27+
cmake --install catch2/build

0 commit comments

Comments
 (0)