Skip to content

Commit 71aa677

Browse files
author
Javier Garcia Ordonez
committed
adding github CI
1 parent aa008e8 commit 71aa677

11 files changed

+169
-159
lines changed
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: 💬 Question
3+
about: Ask a question
4+
labels: question
5+
---
6+
7+
## What version of this service are you using?
8+
9+
<!--
10+
Different ways are possible.
11+
If you have the service open in o²S²PARC, the service version can be found under the "More Options" menu:
12+
-->
13+
14+
## How can we help you?

.github/ISSUE_TEMPLATE/bug_report.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: 🐛 Bug
3+
about: File a bug/issue
4+
labels: bug
5+
---
6+
7+
## What version of this service are you using?
8+
9+
10+
11+
12+
<!--
13+
Different ways are possible.
14+
If you have the service open in o²S²PARC, the service version can be found under the "More Options" menu:
15+
-->
16+
## Long story short
17+
18+
<!-- Please describe your problem and why the fix is important. -->
19+
20+
## Expected behaviour
21+
22+
<!-- What is the behaviour you expect? -->
23+
24+
## Actual behaviour
25+
26+
<!-- What's actually happening? -->
27+
28+
## Steps to reproduce
29+
30+
<!-- Please describe steps to reproduce the issue.
31+
If you have a script that does that please include it here within
32+
markdown code markup -->
33+
34+
## Your environment
35+
36+
<!-- Describe the environment you have that lead to your issue.
37+
This includes aiohttp version, OS, proxy server and other bits that
38+
are related to your case.
39+
40+
IMPORTANT: aiohttp is both server framework and client library.
41+
For getting rid of confusing please put 'server', 'client' or 'both'
42+
word here.
43+
-->
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: ✨ Feature request
3+
about: Suggest an idea to implement
4+
labels: enhancement
5+
---
6+
7+
## User Story
8+
9+
<!-- A clear and concise description of how the feature works and looks like from the user's perspective.
10+
11+
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. -->
12+
13+
## Example
14+
15+
<!-- Any file/screenshot/photomontage/video/website is provided for a better understanding of the request -->
16+
17+
18+
## Definition of Done
19+
<!--
20+
A clear and concise description of what the feature requires.
21+
22+
1. Play button turns into stop button when pipeline is running
23+
2. Stop button turns into play button when pipeline is finished
24+
3. Stop button turns into play button when pipeline is successfully stopped
25+
4. Logger displays messages everytime the play/stop button is pressed
26+
5. Progress bars are set to 0 when stopping pipeline
27+
6. Stop button has a Python interface -->

.github/dockerhub_login.bash

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
3+
set -euo pipefail
4+
IFS=$'\n\t'
5+
6+
# check needed variables are defined
7+
if [ ! -v DOCKER_USERNAME ] ||\
8+
[ ! -v DOCKER_PASSWORD ] ||\
9+
[ ! -v DOCKER_REGISTRY ]; then
10+
echo "## ERROR: Please define the environs (DOCKER_USERNAME, DOCKER_PASSWORD, DOCKER_REGISTRY) in your CI settings!"
11+
exit 1
12+
fi
13+
14+
# check script needed variables
15+
if [ ! -v OWNER ]; then
16+
echo "## ERROR: incorrect usage of CI. OWNER (e.g. dockerhub organization like itisfoundation or user private name) not defined!"
17+
exit 1
18+
fi
19+
20+
# only upstream is allowed to push to itisfoundation repo
21+
if [ "${OWNER,,}" != "itisfoundation" ] &&\
22+
{ [ ! -v DOCKER_REGISTRY ] || [ -z "${DOCKER_REGISTRY}" ] || [ "$DOCKER_REGISTRY" = "itisfoundation" ]; }; then
23+
echo "## ERROR: it is not allowed to push to the main dockerhub repository from a fork!"
24+
echo "## Please adapt your CI-defined environs (DOCKER_USERNAME, DOCKER_PASSWORD, DOCKER_REGISTRY)"
25+
exit 1
26+
fi
27+
28+
# these variable must be available securely from the CI
29+
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
30+
31+
echo "logged into dockerhub successfully, ready to push"
32+
exit 0

.github/show_system_versions.bash

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
3+
set -euo pipefail
4+
IFS=$'\n\t'
5+
6+
echo "------------------------------ environs -----------------------------------"
7+
env
8+
9+
echo "------------------------------ uname -----------------------------------"
10+
uname -a
11+
lsb_release -a
12+
13+
echo "------------------------------ python -----------------------------------"
14+
if command -v python; then
15+
python --version
16+
fi
17+
18+
echo "------------------------------ python3 -----------------------------------"
19+
if command -v python3; then
20+
python3 --version
21+
fi
22+
23+
echo "------------------------------ docker -----------------------------------"
24+
if command -v docker; then
25+
docker version
26+
fi
27+
28+
echo "------------------------------ docker-compose -----------------------------------"
29+
if command -v docker-compose; then
30+
docker-compose version
31+
fi

.github/workflows/check-image.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build and check image
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
verify-image-build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout repo content
10+
uses: actions/checkout@v2
11+
- name: ooil version
12+
uses: docker://itisfoundation/ci-service-integration-library:v1.0.4
13+
with:
14+
args: ooil --version
15+
- name: Assemble docker compose spec
16+
uses: docker://itisfoundation/ci-service-integration-library:v1.0.4
17+
with:
18+
args: ooil compose
19+
- name: Build all images if multiple
20+
uses: docker://itisfoundation/ci-service-integration-library:v1.0.4
21+
with:
22+
args: docker compose build

.gitlab/README.md

-8
This file was deleted.

.gitlab/delete-image-from-registry.bash

-20
This file was deleted.

.gitlab/docker-registry-curl.bash

-64
This file was deleted.

.gitlab/gitlab-ci.yml

-66
This file was deleted.

docker-compose.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: '3.7'
21
services:
32
pymorphosonic:
43
build:

0 commit comments

Comments
 (0)