Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CNaaS
mist-argus-run
Commits
0474f25e
Commit
0474f25e
authored
Mar 08, 2021
by
Morten Brekkevold
Browse files
Initial commit
parents
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
0474f25e
*~
.gitlab-ci.yml
0 → 100644
View file @
0474f25e
include
:
-
project
:
'
asm/gitlab-ci-helpers'
file
:
'
/gitlab-ci-helpers.yml'
variables
:
KUBE_TEST_ID
:
mist-argus
HTTP_PORT
:
'
8000'
# The port number of the web server.
REPLICAS
:
'
1'
stages
:
-
build
-
test
-
review
-
staging
-
production
build
:
extends
:
.docker-build
stage
:
build
only
:
-
branches
imagescan
:
extends
:
.imagescan
stage
:
test
only
:
-
branches
production
:
extends
:
.production
stage
:
production
variables
:
REPLICAS
:
"
2"
script
:
-
deploy deployment.yaml
staging
:
extends
:
.staging
stage
:
staging
script
:
-
deploy deployment.yaml
review
:
extends
:
.review
stage
:
review
script
:
-
deploy deployment-review.yaml
stop_review
:
extends
:
.stop_review
stage
:
review
Dockerfile
0 → 100644
View file @
0474f25e
FROM
python:3.8
RUN
pip
install
gunicorn
RUN
pip
install
gunicorn git+git@scm.uninett.no:cnaas/mist-argus-run.git@reorganize
CMD
["gunicorn", "--log-level=debug", "--bind", "0.0.0.0:8000", "mist_argus.webhook:app"]
deployment.yaml
0 → 100644
View file @
0474f25e
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
$CI_ENVIRONMENT_SLUG
namespace
:
$KUBE_NAMESPACE
annotations
:
app.gitlab.com/env
:
$CI_ENVIRONMENT_SLUG
app.gitlab.com/app
:
$CI_PROJECT_PATH_SLUG
labels
:
app
:
$CI_ENVIRONMENT_SLUG
pipeline_id
:
"
$CI_PIPELINE_ID"
build_id
:
"
$CI_BUILD_ID"
spec
:
replicas
:
$REPLICAS
selector
:
matchLabels
:
app
:
$CI_ENVIRONMENT_SLUG
template
:
metadata
:
annotations
:
app.gitlab.com/env
:
$CI_ENVIRONMENT_SLUG
app.gitlab.com/app
:
$CI_PROJECT_PATH_SLUG
labels
:
name
:
$CI_ENVIRONMENT_SLUG
app
:
$CI_ENVIRONMENT_SLUG
spec
:
containers
:
-
name
:
app
image
:
$CI_REGISTRY_IMAGE:$CI_REGISTRY_TAG
ports
:
-
containerPort
:
8000
name
:
web
protocol
:
TCP
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment