Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker scripts to simplify setting up idevicerestore #562

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,17 @@ idevicerestore --help
man idevicerestore
```

### Docker

Execute `run.sh` in the docker folder,
which will build a docker container with the latest source versions of all required libraries,
and then will execute `idevicerestore --latest`

After running the script once, the container can be reused with:
```shell
docker run -it --privileged -v "$(pwd):/tmp" idevicerestore-docker idevicerestore [optional commandline args]
```

## Contributing

We welcome contributions from anyone and are grateful for every pull request!
Expand Down
80 changes: 80 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && apt-get install -y \
build-essential \
pkg-config \
checkinstall \
git \
autoconf \
automake \
libtool-bin \
libreadline-dev \
libusb-1.0-0-dev \
libcurl4-openssl-dev \
libssl-dev \
libzip-dev \
zlib1g-dev \
python3

RUN git clone https://github.com/libimobiledevice/libplist.git && \
cd libplist && \
./autogen.sh && \
make && \
make install && \
cd .. && \
rm libplist -rf

RUN git clone https://github.com/libimobiledevice/libtatsu.git && \
cd libtatsu && \
./autogen.sh && \
make && \
make install && \
cd .. && \
rm libtatsu -rf

RUN git clone https://github.com/libimobiledevice/libimobiledevice-glue.git && \
cd libimobiledevice-glue && \
./autogen.sh && \
make && \
make install && \
cd .. && \
rm libimobiledevice-glue -rf

RUN git clone https://github.com/libimobiledevice/libusbmuxd.git && \
cd libusbmuxd && \
./autogen.sh && \
make && \
make install && \
cd .. && \
rm libusbmuxd -rf

RUN git clone https://github.com/libimobiledevice/libimobiledevice.git && \
cd libimobiledevice && \
./autogen.sh && \
make && \
make install && \
cd .. && \
rm libimobiledevice -rf



RUN git clone https://github.com/libimobiledevice/libirecovery.git && \
cd libirecovery && \
./autogen.sh && \
make && \
make install && \
cd .. && \
rm libirecovery -rf

RUN git clone https://github.com/libimobiledevice/idevicerestore.git && \
cd idevicerestore && \
./autogen.sh && \
make && \
make install && \
cd .. && \
rm idevicerestore -rf

RUN ldconfig
WORKDIR /tmp
CMD idevicerestore
6 changes: 6 additions & 0 deletions docker/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e
cd "$(dirname "$0")"

docker build . -t idevicerestore-docker
docker run -it --privileged -v "$(pwd):/tmp" idevicerestore-docker idevicerestore --latest