Southclaws / sampctl

The Swiss Army Knife of SA:MP - vital tools for any server owner or library maintainer.
GNU General Public License v3.0
238 stars 34 forks source link

Building package in Docker fails #305

Closed thecodeah closed 5 years ago

thecodeah commented 5 years ago

I'm building/compiling the gamemode when the image is being created using RUN sampctl p build in the Dockerfile. However, it keeps failing...

This is the terminal output :

Step 4/4 : RUN sampctl p ensure && sampctl p build
 ---> Running in 03b4092b11b9
INFO: Usage metrics are active. See https://github.com/Southclaws/sampctl/wiki/Usage-Metrics for more information.
INFO: opencnr/gamemode successfully ensured dependency files for github.com/sampctl/samp-stdlib
INFO: opencnr/gamemode successfully ensured dependency files for github.com/sampctl/pawn-stdlib
INFO: opencnr/gamemode successfully ensured dependency files for github.com/pawn-lang/YSI-Includes:v4.0.2
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Zeex/amx_assembly
INFO: pBlueG/SA-MP-MySQL:R41-4 downloading plugin resource for linux
INFO: opencnr/gamemode successfully ensured dependency files for github.com/pBlueG/SA-MP-MySQL:R41-4
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Awsomedude/easyDialog:2.0
INFO: opencnr/gamemode successfully ensured dependency files for github.com/maddinat0r/samp-mysql-yinline-include:v1.0.1
WARN: github.com/Sreyas-Sreelal/samp-bcrypt:0.2.0 failed to parse plugin as dependency string
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Sreyas-Sreelal/samp-bcrypt:0.2.0
INFO: opencnr/gamemode successfully ensured dependency files for github.com/urShadow/Pawn.CMD:3.2.0
INFO: maddinat0r/sscanf:v2.8.3 downloading plugin resource for linux
INFO: opencnr/gamemode successfully ensured dependency files for github.com/maddinat0r/sscanf:v2.8.3
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Southclaws/pawn-fsutil:1.0.4
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Southclaws/pawn-env:1.0.1
INFO: opencnr/gamemode successfully ensured dependency files for github.com/kristoisberg/samp-map-zones
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Southclaws/progress2
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Southclaws/samp-logger
INFO: Zeex/samp-plugin-crashdetect:v4.19 downloading plugin resource for linux
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Zeex/samp-plugin-crashdetect:v4.19
INFO: opencnr/gamemode successfully ensured dependency files for github.com/IllidanS4/PawnPlus:v1.0.0
INFO: samp-incognito/samp-streamer-plugin:v2.9.4 downloading plugin resource for linux
INFO: opencnr/gamemode successfully ensured dependency files for github.com/samp-incognito/samp-streamer-plugin:v2.9.4
INFO: ensured dependencies for package
updating compiler list...
INFO: Downloading compiler package v3.10.4
failed to list dependency include path: /samp/dependencies/.resources/samp-bcrypt-f1235e: open /samp/dependencies/.resources/samp-bcrypt-f1235e: no such file or directory
ERROR: Service 'samp' failed to build: The command '/bin/sh -c sampctl p ensure && sampctl p build' returned a non-zero code: 1

I thought it might be an issue related to the samp-bcrypt plugin, but even after it's removal from the pawn.json file the problem persists. This time erroring on another dependency.


Step 4/4 : RUN sampctl p ensure && sampctl p build
 ---> Running in 50a738b2785f
INFO: Usage metrics are active. See https://github.com/Southclaws/sampctl/wiki/Usage-Metrics for more information.
INFO: opencnr/gamemode successfully ensured dependency files for github.com/sampctl/samp-stdlib
INFO: opencnr/gamemode successfully ensured dependency files for github.com/sampctl/pawn-stdlib
INFO: opencnr/gamemode successfully ensured dependency files for github.com/pawn-lang/YSI-Includes:v4.0.2
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Zeex/amx_assembly
INFO: pBlueG/SA-MP-MySQL:R41-4 downloading plugin resource for linux
INFO: opencnr/gamemode successfully ensured dependency files for github.com/pBlueG/SA-MP-MySQL:R41-4
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Awsomedude/easyDialog:2.0
INFO: opencnr/gamemode successfully ensured dependency files for github.com/maddinat0r/samp-mysql-yinline-include:v1.0.1
INFO: opencnr/gamemode successfully ensured dependency files for github.com/urShadow/Pawn.CMD:3.2.0
INFO: maddinat0r/sscanf:v2.8.3 downloading plugin resource for linux
INFO: opencnr/gamemode successfully ensured dependency files for github.com/maddinat0r/sscanf:v2.8.3
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Southclaws/pawn-fsutil:1.0.4
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Southclaws/pawn-env:1.0.1
INFO: opencnr/gamemode successfully ensured dependency files for github.com/kristoisberg/samp-map-zones
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Southclaws/progress2
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Southclaws/samp-logger
INFO: Zeex/samp-plugin-crashdetect:v4.19 downloading plugin resource for linux
INFO: opencnr/gamemode successfully ensured dependency files for github.com/Zeex/samp-plugin-crashdetect:v4.19
INFO: opencnr/gamemode successfully ensured dependency files for github.com/IllidanS4/PawnPlus:v1.0.0
INFO: samp-incognito/samp-streamer-plugin:v2.9.4 downloading plugin resource for linux
INFO: opencnr/gamemode successfully ensured dependency files for github.com/samp-incognito/samp-streamer-plugin:v2.9.4
INFO: ensured dependencies for package
updating compiler list...
INFO: Downloading compiler package v3.10.4
failed to list dependency include path: /samp/dependencies/.resources/Pawn.CMD-74e198: open /samp/dependencies/.resources/Pawn.CMD-74e198: no such file or directory
ERROR: Service 'samp' failed to build: The command '/bin/sh -c sampctl p ensure && sampctl p build' returned a non-zero code: 1```
thecodeah commented 5 years ago

Issue has been resolved. It was a silly mistake on my end.

The sampctl image that I was using was outdated.