-
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.
- add dockerfiles for others - add script for auto sync version - support host and port for starting mock server
- Loading branch information
Showing
8 changed files
with
39 additions
and
6 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,5 @@ | ||
FROM python:3.10-alpine | ||
|
||
RUN pip install "py-luke==0.0.2" | ||
|
||
ENTRYPOINT ["luke"] |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM python:3.11-alpine | ||
|
||
RUN pip install py-luke | ||
RUN pip install "py-luke==0.0.2" | ||
|
||
ENTRYPOINT ["luke"] |
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,5 @@ | ||
FROM python:3.7-alpine | ||
|
||
RUN pip install "py-luke==0.0.2" | ||
|
||
ENTRYPOINT ["luke"] |
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,5 @@ | ||
FROM python:3.8-alpine | ||
|
||
RUN pip install "py-luke==0.0.2" | ||
|
||
ENTRYPOINT ["luke"] |
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,5 @@ | ||
FROM python:3.9-alpine | ||
|
||
RUN pip install "py-luke==0.0.2" | ||
|
||
ENTRYPOINT ["luke"] |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from .generators import ObjectFieldGenerator # type: ignore # noqa | ||
from .server import ServerGenerator # type: ignore # noqa | ||
from .openapi import OpenAPISpec # type: ignore # noqa | ||
from .generators import ObjectFieldGenerator # type: ignore # noqa | ||
from .server import ServerGenerator # type: ignore # noqa | ||
from .openapi import OpenAPISpec # type: ignore # noqa | ||
|
||
__version__ = '0.0.1' | ||
__version__ = "0.0.2" |
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
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,13 @@ | ||
#!/bin/sh | ||
|
||
NEW_VERSION=$1 | ||
|
||
for file in $(ls dockerfiles); do | ||
sed -i "" "s/\"\(py-luke\)==\(.*\)\"/\"\1==$NEW_VERSION\"/" "dockerfiles/$file" | ||
done | ||
|
||
echo "Update version $NEW_VERSION for dockerfiles" | ||
|
||
|
||
sed -i "" "s/\(__version__\) = \(.*\)/\1 = \"$NEW_VERSION\"/" "luke/__init__.py" | ||
echo "Updated version $NEW_VERSION for luke/__init__.py" |