• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with sampctl and Docker
#1
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
  Reply
#2
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/wi...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.
Remember to always refer to J0sh as `J0sh...`



@ Networks/Servers

San Andreas Gaming Network (Owner/Founder)

San Andreas Gaming (Owner/Founder)

Grand Theft Cop's n Robber's (Owner)

Britannia Roleplay (Owner/Founder) [Retired]

Alpine RP (Owner/Founder)

Aluminium Network (Maintainer) [Disbanded]

AlphaDM (Tech Support) [Disbanded]



# Services

forum.open.mp (Forum Manager) (Formerly Burgershot.gg

open.mp (Member)



~ Languages/Frameworks

Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,

Angular, React, Vue, Svelte, Laravel, Rocket
  Reply
#3
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.
Remember to always refer to J0sh as `J0sh...`



@ Networks/Servers

San Andreas Gaming Network (Owner/Founder)

San Andreas Gaming (Owner/Founder)

Grand Theft Cop's n Robber's (Owner)

Britannia Roleplay (Owner/Founder) [Retired]

Alpine RP (Owner/Founder)

Aluminium Network (Maintainer) [Disbanded]

AlphaDM (Tech Support) [Disbanded]



# Services

forum.open.mp (Forum Manager) (Formerly Burgershot.gg

open.mp (Member)



~ Languages/Frameworks

Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,

Angular, React, Vue, Svelte, Laravel, Rocket
  Reply
#4
(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.
  Reply


Forum Jump: