-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cloud run support and tracing (#457)
* cloud run changes * deploy * heroku supported runtime * add args to context manager * testfix * dockerfile * fix dockerfile and documentation * rm gunicorn from dev dockerfile * improve dev dockerfile and makefile * remove /everything call * fix e2e tests * tmp git ignore * Revert "tmp git ignore" This reverts commit f8a15e2. * speed up docker dev build * fix makefile installation of dependencies * disable explorer until we manage to paginate the /everything call
- Loading branch information
1 parent
270df2a
commit a476828
Showing
25 changed files
with
494 additions
and
155 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
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,14 @@ | ||
FROM node:lts as build | ||
|
||
WORKDIR /code | ||
COPY . /code | ||
RUN yarn install && yarn build | ||
|
||
FROM python:3.11.0 as run | ||
|
||
COPY --from=build /code /code | ||
WORKDIR /code | ||
RUN pip install -r requirements.txt gunicorn | ||
|
||
ENTRYPOINT gunicorn | ||
CMD ["--timeout","800","--workers","8","cre:app"] |
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,22 +1,17 @@ | ||
FROM python:alpine | ||
FROM node:lts as build | ||
|
||
# For pete's sake do not put this on the internet | ||
|
||
RUN apk add --no-cache --update --upgrade linux-headers py3-numpy &&\ | ||
apk add --no-cache --virtual .build-deps gcc g++ zlib-dev make python3-dev py3-numpy-dev jpeg-dev | ||
|
||
RUN addgroup -S credev && adduser -S credev -G credev | ||
|
||
COPY --chown=credev:credev . /home/credev/cre_sync | ||
USER credev | ||
|
||
WORKDIR /home/credev/cre_sync | ||
|
||
RUN export PATH=$PATH:/home/credev/.local/bin &&\ | ||
pip install -r requirements.txt &&\ | ||
chmod +x docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["/home/credev/cre_sync/docker-entrypoint.sh"] | ||
WORKDIR /code | ||
COPY . /code | ||
RUN make install-deps-typescript && make install-typescript | ||
|
||
FROM python:3.11.0 as run | ||
|
||
COPY --from=build /code /code | ||
WORKDIR /code | ||
RUN apt update &&\ | ||
apt install -y python3-numpy &&\ | ||
pip install virtualenv &&\ | ||
make install-deps-python &&\ | ||
make install-python | ||
|
||
ENTRYPOINT make dev-flask |
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
Oops, something went wrong.