Skip to content

Commit 892b9c3

Browse files
committed
Added centos build docker file.
1 parent 5777ede commit 892b9c3

File tree

3 files changed

+28
-147
lines changed

3 files changed

+28
-147
lines changed

.docker/centos/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM centos:7
2+
MAINTAINER Dilawar Singh <[email protected]>
3+
4+
# Install dependencies.
5+
RUN yum -y update && yum -y install epel-release && yum -y update \
6+
&& yum -y clean all --enablerepo='*'
7+
RUN yum install -y git cmake gcc gcc-c++ make \
8+
python3 python3-setuptools gsl-dev python3-numpy \
9+
&& yum -y clean all --enablerepo='*'
10+
11+
WORKDIR /home/root
12+
# RUN git clone https://github.com/dilawar/moose-core -b devel
13+
# Run docker build from outside
14+
COPY . /home/root/moose-core
15+
RUN cd moose-core && python3 setup.py build

.docker/centos/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
NAME:=dilawars/centos-moose
2+
VERSION:=$(shell date +%Y.%m.%d)
3+
4+
all : build
5+
6+
build : Dockerfile
7+
cd ../../ && docker build -t $(NAME):$(VERSION) .docker/centos
8+
cd ../../ && docker build -t $(NAME):latest .docker/centos
9+
10+
upload :
11+
docker push $(NAME):$(VERSION)
12+
docker push $(NAME):latest
13+

scripts/submit.py

Lines changed: 0 additions & 147 deletions
This file was deleted.

0 commit comments

Comments
 (0)