Skip to content

Commit

Permalink
Merge pull request sharppy#136 from zflamig/master
Browse files Browse the repository at this point in the history
Add Dockerfile for running SHARPpy
  • Loading branch information
Greg Blumberg committed Dec 19, 2018
2 parents 988bba5 + db03c7f commit a301003
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git
Dockerfile
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:2.7

RUN apt-get -y update \
&& apt-get install -y libqt4-dev cmake xvfb

RUN pip install numpy==1.13 pyside==1.2.4

COPY . /sharppy
WORKDIR /sharppy
RUN python setup.py install

WORKDIR /sharppy/runsharp
CMD python full_gui.py
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ SHARPpy is a collection of open source sounding and hodograph analysis routines,
- [Developer Requests](#developer-requests)
- [Installing SHARPpy](#installing-sharppy)
- [Installing a Pre-compiled Binary](#installing-a-pre-compiled-binary)
- [Installing Using Docker](#installing-using-docker)
- [Installing the Code](#installing-the-code)
- [Using the SHARPpy Application](#using-the-sharppy-application)
- [Using the SHARPpy Sounding Picker](#using-the-sharppy-sounding-picker)
Expand Down Expand Up @@ -80,6 +81,18 @@ The following pre-compiled binaries are available (click to download):

Installing a pre-compiled binary *should* be as simple as downloading the .zip file and extracting it to the location of your choice. The zip files are named for the operating system and number of bits. Most recently-built computers (probably post-2010 or so) should have 64-bit operating systems installed. If your computer is older and you're unsure whether it has a 32- or 64-bit operating system, you can check on Windows 7 by clicking Start, right-clicking on Computer, and selecting Properties. All recent versions of OS X (10.6 and newer) should be 64-bit.

#### Installing Using Docker
<sup>[[Return to Top]](#sharppy)</sup>

The code can be built using the provided Dockerfile.

docker build -t sharppy .

You can then run the container providing that the host is running an X Windows server. _Windows_ and _Mac OS X_ may need additional software such as Xming or XQuartz. On _Linux_ this would look like:

xhost +
docker run --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -ti sharppy

#### Installing the Code from Source
<sup>[[Return to Top]](#sharppy)</sup>

Expand Down

0 comments on commit a301003

Please sign in to comment.