-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alessandro Pomponio <[email protected]>
- Loading branch information
1 parent
442827e
commit 413d0ce
Showing
114 changed files
with
69,969 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: General Issues | ||
about: For general issues | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Issue**: What is the problem this issue seeks to address. What is required and what is missing and why | ||
|
||
**Solution**: What will be done | ||
|
||
**Acceptance Criteria**: How will you know it is done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This enables DCO bot for you, please take a look https://github.com/probot/dco | ||
# for more details. | ||
require: | ||
members: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"settingsInheritedFrom": "whitesource-config/whitesource-config@master" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, sex characteristics, gender identity and expression, | ||
level of experience, education, socio-economic status, nationality, personal | ||
appearance, race, religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the [project team](./MAINTAINERS.md). All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
|
||
For answers to common questions about this code of conduct, see | ||
https://www.contributor-covenant.org/faq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
## Contributing In General | ||
Our project welcomes external contributions. If you have an itch, please feel | ||
free to scratch it. | ||
|
||
To contribute code or documentation, please submit a [pull request](https://github.com/st4sd/st4sd-runtime-core/pulls). | ||
|
||
A good way to familiarize yourself with the codebase and contribution process is | ||
to look for and tackle low-hanging fruit in the [issue tracker](https://github.com/st4sd/st4sd-runtime-core/issues). | ||
Before embarking on a more ambitious contribution, please quickly [get in touch](MAINTAINERS.md) with us. | ||
|
||
**Note: We appreciate your effort, and want to avoid a situation where a contribution | ||
requires extensive rework (by you or by us), sits in backlog for a long time, or | ||
cannot be accepted at all!** | ||
|
||
### Proposing new features | ||
|
||
If you would like to implement a new feature, please [raise an issue](https://github.com/st4sd/st4sd-runtime-core/issues) | ||
before sending a pull request so the feature can be discussed. This is to avoid | ||
you wasting your valuable time working on a feature that the project developers | ||
are not interested in accepting into the code base. | ||
|
||
### Fixing bugs | ||
|
||
If you would like to fix a bug, please [raise an issue](https://github.com/st4sd/st4sd-runtime-core/issues) before sending a | ||
pull request so it can be tracked. | ||
|
||
### Merge approval | ||
|
||
The project maintainers use LGTM (Looks Good To Me) in comments on the code | ||
review to indicate acceptance. A change requires LGTMs from two of the | ||
maintainers of each component affected. | ||
|
||
For a list of the maintainers, see the [MAINTAINERS.md](MAINTAINERS.md) page. | ||
|
||
## Legal | ||
|
||
Each source file must include a license header for the Apache | ||
Software License 2.0. Using the SPDX format is the simplest approach. | ||
e.g. | ||
|
||
``` | ||
/* | ||
Copyright IBM Inc. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
``` | ||
|
||
We have tried to make it as easy as possible to make contributions. This | ||
applies to how we handle the legal aspects of contribution. We use the | ||
same approach - the [Developer's Certificate of Origin 1.1 (DCO)](https://github.com/hyperledger/fabric/blob/master/docs/source/DCO1.1.txt) - that the Linux® Kernel [community](https://elinux.org/Developer_Certificate_Of_Origin) | ||
uses to manage code contributions. | ||
|
||
We simply ask that when submitting a patch for review, the developer | ||
must include a sign-off statement in the commit message. | ||
|
||
Here is an example Signed-off-by line, which indicates that the | ||
submitter accepts the DCO: | ||
|
||
``` | ||
Signed-off-by: John Doe <[email protected]> | ||
``` | ||
|
||
You can include this automatically when you commit a change to your | ||
local git repository using the following command: | ||
|
||
``` | ||
git commit -s | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Copyright IBM Inc. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
ARG base_image=ubuntu:bionic | ||
|
||
FROM $base_image | ||
# VV: Builder image | ||
RUN apt-get update && \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get install -y \ | ||
python3.7 python3-pip python3-tk git locales curl libffi-dev libssl-dev \ | ||
libpng-dev libjpeg-dev libfreetype6-dev pkg-config libxml2-dev libxslt-dev libpython3.7-dev \ | ||
libzmq3-dev | ||
ENV LANGUAGE=en | ||
ENV LC_ALL en_GB.UTF-8 | ||
ENV LANG en_GB.UTF-8 | ||
|
||
RUN locale-gen ${LC_ALL} | ||
|
||
RUN python3 -m pip install --upgrade pip virtualenv setuptools six tox && \ | ||
python3 -m pip install "pyzmq>=13,<=22.3.0" papermill | ||
RUN mkdir /venvs | ||
|
||
ENV PIP_DEFAULT_TIMEOUT=120 | ||
|
||
COPY ./ st4sd-runtime-core | ||
|
||
ENV VIRTUAL_ENV=/venvs/st4sd-runtime-core | ||
|
||
RUN cd /st4sd-runtime-core && \ | ||
export DEPLOY_VENV=${VIRTUAL_ENV} && \ | ||
export TOX_ENV=py37-deploy && \ | ||
tox -e $TOX_ENV -vv && \ | ||
chmod a+rwx ${VIRTUAL_ENV}/* && \ | ||
chmod a+rwx ${VIRTUAL_ENV}/*/*/* | ||
|
||
RUN PATH=${VIRTUAL_ENV}/bin:${PATH} pip3 install twine | ||
RUN cd /st4sd-runtime-core && \ | ||
export PATH=${VIRTUAL_ENV}/bin:${PATH} && \ | ||
python3 setup.py sdist bdist_wheel | ||
|
||
# VV: Runtime image | ||
FROM $base_image | ||
|
||
ENV LANGUAGE=en | ||
ENV LC_ALL en_GB.UTF-8 | ||
ENV LANG en_GB.UTF-8 | ||
|
||
# VV: Install system-wide pip and python-tk for matplotlib for consistency with moved virtual-env | ||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get install -y --no-install-recommends python3.7 python3-pip python3-tk libffi-dev python-rdkit vim-tiny \ | ||
locales libzmq3-dev && \ | ||
locale-gen ${LC_ALL} && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN echo 'You can find the licenses of GPL packages in this container under \n\ | ||
/usr/share/doc/${PACKAGE_NAME}/copyright \n\ | ||
\n\ | ||
If you would like the source to the GPL packages in this image then \n\ | ||
send a request to this address, specifying the package you want and \n\ | ||
the name and hash of this image: \n\ | ||
\n\ | ||
IBM Research Ireland,\n\ | ||
IBM Technology Campus\n\ | ||
Damastown Industrial Park\n\ | ||
Mulhuddart Co. Dublin D15 HN66\n\ | ||
Ireland\n' >/gpl-licenses | ||
|
||
ENV VIRTUAL_ENV=/venvs/st4sd-runtime-core | ||
COPY --from=0 /venvs/ /venvs/ | ||
COPY --from=0 /st4sd-runtime-core/dist /st4sd-runtime-core/dist | ||
|
||
|
||
# VV: Activate the virtual environment | ||
ENV PIP_DEFAULT_TIMEOUT=120 | ||
ENV PATH=${VIRTUAL_ENV}/bin:${PATH} | ||
|
||
RUN elaunch.py -h && \ | ||
elaunch.py --version | ||
|
||
CMD elaunch.py -h |
Oops, something went wrong.