Skip to content

Commit 955a21e

Browse files
committedJun 25, 2016
README.md and initialization script
1 parent bf3f556 commit 955a21e

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed
 

‎README.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
This repository aim to provide container for building [Armbian](https://github.com/igorpecovnik/lib).
2+
3+
Assumptions:
4+
5+
* x86_64 Debian sid as host and container system
6+
* there should be minimal number of packets installed by Armbian
7+
* setup should simplify contribution (ie. using forked repo)
8+
9+
Usage
10+
-----
11+
12+
13+
```
14+
git clone https://github.com/igorpecovnik/lib.git
15+
cd armbian-docker
16+
docker build -t 3mdeb/armbian .
17+
cd ..
18+
docker run -v ${PWD}/lib:/root/lib -t -i 3mdeb/armbian
19+
```
20+
21+
Shorter way:
22+
23+
```
24+
git clone https://github.com/3mdeb/armbian-docker.git
25+
cd armbian-docker
26+
REPO=git@github.com:3mdeb/lib.git ./init.sh
27+
```
28+
29+
_NOTE_: you need access to `..`, also if `REPO` not provided
30+
`https://github.com/igorpecovnik/lib.git` will be used
31+
32+
Development setup
33+
-----------------
34+
35+
36+
## Prepare repository
37+
38+
Clone your Armbian fork:
39+
40+
```
41+
git clone git@github.com:3mdeb/lib.git
42+
43+
```
44+
45+
Add Igor's repository as upstream:
46+
47+
```
48+
cd lib
49+
git remote add upstream https://github.com/igorpecovnik/lib.git
50+
git fetch upstream
51+
```
52+
53+
Pull recent changes if needed.
54+
55+
## Run container
56+
57+
```
58+
docker run -v ${PWD}/lib:/root/lib -t -i 3mdeb/armbian
59+
```
60+
61+
Edit and commit your code on host side.

‎init.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
: ${REPO:=https://github.com/igorpecovnik/lib.git}
4+
5+
if [ ! -d ../lib ]; then
6+
git clone $REPO ../lib
7+
fi
8+
9+
docker build -t 3mdeb/armbian .
10+
cd ..
11+
docker run -v ${PWD}/lib:/root/lib -t -i 3mdeb/armbian

0 commit comments

Comments
 (0)
Please sign in to comment.