Skip to content

Commit efeaf8c

Browse files
committed
development setup using docker development environments
1 parent c0a2ff2 commit efeaf8c

3 files changed

Lines changed: 21 additions & 25 deletions

File tree

.docker/Dockerfile.devenv

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM ubuntu:22.04
2+
3+
4+
RUN apt -y update && apt -y upgrade && apt install bash -y
5+
RUN DEBIAN_FRONTEND=noninteractive apt -y install wget gpg software-properties-common lsb-release git make python3 python3-pip -y
6+
RUN apt -y update && apt -y install cmake ninja-build sudo
7+
8+
9+
RUN set -exu; \
10+
useradd -p test -s /bin/bash -m vscode; \
11+
groupadd docker; \
12+
usermod -aG docker vscode; \
13+
usermod -aG sudo vscode;
14+
15+
USER vscode

.docker/config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"dockerfile": "Dockerfile.devenv"
3+
}

README.md

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -73,31 +73,9 @@ Done!
7373

7474

7575
### Installing PhASAR a MacOS system
76-
Mac OS 10.13.1 or higher only!
77-
To install the framework on a Mac we will rely on Homebrew. (https://brew.sh/)
78-
79-
Please follow the instructions down below.
80-
81-
```
82-
$ brew install boost
83-
$ brew install python3
84-
# Install llvm version 10
85-
$ brew install llvm
86-
# Setting the paths
87-
# Use LLVM's Clang rather than Apple's Clang compiler
88-
$ export CC=/usr/local/opt/llvm/bin/clang
89-
$ export CXX=/usr/local/opt/llvm/bin/clang++
90-
# Set PATH env variable to /usr/local/opt/llvm/bin
91-
# Go to PhASAR directory run the following commands
92-
$ git submodule init
93-
$ git submodule update
94-
$ mkdir build
95-
$ cd build/
96-
$ cmake -DCMAKE_BUILD_TYPE=Release ..
97-
$ make -j $(nproc) # or use a different number of cores to compile it
98-
$ sudo make install # if you wish a system-wise installation
99-
```
100-
76+
Due to unfortunate updates to MacOS and the handling of C++, especially on the newer M1 processors, we can't support native development on Mac.
77+
The easiest solution to develop PhASAR on a Mac right now is to use [dockers development environments](https://docs.docker.com/desktop/dev-environments/). Clone this repository as described in the documentation. Afterwards, login as a root user using `docker exec -it -u root <container name> /bin/bash` to complete the rest of the install process as described in this readme (install submodules, run bootstrap.sh, ...).
78+
Now you can just attach your docker container to VS Code or any other IDE, which supports remove development.
10179

10280
### Compiling PhASAR (if not already done using the installation scripts)
10381
Set the system's variables for the C and C++ compiler to clang:

0 commit comments

Comments
 (0)