Skip to content

Add compiled packages to docker #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/build_containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
branches:
- main
tags: ["*"]
pull_request:
workflow_dispatch:
jobs:
build_containers:
Expand All @@ -22,11 +21,15 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Download compiled packages
run: gh run download --repo EarthyScience/RQADeforestation.jl --name binaries --dir ogc-app-cwl/binaries
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN}}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: ogc-app-cwl
push: true
tags: danlooo/fairsendd:latest
tags: danlooo/fairsendd:latest, danlooo/fairsendd:${{ github.sha }}
cache-from: type=registry,ref=danlooo/fairsendd:latest
cache-to: type=inline
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
etc/nextcloud
etc/nextcloud
ogc-app-cwl/binaries
17 changes: 4 additions & 13 deletions ogc-app-cwl/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
FROM julia:1.11.2-bookworm
FROM debian:bookworm-slim
WORKDIR /work

ENV JULIA_NUM_THREADS=auto

ENV JULIA_DEPOT_PATH=/.julia
RUN julia -e 'using Pkg; Pkg.activate("/.julia/environments/v1.11"); Pkg.instantiate(); Pkg.status()'
COPY Project.toml /.julia/environments/v1.11/
COPY Manifest.toml /.julia/environments/v1.11/
RUN julia -e 'using Pkg; Pkg.activate("/.julia/environments/v1.11"); Pkg.instantiate(); Pkg.status()'
ENV JULIA_DEPOT_PATH=~/.julia:/.julia

ADD run.jl ./
ENTRYPOINT ["/work/run.jl"]
COPY binaries/bin /usr/bin
COPY binaries/lib /usr/lib
ENTRYPOINT ["RQADeforestation"]