Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions BUILD.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
## Setup steps

Install [Docker for Ubuntu](https://docs.docker.com/engine/install/ubuntu). The installation instructions were tested on the following OS/Docker version combination:
- Docker 23.0.03, Ubuntu 22.04.2 LTS

Prepare a directory to download and build Docker image.
```
cd ~
mkdir openmagnetics
cd openmagnetics
sudo wget https://raw.githubusercontent.com/OpenMagnetics/.github/main/Dockerfile
```

## Build steps

1. Build Docker image:
Build Docker image

```
cd ~/openmagnetics
docker build -t openmagnetics .
```

2. Enter built Docker image:
Run built the OpenMagnetics docker image form command line

```
docker run -it openmagnetics bash
```

3. Run tests:
To confirm proper installation and project compilation run the tests in each project. Each test should run without error.

```
/home/openmagnetics/OpenMagnetics/MAS
./MAS_tests
/home/openmagnetics/OpenMagnetics/MKF
./MKF_tests
/home/openmagnetics/OpenMagnetics/MVB
python3 tests/test_builder.py
/home/openmagnetics/OpenMagnetics/MAS/build/./MAS_tests
/home/openmagnetics/OpenMagnetics/MKF/build/./MKF_tests
python3 /home/openmagnetics/OpenMagnetics/MVB/tests/test_builder.py
```