Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Docker Hub Automated Build #16

Open
bannsec opened this issue Aug 21, 2017 · 6 comments
Open

Docker Hub Automated Build #16

bannsec opened this issue Aug 21, 2017 · 6 comments

Comments

@bannsec
Copy link

bannsec commented Aug 21, 2017

Hey all,

Super interested to play with this. I see you have a Dockerfile created. Unfortunately, I cannot create an automated build against your github account since I do not own it. Could you guys setup an auto-build?

@a110605
Copy link

a110605 commented Aug 25, 2017

Hi all,

I have forked this project to my namespace and trying to build image from Dockerfile. But it fails to git clone qemu source code (in build.sh #81 git://git.qemu.org/qemu.git). I think it should change to other qemu source like https://github.com/qemu/qemu.git.

@xabiugarte
Copy link
Contributor

Currently git://git.qemu.org/qemu.git is the official documented way to clone the latest version of QEMU (https://www.qemu.org/contribute/). Nevertheless, in the future we may consider having our own fork of qemu instead of cloning the original repository and patching it.

@xabiugarte
Copy link
Contributor

The last commits (e9ec373, f3a437e) change the way qemu and volatility are installed. Now, they are included inside the pyrebox repository as git subtrees, allowing to keep a cleaner commit history for the qemu and volatility modifications. This change should solve the problem reported by a110605.

@Manouchehri
Copy link

@bannsec Not official, but I have automated builds over here. https://hub.docker.com/r/thawsystems/pyrebox/builds/

dave@ubuntu:~$ docker run -it --rm thawsystems/pyrebox
root@8a050ec2d6a4:/pyrebox# ./start_x86_64.sh

[*] Loading python component initialization script
[*] Platform: x86_64-softmmu
[*] Starting python module initialization
[*] Reading configuration
[*] Searching for KDBG...
[*] Initializing scripts...
[*]  Loading python module plugins.guest_agent
[plugins.guest_agent] [*]    Initializing guest_agent plugin
[!] Could not initialize agent, offset config file missing!
[*] Finished python module initialization
pyrebox-x86_64: -drive file=,index=0,media=disk,format=qcow2,cache=unsafe: A block device must be specified for "file"

@cpuodzius
Copy link

Docker build was failing on my machine.

I was able to fix it by adding RUN pip install --upgrade pip before cloning pybox.

FROM ubuntu:16.04
MAINTAINER Jonas Zaddach

ENV PREFIX /home

#Install packages
RUN apt-get update
RUN apt-get install -y build-essential zlib1g-dev pkg-config \
                       libglib2.0-dev binutils-dev libboost-all-dev \
                       autoconf libtool libssl-dev libpixman-1-dev \
                       libpython-dev python-pip \
                       git curl vim

RUN pip install --upgrade pip
#clone pybox
RUN git clone https://github.com/Cisco-Talos/pyrebox pyrebox
WORKDIR pyrebox
RUN pip install -r requirements.txt
RUN ./build.sh
RUN cp /usr/local/lib/python2.7/dist-packages/capstone/lib/libcapstone.so /usr/local/lib
RUN ldconfig

#OPTIONAL: Copy VM in. Left as an example

#RUN mkdir /images
#ADD files/template_pybox_vm_winxp.tar.gz /images
#RUN echo "./start_i386.sh /images/xpsp3.qcow2" > ~/.bash_history

EXPOSE 5900
ENTRYPOINT ["/bin/bash"]

@xabiugarte
Copy link
Contributor

Hi @cpuodzius,

could you please submit a pull request with your changes?

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants