-
Notifications
You must be signed in to change notification settings - Fork 35
contribute debian #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
92a2fd3
feat: contribute Debian Dockerfile
fenekku 1a30bca
feat: add dependabot checking
fenekku fe4579b
feat: move to trixie 3.14 + update README
fenekku 0148bde
feat: improve efficiency via cache mounts and size via apt-get instal…
fenekku 9f78c76
feat(debian): run more stable steps first
fenekku 500d959
feat(debian): add curl+certificates and setup uv
fenekku 1e8946e
feat(debian): add pnpm
fenekku 333d7bd
feat(debian): apply various improvements
fenekku 67295ef
feat(debian): consolidate system package installations
fenekku af07118
feat: prefix PATH with uv virtualenv path
fenekku File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,16 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # | ||
| # Copyright (C) 2025 Northwestern University. | ||
| # | ||
| # Documentation: https://docs.github.com/en/code-security/dependabot | ||
|
|
||
| version: 2 | ||
| updates: | ||
|
|
||
| # Enable version updates for GitHub actions | ||
| - package-ecosystem: "github-actions" | ||
| # Exception as per documentation: "/" means to look for any files in `.github/workfows/` | ||
| directory: "/" | ||
| # Check for updates once a week on Monday | ||
| schedule: | ||
| interval: "weekly" | ||
This file contains hidden or 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 hidden or 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,68 @@ | ||
| # | ||
| # Copyright (C) 2025 Northwestern University. | ||
| # | ||
| # Invenio is free software; you can redistribute it and/or modify it | ||
| # under the terms of the MIT License; see LICENSE file for more details. | ||
| # | ||
|
|
||
|
|
||
| ARG BUILD_PLATFORM=linux/amd64 | ||
| ARG PYTHON_VERSION=3.14 | ||
| ARG OS_VERSION=trixie | ||
| ARG NODE_VERSION=22 | ||
|
|
||
| FROM --platform=${BUILD_PLATFORM} python:${PYTHON_VERSION}-${OS_VERSION} | ||
|
|
||
| LABEL org.opencontainers.image.source=https://github.com/inveniosoftware/docker-invenio | ||
|
|
||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| git \ | ||
| gcc \ | ||
| locales | ||
|
|
||
| RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 | ||
|
|
||
| ENV LANG=en_US.UTF-8 | ||
| ENV LANGUAGE=en_US:en | ||
| ENV LC_ALL=en_US.UTF-8 | ||
|
|
||
| RUN apt-get install -y --no-install-recommends \ | ||
|
fenekku marked this conversation as resolved.
Outdated
|
||
| build-essential \ | ||
| fonts-dejavu \ | ||
| imagemagick \ | ||
| libbz2-dev \ | ||
| libcairo2 \ | ||
| libffi-dev \ | ||
| liblzma-dev \ | ||
| libpq-dev \ | ||
| libssl-dev \ | ||
| libsqlite3-dev \ | ||
| libxml2-dev \ | ||
| libxslt1-dev | ||
|
|
||
| RUN pip install --upgrade pip pipenv wheel | ||
|
fenekku marked this conversation as resolved.
Outdated
|
||
|
|
||
| # Install Node.js | ||
| RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \ | ||
| apt-get install -y nodejs npm | ||
|
|
||
| # Create working directory | ||
| ENV WORKING_DIR=/opt/invenio | ||
| ENV INVENIO_INSTANCE_PATH=${WORKING_DIR}/var/instance | ||
|
|
||
| # Create files mountpoints | ||
| RUN mkdir -p \ | ||
| ${WORKING_DIR}/src \ | ||
| ${INVENIO_INSTANCE_PATH}/data \ | ||
| ${INVENIO_INSTANCE_PATH}/archive \ | ||
| ${INVENIO_INSTANCE_PATH}/static | ||
|
|
||
| # Invenio file will be in <WORKING_DIR>/src | ||
| WORKDIR ${WORKING_DIR}/src | ||
|
|
||
| # Set folder permissions | ||
| ENV INVENIO_USER_ID=1000 | ||
| RUN chgrp -R 0 ${WORKING_DIR} && \ | ||
| chmod -R g=u ${WORKING_DIR} && \ | ||
| useradd invenio --uid ${INVENIO_USER_ID} --gid 0 && \ | ||
| chown -R invenio:root ${WORKING_DIR} | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.