Skip to content

Commit 62dcfb5

Browse files
committed
added ogc app pack action
1 parent bc62d0e commit 62dcfb5

5 files changed

Lines changed: 65 additions & 1 deletion

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
push:
3+
branches:
4+
- mlucas/ogc
5+
jobs:
6+
build_app_pack:
7+
environment: DIT
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
contents: write
12+
packages: write
13+
14+
steps:
15+
- name: Checkout repo content
16+
uses: actions/checkout@v4
17+
18+
- name: Use OGC App Pack Generator Action
19+
uses: MAAP-Project/ogc-app-pack-generator@feature/create-action
20+
with:
21+
# Specify action inputs
22+
algorithm-configuration-path: ogc/algorithm_config.yml
23+
dockerfile-path: Dockerfile

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Use miniconda as the base image with the specified version.
2+
FROM continuumio/miniconda3:23.10.0-1
3+
ENV LANG en_US.UTF-8
4+
ENV TZ US/Pacific
5+
ARG DEBIAN_FRONTEND=noninteractive
6+
7+
# Create a directory for the dps-unit-test application
8+
RUN mkdir -p /app/dps-unit-test
9+
10+
# Copy application files to the working directory
11+
COPY ./ /app/dps-unit-test
12+
13+
# Assign execute permissions to the scripts
14+
RUN chmod +x /app/dps-unit-test/run-test.sh
15+

input_file.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

ogc/algorithm_config.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Input params for OGC application package generator
2+
# The information provided in this file supports CWL and OGC best practices
3+
algorithm_description: Unit testing DPS for new cluster setups
4+
algorithm_name: dps-unit-test
5+
algorithm_version: mlucas/ogc
6+
keywords: ogc, dps, test
7+
code_repository: https://github.com/MAAP-Project/dps-unit-test.git
8+
citation: https://github.com/MAAP-Project/dps-unit-test.git
9+
author: mlucas
10+
contributor: mlucas
11+
license: https://github.com/MAAP-Project/dps-unit-test/blob/main/LICENSE
12+
release_notes: None
13+
run_command: /app/dps-unit-test/run-test.sh
14+
ram_min: 5 # mebibytes
15+
cores_min: 1
16+
outdir_max: 20 # mebibytes
17+
18+
inputs:
19+
- name: input_file
20+
doc: Input file
21+
label: input file
22+
type: string
23+
24+
outputs:
25+
- name: out
26+
type: Directory

test-input-file.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44

55
date = datetime.now().isoformat()
6+
print(sys.argv)
67
input_file = sys.argv[1]
78
with open(input_file, 'r') as fr:
89
print(f"Opening input file {input_file} success")

0 commit comments

Comments
 (0)