Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AUTOMAKE_OPTIONS = foreign
SUBDIRS = src data scripts

docker-centos:
docker build -t epacts/master/centos:latest \
-f docker/centos/Dockerfile .

docker-ubuntu:
docker build -t epacts/master/ubuntu:latest \
-f docker/ubuntu/Dockerfile .

install-exec-hook:
mkdir --p $(libdir)
R CMD INSTALL -l $(libdir) $(datadir)/${PACKAGE}/epactsR_3.3.2.tar.gz
Expand Down
40 changes: 40 additions & 0 deletions docker/centos/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
FROM centos:centos7 as base

ENV EPACTS_ROOT="/opt/epacts"

RUN yum -y install \
centos-release-scl epel-release && \
yum -y update && yum -y upgrade && \
yum -y install \
curl \
groff \
ghostscript \
gnuplot \
help2man \
R R-studio \
zlib

FROM base as builder

RUN yum -y install \
autoconf \
automake \
gcc-c++ \
libtool \
python3 \
python-pip \
zlib-devel

WORKDIR /usr/src
COPY . .

RUN g++ --version && mkdir -p $EPACTS_ROOT && \
autoreconf -f -i && ./configure --prefix $EPACTS_ROOT && \
make && make install && rm -rf ${SRC_DIR}


FROM base as release

ENV PATH=$EPACTS_ROOT/bin:$PATH
COPY --from=builder $EPACTS_ROOT/ $EPACTS_ROOT/
ENTRYPOINT [ "epacts" ]
42 changes: 42 additions & 0 deletions docker/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM ubuntu:18.04 as base

ENV EPACTS_ROOT="/opt/epacts"

RUN apt -y update && apt -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt -y install --no-install-suggests \
curl \
groff \
ghostscript \
gnuplot \
help2man \
r-base-core \
zlib1g


FROM base as builder

RUN DEBIAN_FRONTEND=noninteractive apt -y install --no-install-suggests\
autoconf \
build-essential \
g++-5 \
libtool \
lsb-release \
python \
python3-pip

RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 5 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 5

WORKDIR /usr/src
COPY . .

RUN g++ --version && mkdir -p $EPACTS_ROOT && \
autoreconf -f -i && ./configure --prefix $EPACTS_ROOT && \
make && make install && rm -rf ${SRC_DIR}


FROM base as release

ENV PATH=$EPACTS_ROOT/bin:$PATH
COPY --from=builder $EPACTS_ROOT/ $EPACTS_ROOT/
ENTRYPOINT [ "epacts" ]