open.mp forum
Help with sampctl and Docker - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: General (https://forum.open.mp/forumdisplay.php?fid=19)
--- Forum: Programming (https://forum.open.mp/forumdisplay.php?fid=56)
--- Thread: Help with sampctl and Docker (/showthread.php?tid=1759)



Help with sampctl and Docker - robertocaribbean - 2021-03-12

Hi there,

sampctl works perfectly in my local machine, but when I try to use the power of Docker, I'm facing with an error.

Steps I followed:
  • Enable virtualization on BIOS and Hyper-v on Windows 10.
  • Install Docker Desktop
  • Add my administrator account to docker-users group.
  • Pull sampctl from docker hub.

Now, the problem is when I try to initialize a package like so:

Code:
docker run southclaws/sampctl package init

I get this error (I think is better if I share an image):
[Image: mCNzFhH.png]

Already tried:
  • Clean / Purge data from Docker Desktop.
  • Reinstall Docker Desktop.
  • Use another sampctl version, but throws that I need the last recent version.

EDIT: Well, I'm trying with a ubuntu image, downloaded sampctl and all works fine. But when I try "sampctl package build" throws an error
Code:
failed to compile package entry: exit status 255
This happens with others compiler version as well.

SOLUTION: If you've been troubled with the same error, run:
Code:
apt-get install gcc gcc-multilib make cmake



RE: Help with sampctl and Docker - JustMichael - 2021-03-13

Since you are on Windows, why don't you install the Windows version of sampctl using scoop (https://scoop.sh/) ?

https://github.com/Southclaws/sampctl/wiki/Windows#installing-with-scoop



If you where to install WSL2 (so running Linux inside Windows) you can then install the correct version. I've never tested using the docker image to initiate a package before, but it should work as expected since it's nothing too complicated.


RE: Help with sampctl and Docker - JustMichael - 2021-03-13

Also all the issue you have come across have already been addressed in the sampctl wiki, you should of read it before installing. You can also search up on issues open/closed on the sampctl repo and you would of found a solution to any issue not addressed in the wiki.


RE: Help with sampctl and Docker - robertocaribbean - 2021-03-14

(2021-03-13, 11:12 PM)JustMichael Wrote: Also all the issue you have come across have already been addressed in the sampctl wiki, you should of read it before installing. You can also search up on issues open/closed on the sampctl repo and you would of found a solution to any issue not addressed in the wiki.

Thank you for your answer! I will do a better search next time.

I'm trying to deploy a samp server on a vps and was not sure how to do it correctly.