pBlueG / Socket

Socket plugin for San Andreas Multiplayer
29 stars 15 forks source link

Dockerfile example. #10

Open SysadminJeroen opened 7 years ago

SysadminJeroen commented 7 years ago

So it can be a pain in the ass to compile certain SAMP plugins. A few days ago I made a Dockerfile so I don't have to remember each and every step.

This Dockerfile is made to compile as if the environment were to be CentOS 6, this is due to me using CentOS 6 and this can easily be changed.

FROM centos:6

MAINTAINER jeroen@jeroendeneef.com

LABEL   name="CentOS 6 SAMP Socket Plugin" \
        vendor="CentOS"

RUN yum -y install \
        deltarpm; \
    yum -y groupinstall \
        'Development Tools'; \
    yum -y install \
        kernel-devel git glibc-devel.i686 openssl.i686 openssl-devel.i686 \
        libstdc++.i686 libstdc++-devel.i686; \
    yum -y clean \
        all

RUN git clone --recursive https://github.com/pBlueG/Socket.git; \
    cd Socket; \
    curl -O https://github.com/Jeroen52/Socket/commit/5e3108950aaca9d7a187acffdf724b07e810d762.patch; \
    git apply 5e3108950aaca9d7a187acffdf724b07e810d762.patch; \
    cd socket; \
    make

Here is a mirror of the latest build. https://mirror.jeroendeneef.com/samp/socket-plugin/v0.2b/bin/centos/6/shared/