Skip to content

Commit bcc2f5a

Browse files
committed
Dockerfile added
1 parent aaa11c2 commit bcc2f5a

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.bumpversion.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[bumpversion]
2+
current_version = 0.2.7
3+
commit = True
4+
tag = True
5+
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
6+
serialize =
7+
{major}.{minor}.{patch}
8+
9+
[bumpversion:file:openapi_spec_validator/__init__.py]
10+
11+
[bumpversion:file:Dockerfile]

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM python:3.7-alpine
2+
3+
ARG OPENAPI_SPEC_VALIDATOR_VERSION=0.2.7
4+
5+
RUN pip install --no-cache-dir openapi-spec-validator==${OPENAPI_SPEC_VALIDATOR_VERSION}
6+
7+
ENTRYPOINT ["openapi-spec-validator"]

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ PROJECT_NAME=openapi-spec-validator
44
PACKAGE_NAME=$(subst -,_,${PROJECT_NAME})
55
VERSION=`git describe --abbrev=0`
66

7+
DOCKER_REGISTRY=p1c2u
8+
79
params:
810
@echo "Project name: ${PROJECT_NAME}"
911
@echo "Package name: ${PACKAGE_NAME}"
@@ -30,3 +32,12 @@ reports-cleanup:
3032
test-cleanup: test-cache-cleanup reports-cleanup
3133

3234
cleanup: dist-cleanup test-cleanup
35+
36+
docker-build:
37+
@docker build --no-cache --build-arg OPENAPI_SPEC_VALIDATOR_VERSION=${VERSION} -t ${PROJECT_NAME}:${VERSION} .
38+
39+
docker-tag:
40+
@docker tag ${PROJECT_NAME}:${VERSION} ${DOCKER_REGISTRY}/${PROJECT_NAME}:${VERSION}
41+
42+
docker-push:
43+
@docker push ${DOCKER_REGISTRY}/${PROJECT_NAME}:${VERSION}

0 commit comments

Comments
 (0)