This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixed default port not being given in dockerfile for games * Changed simulation runner to make use of asyncio * changed parallel_map to async_map * Waiting for workers pt. 1 * aimmo now works in kubernetes mode again * aimmo now works in kubernetes mode again (tests fails though) * Merge remote-tracking branch 'origin/fix_kubernetes_mode' into fix_kubernetes_mode * fixed broken tests * pep8 * removed temporary logging * moved get loop into setUp for tests * bump version++ * make runner last build stage * remove broken coverage tool * removed broken coverage tool++ * change docker build target in tester * docker now uses buildkit (requires docker 18.09) * create build hook for docker cloud * fix syntax error * add image tag to build hook * fix image name on build hook * add build hook for worker and game-creator * remove pwd from build hooks * remove broken coverage tool from travis.yml * change env variable to be str not int * force setup.py version * Revert "force setup.py version" This reverts commit 306bee8. * review changes * add dockerbuildkit env variable to travis * change the way docker is installed for travis test * removed docker addon from travis.yml (installing older version) * changed logic in docker scripts
- Loading branch information
1 parent
45a966e
commit 54e2596
Showing
28 changed files
with
205 additions
and
350 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
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 |
---|---|---|
|
@@ -3,26 +3,16 @@ MAINTAINER [email protected] | |
# RUN apk add --no-cache gcc musl-dev python-dev libffi-dev openssl-dev | ||
RUN pip install pipenv | ||
COPY ["Pipfile", "Pipfile.lock", "setup.py", "./"] | ||
RUN pipenv install coverage | ||
RUN pipenv install --system --deploy | ||
|
||
FROM python:3.6-alpine as base | ||
COPY --from=builder /usr/local/lib/python3.6/site-packages /usr/local/lib/python3.6/site-packages | ||
COPY . . | ||
|
||
|
||
FROM base as runner | ||
ENV WORKER_MANAGER=kubernetes | ||
CMD ["python", "./service.py", "0.0.0.0"] | ||
|
||
|
||
FROM base as tester | ||
ENV WORKER_MANAGER=kubernetes | ||
CMD ["python", "setup.py", "test"] | ||
|
||
FROM base as coverage_tester | ||
ENV WORKER_MANAGER=kubernetes | ||
ENV WITH_COVERAGE='True' | ||
RUN apk add bash | ||
COPY --from=builder /usr/local/bin/coverage /usr/local/bin/coverage | ||
CMD python setup.py test |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,2 @@ | ||
#!/bin/bash | ||
docker build --target runner -t $IMAGE_NAME . |
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ MAINTAINER [email protected] | |
|
||
RUN pip install pipenv | ||
COPY ["Pipfile", "Pipfile.lock", "setup.py", "./"] | ||
RUN pipenv install coverage | ||
RUN pipenv install --system --deploy | ||
|
||
FROM python:3.6-alpine as base | ||
|
@@ -13,16 +12,8 @@ COPY . . | |
FROM base as runner | ||
ENV WORKER_MANAGER=kubernetes | ||
ENV FLASK_ENV='development' | ||
RUN apk add --no-cache bash | ||
CMD python ./service.py 0.0.0.0 $PORT $DATA_URL | ||
|
||
FROM base as tester | ||
ENV WORKER_MANAGER=kubernetes | ||
CMD python setup.py test | ||
|
||
FROM base as coverage_tester | ||
ENV WORKER_MANAGER=kubernetes | ||
ENV WITH_COVERAGE='True' | ||
RUN apk add bash | ||
COPY --from=builder /usr/local/bin/coverage /usr/local/bin/coverage | ||
CMD python setup.py test |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,2 @@ | ||
#!/bin/bash | ||
docker build --target runner -t $IMAGE_NAME . |
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 |
---|---|---|
@@ -1,27 +1,17 @@ | ||
FROM python:3.6 as builder | ||
MAINTAINER [email protected] | ||
|
||
RUN pip install pipenv | ||
COPY ["Pipfile", "Pipfile.lock", "setup.py", "./"] | ||
RUN pipenv install coverage | ||
RUN pipenv install --system --deploy | ||
|
||
FROM python:3.6-alpine as base | ||
COPY --from=builder /usr/local/lib/python3.6/site-packages /usr/local/lib/python3.6/site-packages | ||
COPY . . | ||
|
||
FROM base as runner | ||
RUN apk add --no-cache bash | ||
ENV WORKER_MANAGER=kubernetes | ||
CMD python ./service.py 0.0.0.0 | ||
|
||
FROM base as tester | ||
ENV WORKER_MANAGER=kubernetes | ||
CMD python setup.py test | ||
|
||
FROM base as coverage_tester | ||
FROM base as runner | ||
ENV WORKER_MANAGER=kubernetes | ||
ENV WITH_COVERAGE='True' | ||
RUN apk add bash | ||
COPY --from=builder /usr/local/bin/coverage /usr/local/bin/coverage | ||
CMD python setup.py test | ||
CMD python ./service.py 0.0.0.0 5000 |
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
Oops, something went wrong.