Skip to content

Commit 3cae55f

Browse files
Initial commit
Signed-off-by: Alessandro Pomponio <[email protected]>
1 parent 131a592 commit 3cae55f

20 files changed

+768
-0
lines changed

.github/dco.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This enables DCO bot for you, please take a look https://github.com/probot/dco
2+
# for more details.
3+
require:
4+
members: false

.travis.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
language: bash
2+
3+
stages:
4+
- name: "Build test image"
5+
if: tag is blank AND branch != main
6+
- name: "Build production image"
7+
if: branch = main AND type != pull_request AND tag is blank
8+
- name: "Build platform image"
9+
if: tag is present
10+
11+
before_install:
12+
# Install the buildx plugin
13+
- mkdir -vp ~/.docker/cli-plugins/
14+
- curl --silent -L "https://github.com/docker/buildx/releases/download/v0.9.1/buildx-v0.9.1.linux-amd64" > ~/.docker/cli-plugins/docker-buildx
15+
- chmod a+x ~/.docker/cli-plugins/docker-buildx
16+
# Enable experimental features
17+
- export DOCKER_CLI_EXPERIMENTAL=enabled
18+
- export DOCKER_BUILD_KIT=1
19+
# Change buildx output style
20+
- export BUILDKIT_PROGRESS=plain
21+
- set -e
22+
23+
jobs:
24+
include:
25+
- stage: "Build test image"
26+
os: linux
27+
services:
28+
- docker
29+
script:
30+
- ./build_and_push.sh ${DOCKER_REGISTRY}/experimental/st4sd-registry-backend
31+
- stage: "Build production image"
32+
os: linux
33+
services:
34+
- docker
35+
script:
36+
- ./build_and_push.sh ${DOCKER_REGISTRY}/st4sd-registry-backend
37+
- stage: "Build platform image"
38+
os: linux
39+
services:
40+
- docker
41+
script:
42+
- ./build_and_push.sh ${DOCKER_REGISTRY}/st4sd-registry-backend:release-candidate

.whitesource

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"settingsInheritedFrom": "whitesource-config/whitesource-config@master"
3+
}

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the [project team](./MAINTAINERS.md). All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
## Contributing In General
2+
Our project welcomes external contributions. If you have an itch, please feel
3+
free to scratch it.
4+
5+
To contribute code or documentation, please submit a [pull request](https://github.com/st4sd/st4sd-registry-backend/pulls).
6+
7+
A good way to familiarize yourself with the codebase and contribution process is
8+
to look for and tackle low-hanging fruit in the [issue tracker](https://github.com/st4sd/st4sd-registry-backend/issues).
9+
Before embarking on a more ambitious contribution, please quickly [get in touch](MAINTAINERS.md) with us.
10+
11+
**Note: We appreciate your effort, and want to avoid a situation where a contribution
12+
requires extensive rework (by you or by us), sits in backlog for a long time, or
13+
cannot be accepted at all!**
14+
15+
### Proposing new features
16+
17+
If you would like to implement a new feature, please [raise an issue](https://github.com/st4sd/st4sd-registry-backend/issues)
18+
before sending a pull request so the feature can be discussed. This is to avoid
19+
you wasting your valuable time working on a feature that the project developers
20+
are not interested in accepting into the code base.
21+
22+
### Fixing bugs
23+
24+
If you would like to fix a bug, please [raise an issue](https://github.com/st4sd/st4sd-registry-backend/issues) before sending a
25+
pull request so it can be tracked.
26+
27+
### Merge approval
28+
29+
The project maintainers use LGTM (Looks Good To Me) in comments on the code
30+
review to indicate acceptance. A change requires LGTMs from two of the
31+
maintainers of each component affected.
32+
33+
For a list of the maintainers, see the [MAINTAINERS.md](MAINTAINERS.md) page.
34+
35+
## Legal
36+
37+
Each source file must include a license header for the Apache
38+
Software License 2.0. Using the SPDX format is the simplest approach.
39+
e.g.
40+
41+
```
42+
/*
43+
Copyright IBM Inc. All Rights Reserved.
44+
45+
SPDX-License-Identifier: Apache-2.0
46+
*/
47+
```
48+
49+
We have tried to make it as easy as possible to make contributions. This
50+
applies to how we handle the legal aspects of contribution. We use the
51+
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)
52+
uses to manage code contributions.
53+
54+
We simply ask that when submitting a patch for review, the developer
55+
must include a sign-off statement in the commit message.
56+
57+
Here is an example Signed-off-by line, which indicates that the
58+
submitter accepts the DCO:
59+
60+
```
61+
Signed-off-by: John Doe <[email protected]>
62+
```
63+
64+
You can include this automatically when you commit a change to your
65+
local git repository using the following command:
66+
67+
```
68+
git commit -s
69+
```

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM quay.io/st4sd/official-base/st4sd-runtime-core
2+
COPY requirements.txt .
3+
COPY *.py ./
4+
COPY apis ./apis
5+
COPY utils ./utils
6+
RUN pip install -r requirements.txt
7+
EXPOSE 8085
8+
9+
ENTRYPOINT ["python", "app.py"]

0 commit comments

Comments
 (0)