Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile example. #10

Open
SysadminJeroen opened this issue May 14, 2017 · 0 comments
Open

Dockerfile example. #10

SysadminJeroen opened this issue May 14, 2017 · 0 comments

Comments

@SysadminJeroen
Copy link

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 [email protected]

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant