Sign inSign up

michaelace/pawncc

By michaelace

•Updated 4 months ago

Pawn Community Compiler for SA-MP/open.mp gamemodes and pawn language

Image
Developer tools
0

2.0K

michaelace/pawncc repository overview

⁠Pawn Community Compiler

This is a simple Docker image for compiling code with the Pawn Community Compiler. You can find the Git repository for this image here: https://github.com/San-Andreas-Online/pawncc-docker⁠

⁠Usage

⁠With Dockerfile

The current entrypoint is located at /entrypoint.sh. By default, it does nothing and suggests a command for you to use
It allows executing a custom compiling command if provided as an argument. You can achieve this command by adding CMD to your Dockerfile:

FROM michaelace/pawncc:3.10.11-linux

# Create the destination folders
RUN mkdir -p /gamemodes
RUN mkdir -p /include

# Make the system execute the compiler in the /gamemodes folder
WORKDIR /gamemodes

# Copy from local files to inside the container
COPY server/gamemodes ./gamemodes
COPY server/include ./include

# Change the compiling command
CMD ["pawncc gamemode.pwn '-D.' '-O2' '-;+' '-(+' '-d3' '-i../include'"]
⁠With docker run

Running the image on Windows:

docker run --rm ^
  -v "%cd%\\server\\gamemodes":/gamemodes ^
  -v "%cd%\\server\\include":/include ^
  -w /gamemodes ^
  michaelace/pawncc:3.10.11-linux ^
  pawncc gamemode.pwn "-D./" "-O2" "-;+" "-(+" "-d3" "-i../include" "-Z"

Running the image on Linux:

docker run --rm \
  -v "$(pwd)/server/gamemodes":/gamemodes \
  -v "$(pwd)/server/include":/include \
  michaelace/pawncc:3.10.11-linux \
  -w /gamemodes \
  pawncc gamemode.pwn '-D./' '-O2' '-;+' '-(+' '-d3' '-i../include' '-Z'

Tag summary

Content type

Image

Digest

sha256:cd9e1c079…

Size

71.2 MB

Last updated

4 months ago

docker pull michaelace/pawncc:3.10.11-linux