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

Dockerfile no longer works #39

Open
reedog117 opened this issue Mar 14, 2020 · 15 comments
Open

Dockerfile no longer works #39

reedog117 opened this issue Mar 14, 2020 · 15 comments

Comments

@reedog117
Copy link

This happens after performing the docker build steps as detailed in the wiki

[root@xxx virtlyst]# docker run -ti --init --name virtlyst -p 3000:3000 -v /run/libvirt:/run/libvirt:rw virtlyst
Installing EPoll event loop
Loading INI configuration: config.ini section: wsgi
Cutelyst-WSGI starting
WSGI socket 0 bound to TCP address 0.0.0.0:3000 fd 7
Loading application: src/libVirtlyst.so
6:6 wsgi[critical] Could not load application: "The shared library was not found."
@dantti
Copy link
Member

dantti commented Mar 15, 2020

Which page? Do you know how to fix? I'm no docker expert.

@reedog117
Copy link
Author

reedog117 commented Mar 16, 2020

It looks like src/libVirtlyst.so is not created during all the cc compilation steps when the docker container is built. However I don't see any error messages at all during the compilation process.

I'm referring to this page: https://github.com/cutelyst/Virtlyst/wiki/Running-with-Docker

@shepner
Copy link

shepner commented Aug 10, 2020

Is there going to be a fix to this? Im having the same problem

@schnuffle
Copy link
Contributor

I'll fidle a bit with it to get my debian package build script working again and come back when I have something that works

@schnuffle
Copy link
Contributor

Here's a version that works for me: https://github.com/schnuffle/Virtlyst/blob/deb_package/Dockerfile

  • I switched to buster
  • Switched to cuetlyste v2.9.0
  • Simplified a bit

You might have a try and in case anybody is interested, I can make a PR

@almol
Copy link

almol commented Sep 10, 2020

Here's a version that works for me: https://github.com/schnuffle/Virtlyst/blob/deb_package/Dockerfile

* I switched to buster

* Switched to cuetlyste v2.9.0

* Simplified a bit

You might have a try and in case anybody is interested, I can make a PR

Thanks I use your example-config.ini and Dockerfile and it works!

But I had a couple issues.. (sorry I had poor docker knoledge..)

-Admin password is re-generate every time and can't find how to change:
1:1 virtlyst[critical] Created user admin with password: "f46e9e879f704a2786d651bcae5a67ec"

-To access qemu by ssh I get this message: "You must create ssh authorization key. If you have another SSH port on your server, you can add IP:PORT like '192.168.1.1:2222'."

So I need to install client-ssh INSIDE docker container Virtlyst and get rsa-keys?

Thanks in advance.

@schnuffle
Copy link
Contributor

Does the User under which virtlyst runs has Keys generated?

@almol
Copy link

almol commented Sep 14, 2020

Does the User under which virtlyst runs has Keys generated?

Do you refer that user inside Docker?
If I want to connect to server with qemu+ssh:// , docker will be able to do ssh with one user.
So Dockerfile will install ssh and generate user with keys.
How I can do this?

@schnuffle
Copy link
Contributor

schnuffle commented Sep 14, 2020 via email

@dantti
Copy link
Member

dantti commented Sep 14, 2020

BTW I'm starting to add CPack to most of my projects, will do this for this one too so the dockerfile won't need to compile it, just grab the .debs from the repos. (You can do this for Culelyst already)

@wtownse
Copy link

wtownse commented Mar 13, 2021

Here's a version that works for me: https://github.com/schnuffle/Virtlyst/blob/deb_package/Dockerfile

  • I switched to buster
  • Switched to cuetlyste v2.9.0
  • Simplified a bit

You might have a try and in case anybody is interested, I can make a PR

This worked for me as well after also installing binutils and running the following:
strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
Solves a libQt5Core.so.5 error right after.

@misery
Copy link
Contributor

misery commented Jan 21, 2024

@misery
Copy link
Contributor

misery commented Jan 25, 2024

Fixed in e886939

Merged my "fork"

@mario-tux
Copy link

What is the name of repository/image to download the builds of GH actions?

@misery
Copy link
Contributor

misery commented Feb 6, 2024

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

No branches or pull requests

8 participants