Skip to content

Commit 45aed2b

Browse files
author
Yannick Habecker
committed
feat: add ubuntu-docker configurations
1 parent 8b6f788 commit 45aed2b

File tree

5 files changed

+23
-0
lines changed

5 files changed

+23
-0
lines changed

docker/.DS_Store

6 KB
Binary file not shown.

docker/base.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM ubuntu:xenial
2+
RUN dpkg --add-architecture i386
3+
RUN apt-get update
4+
RUN apt-get install -y python3.5-dev:i386
5+
RUN apt-get install -f

docker/compile.0.Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM pysamp/base:latest
2+
3+
RUN apt-get update
4+
RUN apt-get install -y build-essential g++ cmake g++-multilib
5+
RUN apt-get install -f
6+
7+
# WORKDIR /usr/src/pysamp
8+
# COPY . .
9+
# CMD [ "cmake", "./src", "-G", "Unix Makefiles", "-DCMAKE_BUILD_TYPE=Debug" ]

docker/compile.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM pysamp/compile.0:latest
2+
WORKDIR /usr/src/pysamp
3+
COPY . .
4+
RUN [ "cmake", "./src", "-G", "Unix Makefiles", "-DPYTHON_INCLUDE_DIR=/usr/include/python3.5m", "-DPYTHON_LIBRARY=/usr/lib/i386-linux-gnu/libpython3.5m.so", "-DCMAKE_BUILD_TYPE=Debug" ]
5+
CMD make; cp ./pySAMP.so /target/

docker/make

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
docker build -f ./base.Dockerfile -t pysamp/base ../
2+
docker build -f ./compile.0.Dockerfile -t pysamp/compile.0 ../
3+
docker build -f ./compile.Dockerfile -t pysamp/compile ../
4+
docker run -v "$(cd ../ && pwd)"/target:/target --rm pysamp/compile

0 commit comments

Comments
 (0)