Skip to content

Commit

Permalink
build spatial
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Feb 20, 2025
1 parent 51cdbd6 commit 730fea2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/spatial-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Spatial extension
on:
workflow_dispatch: null
push:
paths:
- extend/Dockerfile
- extend/environment.yml
- extend/install.r
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: free extra disk space
run: |
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc
df -h
- uses: actions/checkout@v3
- name: Publish to GitHub Container Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: rocker-org/ml-spatial
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
context: extend
- name: Publish to Docker Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: rocker/ml-spatial
context: extend
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}

5 changes: 3 additions & 2 deletions extend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM rocker/cuda
# use rocker/cuda if NVIDIA drivers are needed, otherwise rocker/ml is a good choice
FROM rocker/ml

# When run as root, R automagically handles any necessary apt-gets
# When run at build time, R automagically handles any necessary apt-gets
COPY install.r install.r
RUN Rscript install.r

Expand Down

0 comments on commit 730fea2

Please sign in to comment.