Skip to content

Commit

Permalink
update Dockerfile to use Ubuntu Jammy Jellyfish
Browse files Browse the repository at this point in the history
  • Loading branch information
vsiivola committed Feb 1, 2023
1 parent ffecdde commit 6f9ecdf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:groovy
FROM ubuntu:jammy
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Berlin
RUN apt-get update -y && \
Expand All @@ -8,7 +8,7 @@ RUN apt-get install -y --no-install-recommends\
build-essential \
libboost-all-dev \
swig \
python-dev \
python3-dev \
cmake && \
apt-get autoclean && \
apt-get autoremove && \
Expand Down
19 changes: 18 additions & 1 deletion docker_notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Rudimentary notes on Docker

## Linux and intel processor Macs

```sh
# Set up docker env (only needed if you use command line docker-machine)
docker-machine start
Expand All @@ -8,7 +10,7 @@ eval $(docker-machine env default)
# Create container
docker build -t varikn_test_container .
# Log in container
docker container run --interactive --tty varikn_test_container
docker container run --interactive --tty varikn_test_container
# Inside container
mkdir build; (cd build; cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=1
&& make && ctest --verbose)
Expand All @@ -27,3 +29,18 @@ brew cask install virtualbox
# Create VM
docker-machine create default
```

## Apple processor Macs (M1, M2)

On Apple silicon processor based mac (M1, M2), you can install
[Finch](https://github.com/runfinch) and run the following:

```sh
# Create container
finch build -t varikn_test_container .
# Log in container
finch container run --interactive --tty varikn_test_container
# Inside container
mkdir build; (cd build; cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=1
&& make && ctest --verbose)
```

0 comments on commit 6f9ecdf

Please sign in to comment.