-
Notifications
You must be signed in to change notification settings - Fork 123
installation using Docker #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
DavideBaroliUniLu
wants to merge
43
commits into
mathLab:master
from
DavideBaroliUniLu:dbaroli/docker
Closed
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
40f0ab0
add dockerfiles
DavideBaroliUniLu 9908cfd
remove .bash_history
DavideBaroliUniLu 0e20ae4
add testing of dockerfile in travis
DavideBaroliUniLu f3e8fa9
adding docker sudo permission
DavideBaroliUniLu 8474f98
requirement for docker services
DavideBaroliUniLu 81cc562
root permission move to run
DavideBaroliUniLu ac34923
small bug
DavideBaroliUniLu ca82497
spelling error
DavideBaroliUniLu a105884
move docker-run for README purpose, pulling from docker.io
DavideBaroliUniLu daf2b36
update travis, docker command in travis work only on linux ( issue #…
DavideBaroliUniLu 66cfc12
fullfill the request;clean unused file
DavideBaroliUniLu 7bf8f8b
make one Dockerfile
DavideBaroliUniLu d77a6b3
pushing the Dockerfile
DavideBaroliUniLu 0b570ef
update travis.yml pulling from dockerhub autobuild-deployment; add ve…
DavideBaroliUniLu 4d58be1
specify the tag
DavideBaroliUniLu 5db4213
update README.md
DavideBaroliUniLu 3b01a91
minor fix doc
DavideBaroliUniLu 5a761f5
correct the dimension of container
DavideBaroliUniLu 21be709
add info to use X11 in Win and Mac
DavideBaroliUniLu 6640a29
write method in the RBFParameters class and tests
mtezzele 845fa1b
readme updated with rbf and gui
cedb8d0
Gui improvements and tests (#80)
4217f4a
removed the repeated gui paragraph
mtezzele 5fb2c36
now we can plot iges, vtk and stl on the gui during the execution
8011b67
some documentation and tests added for the gui new features
df51043
some documentation and tests added for the gui new features
ecdd9ad
changed picture and caption of gui in readme
7e91fba
now matplotlib figures are centered on the geometry
cb05388
changed some lines of code in plot method of vtkhandler class to make…
210ff58
RBF class and documentation
mtezzele 12f939b
minor fixes
mtezzele 84e1593
test rbf
mtezzele 29925af
changed the order of the points in the plot of bounding box cause it …
dd90813
More tests for radial and doc (#88)
mtezzele 39bdcea
pylint fixes and workaround for mac users
mtezzele 2ac1b4d
utility to plot rbf control points
mtezzele 61fdaa6
unvhandler fixes and freeform performances improved (#91)
sc-ita 1c6f850
tutorial for rbf and documentation
mtezzele bdf5788
added link to youtube video tutorial
2451a83
nautical example added
6f300f3
add dockerfiles
DavideBaroliUniLu ba79d92
update travis.yml with docker running; update README.md
DavideBaroliUniLu bf3f933
Merge branch 'dbaroli/docker' of https://github.com/DavideBaroliUniLu…
DavideBaroliUniLu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| FROM phusion/baseimage:0.9.19 | ||
|
|
||
| # Get Ubuntu updates | ||
| USER root | ||
| RUN apt-get update -q && \ | ||
| apt-get upgrade -y -o Dpkg::Options::="--force-confold" && \ | ||
| apt-get -y install sudo && \ | ||
| apt-get -y install locales && \ | ||
| echo "C.UTF-8 UTF-8" > /etc/locale.gen && \ | ||
| locale-gen && \ | ||
| rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
|
||
| # Set locale environment | ||
| ENV LC_ALL=C.UTF-8 \ | ||
| LANG=C.UTF-8 \ | ||
| LANGUAGE=C.UTF-8 | ||
|
|
||
| # OpenBLAS threads should be 1 to ensure performance | ||
| RUN echo 1 > /etc/container_environment/OPENBLAS_NUM_THREADS && \ | ||
| echo 0 > /etc/container_environment/OPENBLAS_VERBOSE | ||
|
|
||
|
|
||
| # Set up user so that we do not run as root | ||
| RUN useradd -m -s /bin/bash -G sudo,docker_env PyGeM && \ | ||
| echo "PyGeM:docker" | chpasswd && \ | ||
| echo "PyGeM ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | ||
|
|
||
| RUN touch /etc/service/syslog-forwarder/down | ||
| COPY set-home-permissions.sh /etc/my_init.d/set-home-permissions.sh | ||
| RUN chmod +x /etc/my_init.d/set-home-permissions.sh | ||
|
|
||
| USER PyGeM | ||
| ENV HOME /home/PyGeM | ||
| RUN touch $HOME/.sudo_as_admin_successful && \ | ||
| mkdir $HOME/shared && \ | ||
| mkdir $HOME/build | ||
| VOLUME /home/PyGeM/shared | ||
|
|
||
| WORKDIR /home/PyGeM | ||
| ENTRYPOINT ["sudo","/sbin/my_init","--quiet","--","sudo","-u","PyGeM","/bin/bash","-l","-c"] | ||
| CMD ["/bin/bash","-i"] | ||
|
|
||
| # utilities and libraries | ||
| USER root | ||
| RUN apt-get update -y; apt-get install -y --force-yes --fix-missing --no-install-recommends curl git unzip tree subversion vim cmake bison g++ gfortran openmpi-bin pkg-config wget libpcre3-dev bison flex swig libglu1-mesa pyqt4-dev-tools | ||
| RUN apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
|
||
| RUN id PyGeM | ||
| RUN chown -R PyGeM:PyGeM $HOME | ||
|
|
||
| RUN cd /tmp && \ | ||
| wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh && \ | ||
| chmod +x miniconda.sh && \ | ||
| bash miniconda.sh -b -p /usr/local/miniconda && \ | ||
| rm /tmp/* | ||
| ENV PATH=/usr/local/miniconda/bin:$PATH | ||
|
|
||
| RUN echo "PATH=/usr/local/miniconda/bin:$PATH" >> ~/.profile | ||
| RUN /bin/bash -c 'source ~/.profile' | ||
|
|
||
| RUN hash -r && \ | ||
| conda config --set always_yes yes --set changeps1 no && \ | ||
| conda update -q conda | ||
| RUN conda info -a && \ | ||
| conda create --yes -n test python="2.7"; | ||
|
|
||
| RUN /bin/bash -c 'source activate test' | ||
| # The default sip version has api that is not compatible with qt4. | ||
| RUN conda install --yes numpy scipy matplotlib pip nose vtk sip=4.18 | ||
| RUN conda install --yes -c https://conda.anaconda.org/dlr-sc pythonocc-core &&\ | ||
| pip install setuptools && \ | ||
| pip install enum34 && \ | ||
| pip install numpy-stl && \ | ||
| pip install coveralls && \ | ||
| pip install coverage | ||
|
|
||
| RUN cd $HOME && \ | ||
| cd build && \ | ||
| git clone https://github.com/mathLab/PyGeM.git && \ | ||
| cd PyGeM && \ | ||
| python setup.py install | ||
|
|
||
| USER PyGeM | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/bin/bash | ||
| # User can pass e.g. --env HOST_UID=1003 so that UID in the container matches | ||
| # with the UID on the host. This is useful for Linux users, Mac and Windows | ||
| # already do transparent mapping of shared volumes. | ||
| if [ "$HOST_UID" ]; then | ||
| usermod -u $HOST_UID PyGeM | ||
| fi | ||
| if [ "$HOST_GID" ]; then | ||
| groupmod -g $HOST_GID PyGeM | ||
| fi | ||
| # This makes sure that all files in /home/fenics are accessible by the user | ||
| # fenics. We exclude the folder ~/shared to reduce IO out to the host. Docker | ||
| # for Mac, Docker for Windows and the UID/GID trick above should mean that file | ||
| # permissions work seamlessly now. | ||
| cd /home/PyGeM | ||
| find . -maxdepth 1 | grep -v "./shared" | xargs chown -R PyGeM:PyGeM | ||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*developing and a space after the comma.