Skip to content

Commit

Permalink
deployment: use new poetry
Browse files Browse the repository at this point in the history
* Uses poetry >= 1.1.
* Uses latest invenio packages.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
  • Loading branch information
rerowep committed Feb 24, 2022
1 parent 9eb5f15 commit 7847c1b
Show file tree
Hide file tree
Showing 9 changed files with 1,057 additions and 1,437 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/continuous-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ jobs:

- name: Install Poetry
uses: snok/install-poetry@v1.1.1
with:
version: 1.0.10

- name: Use Cache
uses: actions/cache@v2
Expand All @@ -51,16 +49,16 @@ jobs:
- name: Bootstrap
if: ${{ matrix.dependencies == 'development' }}
run: |
poetry run bootstrap --ci
poetry run ./scripts/bootstrap --ci
pip install --upgrade coveralls
- name: Bootstrap deploy
if: ${{ matrix.dependencies == 'deploy' }}
run: |
poetry run bootstrap --ci --deploy E2E=yes
poetry run ./scripts/bootstrap --ci --deploy E2E=yes
- name: Run Test
run: poetry run run-tests
run: poetry run ./run-tests.sh

- name: Coveralls
if: ${{ matrix.dependencies == 'development' }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ RUN chown -R invenio:invenio ${WORKING_DIR}
USER 1000

ENV INVENIO_COLLECT_STORAGE='flask_collect.storage.file'
RUN poetry run bootstrap --deploy
RUN poetry run ./scripts/bootstrap --deploy
2 changes: 1 addition & 1 deletion Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ LABEL description="MEF (Multilingual Entity File) server with records for person
# require debian packages
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install --no-install-recommends -y git vim-tiny curl gcc gnupg libc6-dev && rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade setuptools wheel pip "poetry<1.1.0"
RUN pip install --upgrade setuptools wheel pip poetry

# # uwsgi uwsgitop uwsgi-tools

Expand Down
2 changes: 1 addition & 1 deletion INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ build all static assets):

.. code-block:: console
$ poetry run bootstrap
$ poetry run poe bootstrap
Next, create database tables, search indexes and message queues:

Expand Down
Loading

0 comments on commit 7847c1b

Please # to comment.