Skip to content

Commit

Permalink
Merge pull request #2 from coder4code/master
Browse files Browse the repository at this point in the history
ecCodes version 2.18.0 and ecCodes-Python version 0.9.8
  • Loading branch information
EduardRosert authored Jun 30, 2020
2 parents 8085303 + 3bd38ae commit 343644b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ RUN set -eux \

# Install eccodes
# requires ecbuild
ARG ECCODES_VERSION=2.17.1
ARG ECCODES_VERSION=2.18.0
RUN set -eux \
&& mkdir -p /src/ \
&& cd /src \
Expand All @@ -107,11 +107,13 @@ RUN set -eux \
# Install ecCodes
# requires ecBuild
# Install Python run-time dependencies (for eccodes)
ARG PYTHON_ECCODES_VERSION=0.9.8
RUN set -ex \
&& mkdir -p /src/ \
&& cd /src/ \
&& git clone https://github.com/ecmwf/eccodes-python \
&& cd eccodes-python \
&& git checkout ${PYTHON_ECCODES_VERSION} \
&& pip install -e . \
&& python builder.py

Expand Down Expand Up @@ -176,4 +178,4 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.vendor="DWD - Deutscher Wetterdienst" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
org.label-schema.schema-version="1.0"
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SHELL := /bin/bash

# test
TEST_CMD := python -m eccodes selfcheck

Expand All @@ -10,7 +12,7 @@ SOURCE_TAG := ${shell . ./hooks/env && echo $$SOURCE_TAG}
DOCKER_TAG := ${shell . ./hooks/env && echo $$DOCKER_TAG}
IMAGE_NAME := ${shell . ./hooks/env && echo $$IMAGE_NAME}

aall: build
all: build

.PHONY: build run run-interactive test login login-user-pass push clean

Expand All @@ -36,4 +38,4 @@ push:
./hooks/post_push

clean:
@docker rmi ${DOCKER_REPO}
@docker rmi ${DOCKER_REPO}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Python and [ECMWF ecCodes](https://github.com/ecmwf/eccodes) packaged in a Docker container to allow for easy processing of GRIB2 and BUFR files.

[![Python Version](https://img.shields.io/badge/python-3.7.7-informational)](https://hub.docker.com/_/python)
[![ecCodes Version](https://img.shields.io/badge/ecCodes-2.17.1-informational)](https://github.com/ecmwf/eccodes)
[![ecCodes- Version](https://img.shields.io/static/v1?label=eccodes-python&message=latest&color=informational)](https://github.com/ecmwf/eccodes-python)
[![ecCodes Version](https://img.shields.io/badge/ecCodes-2.18.0-informational)](https://github.com/ecmwf/eccodes)
[![ecCodes-Python Version](https://img.shields.io/static/v1?label=eccodes-python&message=0.9.8&color=informational)](https://github.com/ecmwf/eccodes-python)
[![Docker Build Status](https://img.shields.io/docker/cloud/build/deutscherwetterdienst/python-eccodes.svg)](https://hub.docker.com/r/deutscherwetterdienst/python-eccodes)
[![Docker Pulls](https://img.shields.io/docker/pulls/deutscherwetterdienst/python-eccodes)](https://hub.docker.com/r/deutscherwetterdienst/python-eccodes)

Expand Down Expand Up @@ -39,4 +39,4 @@ edition centre date dataType gridType stepRange ty
1 of 1 messages in some-file.grib2
1 of 1 total messages in 1 files
```
```
1 change: 1 addition & 0 deletions hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
docker build \
--build-arg ECBUILD_VERSION=${ECBUILD_VERSION} \
--build-arg ECCODES_VERSION=${ECCODES_VERSION} \
--build-arg PYTHON_ECCODES_VERSION=${PYTHON_ECCODES_VERSION} \
--build-arg PYTHON_VERSION=${PYTHON_VERSION} \
--build-arg BUILD_DATE=${DATE} \
--build-arg VCS_URL=${SOURCE_URL} \
Expand Down
5 changes: 3 additions & 2 deletions hooks/env
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
[ -n "$SOURCE_URL" ] || SOURCE_URL=https://github.com/deutscherwetterdienst/python-eccodes
[ -n "$DOCKER_REPO" ] || DOCKER_REPO=deutscherwetterdienst/python-eccodes
[ -n "$ECBUILD_VERSION" ] || ECBUILD_VERSION="3.3.2"
[ -n "$ECCODES_VERSION" ] || ECCODES_VERSION="2.17.1"
[ -n "$ECCODES_VERSION" ] || ECCODES_VERSION="2.18.0"
[ -n "$PYTHON_ECCODES_VERSION" ] || PYTHON_ECCODES_VERSION="0.9.8"
[ -n "$PYTHON_VERSION" ] || PYTHON_VERSION="3.7.7"

[ -n "$SOURCE_BRANCH" ] || SOURCE_BRANCH=$(git symbolic-ref -q --short HEAD)
Expand All @@ -33,4 +34,4 @@ fi
[ -n "$IMAGE_NAME_LATEST" ] || IMAGE_NAME_LATEST=${DOCKER_REPO}:latest
[ -n "$IMAGE_NAME_LONG" ] || IMAGE_NAME_LONG=${DOCKER_REPO}:${PYTHON_VERSION}-${ECCODES_VERSION}-${DOCKER_TAG}
[ -n "$IMAGE_NAME_LONG_LATEST" ] || IMAGE_NAME_LONG_LATEST=${DOCKER_REPO}:${PYTHON_VERSION}-${ECCODES_VERSION}-latest
[ -n "$DATE" ] || DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
[ -n "$DATE" ] || DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)

0 comments on commit 343644b

Please sign in to comment.