Skip to content

Commit

Permalink
chore(worker): Cleanup unused Node.js configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nellh committed Nov 11, 2024
1 parent 10031be commit 4f2dcaf
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9,506 deletions.
1 change: 0 additions & 1 deletion services/datalad/.yarnrc.yml

This file was deleted.

5 changes: 1 addition & 4 deletions services/datalad/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ COPY datalad_service /srv/datalad_service
COPY get_docker_scale.py /get_docker_scale.py
COPY ./ssh_config /root/.ssh/config
COPY tests /srv/tests
# Install node and Deno the Dockery-but-hacky-way
COPY --from=node:20.12.2-bullseye /usr/local/bin/node /usr/local/bin/node
# Install Deno the Dockery-but-hacky-way
COPY --from=deno /deno /usr/local/bin/deno

RUN apt-get update \
&& node --version \
&& apt-get install -y curl openssh-client \
&& ssh-keyscan github.com >> /root/.ssh/known_hosts \
&& mkdir /yarn \
Expand All @@ -36,6 +34,5 @@ RUN apt-get update \

HEALTHCHECK --interval=5s --timeout=30s --start-period=10s --retries=10 CMD [ "curl", "-f", "http://localhost/heartbeat" ]

ENV NODE_OPTIONS="--max-old-space-size=8192"
ENV LOCPATH=""
CMD ["uvicorn", "--host", "0.0.0.0", "--port", "80", "--factory", "datalad_service.app:create_app", "--workers", "8", "--timeout-keep-alive", "30"]
5 changes: 0 additions & 5 deletions services/datalad/package.json

This file was deleted.

Loading

0 comments on commit 4f2dcaf

Please sign in to comment.