Skip to content

Commit 085263d

Browse files
authored
Create README.md
1 parent 5110f60 commit 085263d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Containerized environment for building NetPass with docker
2+
## Prerequisites
3+
- Running Linux OS
4+
- Installed docker engine from [docker.io](https://docs.docker.com/desktop/install/linux-install/)
5+
## Building environment
6+
To build the environment image - run command:
7+
```bash
8+
cd netpass-docker-builder
9+
docker build -t netpass_builder -f ./Dockerfile ./
10+
```
11+
Build environment image need to be created once and recreated with the same command every time `Dockerfile` changed.
12+
## Compilation with Docker
13+
Checkout original NetPass source and inside run command:
14+
```bash
15+
docker run --rm -v ./:/build/source -u $(id -u):$(id -g) -ti netpass_builder
16+
```
17+
18+
By default builder will execute command `make clean codegen;make cia`, to override arguments to `make` add at the end of previous command arguments of your choose.
19+
20+
Example:
21+
```bash
22+
docker run --rm -v ./:/build/source -u $(id -u):$(id -g) -ti netpass_builder clean
23+
```
24+
This will run command `make clean` overriding default arguments

0 commit comments

Comments
 (0)