-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from ecmwf/consolidated
merge version 0.9.0
- Loading branch information
Showing
27 changed files
with
1,015 additions
and
323 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
.git* | ||
.dockerignore | ||
.env | ||
.s3env | ||
.travis.yml | ||
.vscode | ||
hooks* | ||
Makefile | ||
docker-compose.yml | ||
venv* | ||
|
This file contains 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,28 @@ | ||
# | ||
# local development server configuration | ||
# | ||
|
||
# the path inside the docker container that stores the GRIB and NetCDF data | ||
SKINNYWMS_DATA_PATH=/data/ | ||
|
||
# the host ip the server should listen on | ||
# set to 0.0.0.0 to listen on all ips | ||
SKINNYWMS_HOST=0.0.0.0 | ||
|
||
# the http port the flask server listens on | ||
SKINNYWMS_PORT=5000 | ||
|
||
# enable/disable layer dimension grouping (by elevation) | ||
SKINNYWMS_ENABLE_DIMENSION_GROUPING=0 | ||
|
||
# flask env to enable auto reload on code changes | ||
FLASK_ENV=development | ||
|
||
# # Configure Magics | ||
#MAGPLUS_HOME=/usr/local/lib/python3.6/site-packages/ecmwflibs | ||
#MAGICS_STYLE_PATH=/usr/local/lib/python3.6/site-packages/ecmwflibs/share/magics/styles/ecmwf | ||
MAGICS_STYLES_DEBUG=on | ||
|
||
MAGPLUS_DEBUG=on | ||
MAGPLUS_DEV=on | ||
MAGICS_QUIET= |
This file contains 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,49 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Publish Latest Docker | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the develop branch | ||
push: | ||
branches: [ develop ] | ||
# pull_request: | ||
# branches: [ develop ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
push: true | ||
tags: ecmwf/skinnywms:latest | ||
|
||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
This file contains 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,54 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Publish Tagged Images to DockerHub | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the develop branch | ||
push: | ||
tags: | ||
- '*' | ||
# pull_request: | ||
# branches: [ develop ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set tag | ||
id: vars | ||
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
push: true | ||
tags: ecmwf/skinnywms:${{ steps.vars.outputs.tag }} | ||
|
||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
This file contains 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 |
---|---|---|
|
@@ -6,3 +6,6 @@ __pycache__/ | |
meta.xml | ||
*.pyc | ||
*&* | ||
venv/ | ||
.venv/ | ||
skinnywms/testdata/*/* |
This file contains 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 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 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,31 @@ | ||
version: '3.7' | ||
|
||
services: | ||
skinnywms: | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile | ||
args: | ||
- PYTHON_IMAGE=python:3.8-slim-buster | ||
- http_proxy | ||
- https_proxy | ||
- no_proxy | ||
volumes: | ||
- '.:/app/skinnywms:ro' | ||
- './skinnywms/testdata:/data:ro' | ||
# override the default command to run flask app without uwgsi | ||
# to make use of automatic reload on code changes for development purposes | ||
command: | ||
- bash | ||
- -c | ||
- 'python /app/skinnywms/demo.py --host=${SKINNYWMS_HOST} --port=${SKINNYWMS_PORT} --path=${SKINNYWMS_DATA_PATH}' | ||
restart: always | ||
ports: | ||
- 5000:5000 | ||
env_file: | ||
- ./.env | ||
# environment: | ||
# - SKINNYWMS_DATA_PATH=${SKINNYWMS_DATA_PATH} | ||
# - SKINNYWMS_HOST=${SKINNYWMS_HOST} | ||
# - SKINNYWMS_PORT=${SKINNYWMS_PORT} | ||
# - FLASK_ENV=${FLASK_ENV} |
Oops, something went wrong.