Skip to content

Commit

Permalink
Setting the number of threads for make as an argument
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenSorriaux committed May 31, 2019
1 parent c306dd3 commit 8f042f8
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 12 deletions.
5 changes: 3 additions & 2 deletions mangosone/mangosd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM gcc:7.3.0 as builder
ARG MANGOS_SERVER_VERSION=master
ARG THREAD_COUNT="-j4"

RUN apt-get update -qq && \
apt-get install openssl libssl-dev cmake -y && \
git clone https://github.com/mangosone/server.git -b ${MANGOS_SERVER_VERSION} --recursive && \
cd server && \
cmake . -DBUILD_REALMD=No -DBUILD_TOOLS=No -DCONF_DIR=conf/ && \
make -j4 && \
make install -j4
make ${THREAD_COUNT} && \
make install ${THREAD_COUNT}

FROM debian:9
MAINTAINER Stephen SORRIAUX <stephen.sorriaux@gmail.com>
Expand Down
6 changes: 4 additions & 2 deletions mangosone/realmd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM gcc:7.3.0 as builder
ARG MANGOS_SERVER_VERSION=master
ARG THREAD_COUNT="-j4"

RUN apt-get update -qq && \
apt-get install openssl libssl-dev cmake -y && \
git clone https://github.com/mangosone/server.git -b ${MANGOS_SERVER_VERSION} --recursive && \
cd server && \
cmake . -DBUILD_MANGOSD=No -DBUILD_TOOLS=No -DCONF_DIR=conf/ && \
make -j4 && \
make install -j4
make ${THREAD_COUNT} && \
make install ${THREAD_COUNT}

FROM debian:9
MAINTAINER Stephen SORRIAUX <stephen.sorriaux@gmail.com>
Expand Down
5 changes: 3 additions & 2 deletions mangosthree/mangosd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM gcc:7.3.0 as builder
ARG MANGOS_SERVER_VERSION=master
ARG THREAD_COUNT="-j4"

RUN apt-get update -qq && \
apt-get install openssl libssl-dev cmake -y && \
git clone https://github.com/mangosthree/server.git -b ${MANGOS_SERVER_VERSION} --recursive && \
cd server && \
cmake . -DBUILD_REALMD=No -DBUILD_TOOLS=No -DCONF_DIR=conf/ && \
make -j4 && \
make install -j4
make ${THREAD_COUNT} && \
make install ${THREAD_COUNT}

FROM debian:9
MAINTAINER Stephen SORRIAUX <stephen.sorriaux@gmail.com>
Expand Down
6 changes: 4 additions & 2 deletions mangosthree/realmd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM gcc:7.3.0 as builder
ARG MANGOS_SERVER_VERSION=master
ARG THREAD_COUNT="-j4"

RUN apt-get update -qq && \
apt-get install openssl libssl-dev cmake -y && \
git clone https://github.com/mangosthree/server.git -b ${MANGOS_SERVER_VERSION} --recursive && \
cd server && \
cmake . -DBUILD_MANGOSD=No -DBUILD_TOOLS=No -DCONF_DIR=conf/ && \
make -j4 && \
make install -j4
make ${THREAD_COUNT} && \
make install ${THREAD_COUNT}

FROM debian:9
MAINTAINER Stephen SORRIAUX <stephen.sorriaux@gmail.com>
Expand Down
5 changes: 3 additions & 2 deletions mangostwo/mangosd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM gcc:7.3.0 as builder
ARG MANGOS_SERVER_VERSION=master
ARG THREAD_COUNT="-j4"

RUN apt-get update -qq && \
apt-get install openssl libssl-dev cmake -y && \
git clone https://github.com/mangostwo/server.git -b ${MANGOS_SERVER_VERSION} --recursive && \
cd server && \
cmake . -DBUILD_REALMD=No -DBUILD_TOOLS=No -DCONF_DIR=conf/ && \
make -j4 && \
make install -j4
make ${THREAD_COUNT} && \
make install ${THREAD_COUNT}

FROM debian:9
MAINTAINER Stephen SORRIAUX <stephen.sorriaux@gmail.com>
Expand Down
6 changes: 4 additions & 2 deletions mangostwo/realmd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM gcc:7.3.0 as builder
ARG MANGOS_SERVER_VERSION=master
ARG THREAD_COUNT="-j4"

RUN apt-get update -qq && \
apt-get install openssl libssl-dev cmake -y && \
git clone https://github.com/mangostwo/server.git -b ${MANGOS_SERVER_VERSION} --recursive && \
cd server && \
cmake . -DBUILD_MANGOSD=No -DBUILD_TOOLS=No -DCONF_DIR=conf/ && \
make -j4 && \
make install -j4
make ${THREAD_COUNT} && \
make install ${THREAD_COUNT}

FROM debian:9
MAINTAINER Stephen SORRIAUX <stephen.sorriaux@gmail.com>
Expand Down

0 comments on commit 8f042f8

Please sign in to comment.