Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
What Format
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anton Sarukhanov
What Format
Commits
dc6a5736
Commit
dc6a5736
authored
4 years ago
by
Anton Sarukhanov
Browse files
Options
Downloads
Patches
Plain Diff
dockerize
parent
df9b8fa3
No related branches found
No related tags found
No related merge requests found
Pipeline
#165
passed with stages
in 2 minutes and 11 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+29
-8
29 additions, 8 deletions
.gitlab-ci.yml
Dockerfile
+9
-0
9 additions, 0 deletions
Dockerfile
requirements.txt
+1
-0
1 addition, 0 deletions
requirements.txt
with
39 additions
and
8 deletions
.gitlab-ci.yml
+
29
−
8
View file @
dc6a5736
image
:
python:3-buster
before_script
:
-
pip install -r requirements-dev.txt
stages
:
-
test
-
build
analyze
:
stage
:
test
before_script
:
-
pip install -r requirements-dev.txt
script
:
-
bandit whatformat/*.py whatformat/util/*.py
-
flake8 --config=.flake8 whatformat/*.py whatformat/util/*.py
-
mypy whatformat/*.py whatformat/util/*.py
-
pydocstyle whatformat/*.py whatformat/util/*.py
-
pylint whatformat/*.py whatformat/util/*.py
-
bandit whatformat/*.py whatformat/util/*.py
-
flake8 --config=.flake8 whatformat/*.py whatformat/util/*.py
-
mypy whatformat/*.py whatformat/util/*.py
-
pydocstyle whatformat/*.py whatformat/util/*.py
-
pylint whatformat/*.py whatformat/util/*.py
test
:
stage
:
test
before_script
:
-
pip install -r requirements-dev.txt
script
:
-
python3 -m unittest
-
python3 -m unittest
build_image
:
stage
:
build
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
variables
:
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
script
:
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
only
:
-
tags
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
9
−
0
View file @
dc6a5736
FROM
python:3-buster
WORKDIR
/opt/whatformat
COPY
/ /opt/whatformat
RUN
pip
install
-r
/opt/whatformat/requirements.txt
CMD
gunicorn -w 4 -b 0.0.0.0:80 whatformat.app:app
EXPOSE
80/tcp
This diff is collapsed.
Click to expand it.
requirements.txt
+
1
−
0
View file @
dc6a5736
python-dateutil
==2.8.1
Flask
==1.1.1
Flask-Caching
==1.8.0
gunicorn
==20.0.4
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment