mvt-project / mvt

MVT (Mobile Verification Toolkit) helps with conducting forensics of mobile devices in order to find signs of a potential compromise.
https://mvt.re
Other
10.16k stars 934 forks source link

Docker build on 2.3.0 - warnings about Empty continuation line found #360

Open byeskille opened 1 year ago

byeskille commented 1 year ago

After pulling the latest code and checking out the tag v2.3.0 I tried to rebuild the docker image with docker build.

The build does not succeed, and outputs warnings about: Empty continuation line found

Here is the full output from docker build:


[+] Building 0.7s (13/13) FINISHED                                                                                                                                                                            
 => [internal] load .dockerignore                                                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                                          0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                     0.0s
 => => transferring dockerfile: 3.16kB                                                                                                                                                                   0.0s
 => WARN: Empty continuation line found in: RUN apt update   && apt install -y python3 python3-pip libusb-1.0-0-dev wget unzip default-jre-headless adb   build-essential   checkinstall   git   autoco  0.0s
 => WARN: Empty continuation line found in: RUN git clone https://github.com/libimobiledevice/libplist   && git clone https://github.com/libimobiledevice/libimobiledevice-glue   && git clone https://  0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                                                                                                          0.7s
 => [1/9] FROM docker.io/library/ubuntu:22.04@sha256:6120be6a2b7ce665d0cbddc3ce6eae60fe94637c6a66985312d1f02f63cc0bcd                                                                                    0.0s
 => CACHED [2/9] RUN apt update   && apt install -y python3 python3-pip libusb-1.0-0-dev wget unzip default-jre-headless adb   build-essential   checkinstall   git   autoconf   automake   libtool-bin  0.0s
 => CACHED [3/9] RUN git clone https://github.com/libimobiledevice/libplist   && git clone https://github.com/libimobiledevice/libimobiledevice-glue   && git clone https://github.com/libimobiledevice  0.0s
 => CACHED [4/9] RUN pip3 install mvt                                                                                                                                                                    0.0s
 => CACHED [5/9] RUN mkdir /opt/abe   && wget https://github.com/nelenkov/android-backup-extractor/releases/download/20210709062403-4c55371/abe.jar -O /opt/abe/abe.jar   && echo 'alias abe="java -jar  0.0s
 => CACHED [6/9] RUN mkdir /root/.android && adb keygen /root/.android/adbkey                                                                                                                            0.0s
 => CACHED [7/9] RUN mkdir /home/cases                                                                                                                                                                   0.0s
 => CACHED [8/9] WORKDIR /home/cases                                                                                                                                                                     0.0s
 => CACHED [9/9] RUN echo 'echo "Mobile Verification Toolkit @ Docker\n------------------------------------\n\nYou can find information about how to use this image for Android (https://github.com/mvt  0.0s
 => exporting to image                                                                                                                                                                                   0.0s
 => => exporting layers                                                                                                                                                                                  0.0s
 => => writing image sha256:cedbbeecd0231c84af0a6a5f9d25b9b7e14e513e7eee16762a34a557ac5b0914                                                                                                             0.0s
 => => naming to docker.io/library/mvt                                                                                                                                                                   0.0s

 2 warnings found (use --debug to expand):
 - Empty continuation line found in: RUN apt update   && apt install -y python3 python3-pip libusb-1.0-0-dev wget unzip default-jre-headless adb   build-essential   checkinstall   git   autoconf   automake   libtool-bin   libplist-dev   libusbmuxd-dev   libssl-dev   sqlite3   pkg-config   && apt-get clean   && rm -rf /var/lib/apt/lists/* /var/cache/apt
 - Empty continuation line found in: RUN git clone https://github.com/libimobiledevice/libplist   && git clone https://github.com/libimobiledevice/libimobiledevice-glue   && git clone https://github.com/libimobiledevice/libusbmuxd   && git clone https://github.com/libimobiledevice/libimobiledevice   && git clone https://github.com/libimobiledevice/usbmuxd   && cd libplist && ./autogen.sh && make && make install && ldconfig   && cd ../libimobiledevice-glue && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --prefix=/usr && make && make install && ldconfig   && cd ../libusbmuxd && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh && make && make install && ldconfig   && cd ../libimobiledevice && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --enable-debug && make && make install && ldconfig   && cd ../usbmuxd && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --runstatedir=/run && make && make install   && cd .. && rm -rf libplist libimobiledevice-glue libusbmuxd libimobiledevice usbmuxd
Forchapeatl commented 1 year ago

These warnings are caused by the empty lines within the RUN commands on#Fixing major OS dependencies and # Build libimobiledevice remove the blank lines within these blocks in the MVT docker file to get rid of the warnings

# Fixing major OS dependencies
# ----------------------------
RUN apt update \
  && apt install -y python3 python3-pip libusb-1.0-0-dev wget unzip default-jre-headless adb \
-                                                                                                                                                                                                                                                  
# Install build tools for libimobiledevice
# ----------------------------------------
  build-essential \
  checkinstall \
  git \
  autoconf \
  automake \
  libtool-bin \
  libplist-dev \
  libusbmuxd-dev \
  libssl-dev \
  sqlite3 \
  pkg-config \
-                                                                                                              
# Clean up
# --------
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/* /var/cache/apt
# Build libimobiledevice
# ----------------------
RUN git clone https://github.com/libimobiledevice/libplist \
  && git clone https://github.com/libimobiledevice/libimobiledevice-glue \
  && git clone https://github.com/libimobiledevice/libusbmuxd \
  && git clone https://github.com/libimobiledevice/libimobiledevice \
  && git clone https://github.com/libimobiledevice/usbmuxd \
-                                                                                                                                                                                                                           
  && cd libplist && ./autogen.sh && make && make install && ldconfig \
-                                                                                                                                                                                                                            
  && cd ../libimobiledevice-glue && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --prefix=/usr && make && make install && ldconfig \
-                                                                                                                                                                                                                          
  && cd ../libusbmuxd && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh && make && make install && ldconfig \
-                                                                                                                                                                                                                  
  && cd ../libimobiledevice && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --enable-debug && make && make install && ldconfig \
-                                                                                                                                                                                            
  && cd ../usbmuxd && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --runstatedir=/run && make && make install \
-                                                                                                                                                                                                                 
  # Clean up.
  && cd .. && rm -rf libplist libimobiledevice-glue libusbmuxd libimobiledevice usbmuxd