Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Dockerfile
docker-compose.yml
docker-compose.yml
node_modules
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ terraform.tfstate*
.terraform*
tofu/kube.config
ansible/collections/*
quarry/web/static/templates/compiled.js
15 changes: 14 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,22 @@ RUN pip install --break-system-packages --upgrade pip==24.0 wheel && \
pip install --break-system-packages -r requirements.txt

# Copy app code
USER quarry
COPY . /app

# Build JS assets
RUN apt-get update && \
apt-get install -y nodejs npm && \
NODE_ENV=production npm ci && \
npm run build && \
# Once the build is run, dependencies are no longer needed, delete them
# to keep image small
rm -rf node_modules && \
apt-get remove -y nodejs npm && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*

USER quarry

# Expose port for web server
EXPOSE 5000

Expand Down
4 changes: 2 additions & 2 deletions helm-quarry/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
web:
repository: 'quay.io/wikimedia-quarry/quarry'
tag: pr-94 # web tag managed by github actions
tag: pr-91 # web tag managed by github actions
resources:
requests:
memory: "300Mi"
Expand All @@ -11,7 +11,7 @@ web:

worker:
repository: 'quay.io/wikimedia-quarry/quarry'
tag: pr-94 # worker tag managed by github actions
tag: pr-91 # worker tag managed by github actions
resources:
requests:
memory: "400Mi"
Expand Down
Loading