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

Update honeynet/conpot docker image #378

Closed
xandfury opened this issue Jun 21, 2018 · 5 comments

Comments

@xandfury
Copy link
Collaborator

commented Jun 21, 2018

Last build of honeynet/conpot happend over an year ago. Conpot has changed since them. Someone with honeynet org access needs to trigger the rebuild

or

create a mushorg account on dockerhub, where we can push the latest code for automated builds

@adepasquale

This comment has been minimized.

Copy link
Member

commented Jun 21, 2018

@xandfury if you have a Docker hub account I can add you to the team, if @glaslos is OK with that.

Meanwhile I'll go and trigger a manual build.

@xandfury

This comment has been minimized.

Copy link
Collaborator Author

commented Jun 21, 2018

I do have a Docker Hub account. :-)

@adepasquale

This comment has been minimized.

Copy link
Member

commented Jun 21, 2018

Upon a second look, we already have the hooks in place to trigger builds after each push to mushorg/conpot master branch. The build is failing, though (even the one I triggered manually):

Build failed: The command '/bin/sh -c apt-get update -y -qq && apt-get install -y -qq libmysqlclient-dev libxslt1-dev && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*' returned a non-zero code: 100
�[91mE: Package 'libmysqlclient-dev' has no installation candidate

Maybe we need to check our base image and Dockerfile are aligned with Docker Hub?

@xandfury

This comment has been minimized.

Copy link
Collaborator Author

commented Jun 21, 2018

@adepasquale Replacing libmysqlclient-dev with default-libmysqlclient-dev worked for me :-)

The build would run fine but you may get errors due to failing tests. These tests would include :

  • test_mac (change in MAC address)
  • test_mysqllogger
  • ImportError (No module named Crypto.Cipher) - IPMI server
  • ImportError (No module named wsgi) - test_ext_ip_util

During py3 migration and upon discussion with Daniel, we agreed to skip first 2. Latter 2 can be fixed by installing pycrypto and changing imports from from gevent.wsgi import WSGIServer to from gevent.pywsgi import WSGIServer

Here is the link the successful build and the associated Dockerfile.

These changes have already been made for py3 branch ;-)

adepasquale added a commit that referenced this issue Jun 23, 2018
@adepasquale

This comment has been minimized.

Copy link
Member

commented Jun 23, 2018

Thanks for your pull request, @xandfury. The build has been successful!

https://hub.docker.com/r/honeynet/conpot/builds/

I have also re-enabled automated builds after pushes on master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.