-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
102 additions
and
52 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build image | ||
run: | | ||
./scripts/update.sh | ||
- name: Run TauDEM to ensure it works | ||
run: | | ||
./scripts/console.sh /opt/taudem/gagewatershed |
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,52 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: "*" | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: WikiWatershed/taudem | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
attestations: write | ||
id-token: write | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Build and push | ||
id: push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
- name: Generate artifact attestation | ||
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} | ||
subject-digest: ${{ steps.push.outputs.digest }} | ||
push-to-registry: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
## 5.3.8-xenial | ||
|
||
- Update Docker image to Ubuntu 16.04 xenial [#4](https://github.com/WikiWatershed/docker-taudem/pull/4) | ||
- Switch CI to GitHub Actions [#3](https://github.com/WikiWatershed/docker-taudem/pull/3) | ||
- Switch Publishing to GitHub Container Registry [#6](https://github.com/WikiWatershed/docker-taudem/pull/6) | ||
|
||
## 5.3.8 | ||
|
||
- Initial release. |
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,4 +1,5 @@ | ||
FROM ubuntu:14.04 | ||
FROM ubuntu:16.04 | ||
LABEL org.opencontainers.image.source="https://github.com/WikiWatershed/docker-taudem" | ||
|
||
MAINTAINER Azavea <[email protected]> | ||
|
||
|
@@ -19,7 +20,7 @@ RUN apt-get update && apt-get install -y \ | |
libgeos-dev \ | ||
libproj-dev \ | ||
libspatialite-dev \ | ||
libspatialite5 \ | ||
libspatialite7 \ | ||
spatialite-bin \ | ||
libibnetdisc-dev \ | ||
wget | ||
|
@@ -49,4 +50,4 @@ RUN wget -qO- https://github.com/dtarb/TauDEM/archive/v${TAUDEM_VERSION}.tar.gz | |
RUN ln -s /usr/src/TauDEM-${TAUDEM_VERSION} /opt/taudem | ||
ENV PATH /opt/taudem:$PATH | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install --upgrade "pip<21" |
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,23 +1,26 @@ | ||
# docker-taudem | ||
|
||
[![Travis CI](https://api.travis-ci.org/WikiWatershed/docker-taudem.svg "Build Status on Travis CI")](https://travis-ci.org/WikiWatershed/docker-taudem/) | ||
[![Docker Repository on Quay.io](https://quay.io/repository/wikiwatershed/taudem/status "Docker Repository on Quay.io")](https://quay.io/repository/wikiwatershed/taudem) | ||
[![Apache V2 License](http://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/wikiwatershed/docker-taudem/blob/develop/LICENSE) | ||
|
||
A Docker image for [TauDEM](http://hydrology.usu.edu/taudem/taudem5/index.html). | ||
|
||
##### Getting started | ||
### Quick Start | ||
|
||
``` | ||
docker run --rm -ti quay.io/wikiwatershed/taudem | ||
``` | ||
|
||
### Getting started | ||
* Run `./scripts/update.sh` | ||
* Run `./scripts/console.sh` | ||
|
||
##### Deployments | ||
### Deployments | ||
|
||
``` bash | ||
$ git flow release start 0.1.0 | ||
$ vim CHANGELOG.md | ||
$ vim Dockerfile | ||
$ git commit -m "0.1.0" | ||
$ git flow release publish 0.1.0 | ||
$ git flow release finish 0.1.0 | ||
$ git push --tags | ||
$ git flow release finish -p 0.1.0 | ||
``` |
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