-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
98 lines (84 loc) · 2.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# syntax=docker/dockerfile:1
ARG UBUNTU_VERSION=latest
FROM ubuntu:${UBUNTU_VERSION}
ARG TIMEZONE=Etc/UTC
RUN apt update
# set up timezone for dependencies
RUN DEBIAN_FRONTEND=noninteractive TZ=$TIMEZONE apt -y install tzdata
# install common dependencies
RUN apt -y install \
build-essential \
pkg-config \
checkinstall \
git \
autoconf \
automake \
libtool-bin \
libssl-dev
# ---------------------------------------------------------------------------
# build libplist
WORKDIR /home
RUN git clone https://github.com/libimobiledevice/libplist.git
WORKDIR /home/libplist
RUN <<EOF
./autogen.sh --enable-debug --without-cython
make
make install
EOF
# ---------------------------------------------------------------------------
# build libimobiledevice-glue-dev
WORKDIR /home
RUN git clone https://github.com/libimobiledevice/libimobiledevice-glue.git
WORKDIR /home/libimobiledevice-glue
RUN <<EOF
./autogen.sh
make
make install
EOF
# ---------------------------------------------------------------------------
# build libtatsu-dev
WORKDIR /home
RUN git clone https://github.com/libimobiledevice/libtatsu.git
WORKDIR /home/libtatsu
# install dependencies
RUN apt install -y libcurl4-openssl-dev
RUN <<EOF
./autogen.sh
make
make install
EOF
# ---------------------------------------------------------------------------
# build libusbmuxd
WORKDIR /home
RUN git clone https://github.com/libimobiledevice/libusbmuxd.git
WORKDIR /home/libusbmuxd
RUN <<EOF
./autogen.sh
make
make install
EOF
# ---------------------------------------------------------------------------
# build libimobiledevice
WORKDIR /home
RUN git clone https://github.com/libimobiledevice/libimobiledevice.git
WORKDIR /home/libimobiledevice
RUN <<EOF
./autogen.sh
make
make install
EOF
# ---------------------------------------------------------------------------
# build usbmuxd
WORKDIR /home
RUN git clone https://github.com/libimobiledevice/usbmuxd.git
WORKDIR /home/usbmuxd
#
RUN apt install -y \
libusb-1.0-0-dev \
udev
RUN <<EOF
./autogen.sh
make
make install
EOF
WORKDIR /home