File tree 4 files changed +73
-15
lines changed
4 files changed +73
-15
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pipeline {
15
15
sh " docker logout"
16
16
} catch (err) {}
17
17
}
18
- sh " docker build -t ev3dev-lang-java:jdk-stretch -f system/Dockerfile system "
18
+ sh " docker build -t ev3dev-lang-java:jdk-stretch -f system/Dockerfile. " + DOCKER_ARCH + " system "
19
19
}
20
20
}
21
21
stage(" Build cross-compilation environment" ) {
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ The output consists of these parts:
25
25
1 . Install [ Docker] ( https://docs.docker.com/engine/installation/ ) for your operating system.
26
26
2 . Build the jdk cross-compilation OS:
27
27
``` sh
28
- sudo docker build -t ev3dev-lang-java:jdk-stretch -f system/Dockerfile system
28
+ sudo docker build -t ev3dev-lang-java:jdk-stretch -f system/Dockerfile.armel system # ONLY FOR EV3
29
+ sudo docker build -t ev3dev-lang-java:jdk-stretch -f system/Dockerfile.armhf system # ONLY FOR RPI1. RPI2 & RPI3
29
30
```
30
-
31
31
3 . Build the jdk cross-compilation environment:
32
32
``` sh
33
33
sudo docker build -t ev3dev-lang-java:jdk-build -f scripts/Dockerfile scripts
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ FROM debian:stretch
5
5
# setup repositories and install required packages
6
6
COPY apt.sources.list.debian /etc/apt/sources.list
7
7
COPY ev3dev-archive-keyring.gpg /etc/apt/trusted.gpg.d/
8
- RUN dpkg --add-architecture armel && dpkg --add-architecture armhf && \
8
+ RUN dpkg --add-architecture armel && \
9
9
apt-get -q update && \
10
10
DEBIAN_FRONTEND=noninteractive apt-get -q install --yes --no-install-recommends \
11
11
bash-completion \
12
12
ca-certificates \
13
13
cmake \
14
14
build-essential \
15
- crossbuild-essential-armel crossbuild-essential-armhf \
15
+ crossbuild-essential-armel \
16
16
gdb-multiarch \
17
17
less \
18
18
man-db \
@@ -24,16 +24,16 @@ RUN dpkg --add-architecture armel && dpkg --add-architecture armhf && \
24
24
vim \
25
25
wget \
26
26
xz-utils \
27
- libcups2-dev:armel libcups2-dev:armhf \
28
- libfreetype6-dev:armel libfreetype6-dev:armhf \
29
- libfontconfig1-dev:armel libfontconfig1-dev:armhf \
30
- libasound2-dev:armel libasound2-dev:armhf \
31
- libx11-dev:armel libx11-dev:armhf \
32
- libxext-dev:armel libxext-dev:armhf \
33
- libxrender-dev:armel libxrender-dev:armhf \
34
- libxtst-dev:armel libxtst-dev:armhf \
35
- libxt-dev:armel libxt-dev:armhf \
36
- libffi-dev:armel libffi-dev:armhf \
27
+ libcups2-dev:armel \
28
+ libfreetype6-dev:armel \
29
+ libfontconfig1-dev:armel \
30
+ libasound2-dev:armel \
31
+ libx11-dev:armel \
32
+ libxext-dev:armel \
33
+ libxrender-dev:armel \
34
+ libxtst-dev:armel \
35
+ libxt-dev:armel \
36
+ libffi-dev:armel \
37
37
curl \
38
38
make \
39
39
m4 \
Original file line number Diff line number Diff line change
1
+ FROM debian:stretch
2
+
3
+ # this is a customized version of ev3dev-stretch-cross image
4
+
5
+ # setup repositories and install required packages
6
+ COPY apt.sources.list.debian /etc/apt/sources.list
7
+ COPY ev3dev-archive-keyring.gpg /etc/apt/trusted.gpg.d/
8
+ RUN dpkg --add-architecture armhf && \
9
+ apt-get -q update && \
10
+ DEBIAN_FRONTEND=noninteractive apt-get -q install --yes --no-install-recommends \
11
+ bash-completion \
12
+ ca-certificates \
13
+ cmake \
14
+ build-essential \
15
+ crossbuild-essential-armhf \
16
+ gdb-multiarch \
17
+ less \
18
+ man-db \
19
+ nano \
20
+ pkg-config \
21
+ qemu-user-static \
22
+ sudo \
23
+ tree \
24
+ vim \
25
+ wget \
26
+ xz-utils \
27
+ libcups2-dev:armhf \
28
+ libfreetype6-dev:armhf \
29
+ libfontconfig1-dev:armhf \
30
+ libasound2-dev:armhf \
31
+ libx11-dev:armhf \
32
+ libxext-dev:armhf \
33
+ libxrender-dev:armhf \
34
+ libxtst-dev:armhf \
35
+ libxt-dev:armhf \
36
+ libffi-dev:armhf \
37
+ curl \
38
+ make \
39
+ m4 \
40
+ cpio \
41
+ gawk \
42
+ file \
43
+ zip \
44
+ pigz \
45
+ unzip \
46
+ procps \
47
+ autoconf \
48
+ autoconf-archive \
49
+ automake \
50
+ autotools-dev \
51
+ mercurial \
52
+ zlib1g-dev
53
+
54
+ # prepare a nonroot user
55
+ COPY compiler.sudoers /etc/sudoers.d/compiler
56
+ RUN chmod 0440 /etc/sudoers.d/compiler && \
57
+ adduser --disabled-password --gecos \"\" compiler && \
58
+ usermod -a -G sudo compiler
You can’t perform that action at this time.
0 commit comments