...
 
Commits (6)
......@@ -28,3 +28,8 @@ volatility:cosmic:
script:
- cd volatility
- bash ./build cosmic
ftkimager:cosmic:
script:
- cd ftkimager
- bash ./build cosmic
......@@ -72,9 +72,9 @@ ARG GID
ARG ID
ARG AUDIO
RUN groupadd -g $GID autopsy \
&& groupmod -g $AUDIO audio \
&& useradd -m -G audio,video,plugdev -u $ID -g $GID autopsy \
RUN groupadd -g "${GID}" autopsy \
&& groupmod -g "${AUDIO}" audio \
&& useradd -m -G audio,video -u "${ID}" -g "${GID}" autopsy \
&& mkdir -p /home/autopsy/data \
&& chown -R autopsy:autopsy /home/autopsy \
&& rm -rf /var/lib/apt/lists/* \
......
# Run FTK Imager in a container
FROM ubuntu:cosmic
LABEL maintainer "djds djds@ccs.neu.edu"
ENV DEBIAN_FRONTEND="noninteractive"
RUN mkdir /setup
WORKDIR /setup
RUN apt-get update && apt-get dist-upgrade -y \
&& apt-get install -y \
wget
RUN wget "https://ad-zip.s3.amazonaws.com/ftkimager.3.1.1_ubuntu64.tar.gz" \
&& tar -xf ftkimager.3.1.1_ubuntu64.tar.gz \
&& chmod +x ftkimager \
&& mv ftkimager /usr/local/bin/
RUN mkdir /data \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /setup
WORKDIR /data
ENTRYPOINT ["/usr/local/bin/ftkimager"]
#!/bin/bash
set -euo pipefail
REGISTRY="${REGISTRY:-}"
user='djds'
repo='ftkimager'
tag=${1:-cosmic}
docker build \
-t "${REGISTRY}${user}/${repo}:${tag}" .
if [[ "${PUSH:-}" == "true" ]]; then
docker push "${REGISTRY}${user}/${repo}:${tag}"
fi
# clean up our host environment
unset {GID,ID}
#!/bin/bash
# Use bghost/volitility:cosmic by default
REGISTRY="${REGISTRY:-}"
tag="cosmic"
docker run --rm -it \
-c 4 \
-m 4096M \
-v /etc/localtime:/etc/localtime:ro \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e "DISPLAY=unix${DISPLAY}" \
-v "/var/local/backups/ftk:/data" \
-v /dev/shm:/dev/shm \
--device=/dev/sda \
--name ftkimager \
"${REGISTRY}djds/ftkimager:${tag}" "${@}"
# -v "$(pwd):/data" \