File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 55RUN yum -y update && yum -y install epel-release && yum -y update \
66 && yum -y clean all --enablerepo='*'
77RUN yum install -y git cmake gcc gcc-c++ make \
8- python3 python3-setuptools gsl-dev python3-numpy \
8+ python3 python3-devel python3-setuptools python3-numpy \
9+ && yum -y clean all --enablerepo='*'
10+ RUN yum install -y gsl-devel \
11+ && yum -y clean all --enablerepo='*'
12+ # These are required to run tests.
13+ RUN yum install -y python3-matplotlib python3-networkx graphviz python3-scipy \
914 && yum -y clean all --enablerepo='*'
10-
1115WORKDIR /home/root
1216# RUN git clone https://github.com/dilawar/moose-core -b devel
1317# Run docker build from outside
14- COPY . /home/root/moose-core
15- RUN cd moose-core && python3 setup.py build
18+ COPY . moose-core
19+ RUN cd moose-core && python3 setup.py build && python3 setup.py install
20+ RUN python3 -c 'import moose;moose.test()'
Original file line number Diff line number Diff line change 11NAME: =dilawars/centos-moose
22VERSION: =$(shell date +% Y.% m.% d)
33
4+ PROJECT_ROOT_DIR: =(PWD)/../..
5+
46all : build
57
68build : Dockerfile
7- cd ../../ && docker build -t $(NAME ) :$(VERSION ) .docker/centos
8- cd ../../ && docker build -t $(NAME ) :latest .docker/centos
9+ cd ../../ && docker build -t $(NAME ) :$(VERSION ) -f $( PWD ) /Dockerfile .
10+ cd ../../ && docker build -t $(NAME ) :latest -f $( PWD ) /Dockerfile .
911
1012upload :
1113 docker push $(NAME ) :$(VERSION )
1214 docker push $(NAME ) :latest
1315
16+ run :
17+ docker run -ti $(NAME ) :$(VERSION ) bash
18+
You can’t perform that action at this time.
0 commit comments