File tree 2 files changed +72
-0
lines changed
2 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments