Skip to content

Commit

Permalink
First version working locally (with run-local)
Browse files Browse the repository at this point in the history
  • Loading branch information
elisabettai committed Feb 9, 2024
0 parents commit 29c249b
Show file tree
Hide file tree
Showing 25 changed files with 1,134 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[bumpversion]
current_version = 1.0.0
commit = False
message = service version: {current_version} → {new_version}
tag = False

[bumpversion:file:.osparc/metadata.yml]
search = {current_version}
replace = {new_version}

[bumpversion:file:Makefile]
search = {current_version}
replace = {new_version}

[bumpversion:file:docker-compose-local.yml]
search = {current_version}
replace = {new_version}
41 changes: 41 additions & 0 deletions .cookiecutterrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This file exists so you can easily regenerate your project.
#
# `cookiepatcher` is a convenient shim around `cookiecutter`
# for regenerating projects (it will generate a .cookiecutterrc
# automatically for any template). To use it:
#
# pip install cookiepatcher
# cookiepatcher gh:itisfoundation/cookiecutter-osparc-service project-path
#
# See:
# https://pypi.python.org/pypi/cookiepatcher
#
# Alternatively, you can run:
#
# cookiecutter --overwrite-if-exists --config-file=project-path/.cookiecutterrc gh:itisfoundation/cookiecutter-osparc-service
#

default_context:

_output_dir: '/home/iavarone/tests'
_template: '/home/iavarone/repos/cookiecutter-osparc-jupyterlab-service/'
author_affiliation: "IT'IS Foundation"
author_email: '[email protected]'
author_name: 'Elisabetta Iavarone'
contact_email: '[email protected]'
docker_base: 'quay.io/jupyter/minimal-notebook:7285848c0a11@sha256:1f43611f561bd6e8480f4bc03d0c56ce56b6657f1b21cd2bfb2debbb54973164'
git_repo: 'github'
git_username: 'elisabettai'
install_custom_software: 'no'
install_other_kernel: 'no'
install_python_kernel: 'yes'
number_of_inputs: '4'
number_of_outputs: '4'
project_name: 'AxonDeepSeg in JupyterLab'
project_package_name: 'jupyter_axondeepseg'
project_short_description: 'AxonDeepSeg in JupyterLab'
project_slug: 'jupyter-axondeepseg'
release_date: '2024'
resources_CPU_nanoCPUs: '4000000000'
resources_RAM_nanoBytes: '16000000000'
version: '1.0.0'
15 changes: 15 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

# Maps code in repository with maintainers
# Order is important. The last matching pattern has the most precedence.
# SEE https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-code-owners#example-of-a-codeowners-file


# files and folders recursively
Dockerfile @elisabettai
Makefile @elisabettai

# NOTE: '/' denotes the root of the repository
/.github/ @pcrespov @GitHK
/.osparc/ @pcrespov @GitHK @elisabettai
/kernels/ @elisabettai
/docker/ @pcrespov @GitHK
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/ask_question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: 💬 Question
about: Ask a question
labels: question
---

## What version of this service are you using?

<!--
Different ways are possible.
If you have the service open in o²S²PARC, the service version can be found under the "More Options" menu
-->

## How can we help you?
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: 🐛 Bug
about: File a bug/issue
labels: bug
---

## What version of this service are you using?




<!--
Different ways are possible.
If you have the service open in o²S²PARC, the service version can be found under the "More Options" menu
-->
## Long story short

<!-- Please describe your problem and why the fix is important. -->

## Expected behaviour

<!-- What is the behaviour you expect? -->

## Actual behaviour

<!-- What's actually happening? -->

## Steps to reproduce

<!-- Please describe steps to reproduce the issue.
If you have a script that does that please include it here within
markdown code markup -->

## Your environment

<!-- Describe the environment you have that lead to your issue.
This includes aiohttp version, OS, proxy server and other bits that
are related to your case.
IMPORTANT: aiohttp is both server framework and client library.
For getting rid of confusing please put 'server', 'client' or 'both'
word here.
-->
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: ✨ Feature request
about: Suggest an idea to implement
labels: enhancement
---

## User Story

<!-- A clear and concise description of how the feature works and looks like from the user's perspective.
Ex. I want to be able the stop the running pipeline by pressing a stop button. If the pipeline is stopped, I see a info-level message confirming it in the logger, if it fails the message should be displayed in red (error). Also, all the progress bars in the nodes must be set to 0. -->

## Example

<!-- Any file/screenshot/photomontage/video/website is provided for a better understanding of the request -->


## Definition of Done
<!--
A clear and concise description of what the feature requires.
1. Play button turns into stop button when pipeline is running
2. Stop button turns into play button when pipeline is finished
3. Stop button turns into play button when pipeline is successfully stopped
4. Logger displays messages everytime the play/stop button is pressed
5. Progress bars are set to 0 when stopping pipeline
6. Stop button has a Python interface -->
22 changes: 22 additions & 0 deletions .github/workflows/check-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build and check image

on: push

jobs:
verify-image-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo content
uses: actions/checkout@v2
- name: ooil version
uses: docker://itisfoundation/ci-service-integration-library:v1.0.3-dev-4
with:
args: ooil --version
- name: Assemble docker-compose spec
uses: docker://itisfoundation/ci-service-integration-library:v1.0.3-dev-4
with:
args: ooil compose
- name: Build all images if multiple
uses: docker://itisfoundation/ci-service-integration-library:v1.0.3-dev-4
with:
args: docker-compose build
5 changes: 5 additions & 0 deletions .osparc/docker-compose.overwrite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.7"
services:
jupyter-axondeepseg:
build:
dockerfile: Dockerfile
197 changes: 197 additions & 0 deletions .osparc/metadata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
name: AxonDeepSeg in JupyterLab
key: simcore/services/dynamic/jupyter-axondeepseg
type: dynamic
integration-version: 2.0.0
version: 1.0.0
description: AxonDeepSeg in JupyterLab
contact: [email protected]
thumbnail: https://raw.githubusercontent.com/axondeepseg/doc-figures/main/index/fig2.png
authors:
- name: Elisabetta Iavarone
email: [email protected]
affiliation: IT'IS Foundation
inputs:
input_1:
displayOrder: 1
label: input_file_1
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_2:
displayOrder: 2
label: input_file_2
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_3:
displayOrder: 3
label: input_file_3
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_4:
displayOrder: 4
label: input_file_4
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_4:
displayOrder: 4.0
label: input_files_4
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_5:
displayOrder: 5.0
label: input_files_5
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_6:
displayOrder: 6.0
label: input_files_6
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_7:
displayOrder: 7.0
label: input_files_7
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_8:
displayOrder: 8.0
label: input_files_8
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_9:
displayOrder: 9.0
label: input_files_9
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_10:
displayOrder: 10.0
label: input_files_10
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_11:
displayOrder: 11.0
label: input_files_11
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_12:
displayOrder: 12.0
label: input_files_12
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_13:
displayOrder: 13.0
label: input_files_13
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_14:
displayOrder: 14.0
label: input_files_14
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_15:
displayOrder: 15.0
label: input_files_15
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_16:
displayOrder: 16.0
label: input_files_16
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_17:
displayOrder: 17.0
label: input_files_17
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_18:
displayOrder: 18.0
label: input_files_18
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_19:
displayOrder: 19.0
label: input_files_19
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
input_20:
displayOrder: 20.0
label: input_files_20
description:
Any input files. One or several files compressed in a zip will be
downloaded in an inputs folder.
type: data:*/*
outputs:
output_1:
displayOrder: 1
label: output_files_1
description: Output files uploaded from the outputs folder
type: data:*/*
output_2:
displayOrder: 2
label: output_files_2
description: Output files uploaded from the outputs folder
type: data:*/*
output_3:
displayOrder: 3
label: output_files_3
description: Output files uploaded from the outputs folder
type: data:*/*
output_4:
displayOrder: 4
label: output_files_4
description: Output files uploaded from the outputs folder
type: data:*/*

boot-options:
boot_mode:
label: Boot mode
description: Select boot type for the service
default: "0"
items:
"0":
label: JupyterLab
description: Display the JupyterLab interface the default boot mode
"1":
label: Voila
description:
To start as Voila save a notebook as "voila.ipynb" in the root
folder
min-visible-inputs: 4
Loading

0 comments on commit 29c249b

Please sign in to comment.