Skip to content

Commit

Permalink
docker container for panoply
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne Fouilloux committed Feb 1, 2020
1 parent f8a6044 commit 27da85b
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM jlesage/baseimage-gui:alpine-3.6

MAINTAINER Anne Fouilloux, annefou@geo.uio.no

# Install xterm.
RUN apk update && \
apk add ca-certificates wget xterm openjdk8-jre && \
update-ca-certificates

# Copy the start script.
COPY startapp.sh /startapp.sh

# Set the name of the application.
ENV APP_NAME="Panoply"

# Set environment

ENV JAVA_HOME /opt/jdk

ENV PATH ${PATH}:${JAVA_HOME}/bin

COPY colorbars.tar /opt/colorbars.tar

RUN mkdir /opt/data && cd /opt && \
wget https://www.giss.nasa.gov/tools/panoply/download/PanoplyJ-4.11.0.tgz && \
tar zxvf PanoplyJ-4.11.0.tgz && \
rm -rf PanoplyJ-4.11.0.tgz && \
cd /opt/PanoplyJ && tar xvf /opt/colorbars.tar

WORKDIR /opt/data

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# docker-panoply

Docker container for running panoply netCDF, HDF and GRIB data viewer

```
docker run --rm -p 5800:5800 -p 5900:5900 \
-v /opt/uio/docker-ppp/data:/opt/data docker-panoply:1.0
```
Binary file added colorbars.tar
Binary file not shown.
3 changes: 3 additions & 0 deletions startapp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
exec /opt/PanoplyJ/panoply.sh
#exec /usr/bin/xterm

0 comments on commit 27da85b

Please sign in to comment.