Changeset View
Changeset View
Standalone View
Standalone View
sysadm/deployment/upgrade-swh-service.rst
Show First 20 Lines • Show All 248 Lines • ▼ Show 20 Lines | |||||
Once the application is registered. We need to build the frozen environment: | Once the application is registered. We need to build the frozen environment: | ||||
We'll first need a "build-deps" container with some dependencies set (due to some | We'll first need a "build-deps" container with some dependencies set (due to some | ||||
limitations in our stack): | limitations in our stack): | ||||
.. code:: | .. code:: | ||||
$ cd swh-apps | $ cd swh-apps/scripts | ||||
$ docker run -ti --rm -v $PWD:/src --user root --name build-deps python:3.9 bash | $ docker build -t build-deps . | ||||
# inside the container 'build-deps' | |||||
root@834faba6202b:/# apt update; apt upgrade -y; apt install -y libcmph-dev | |||||
Out of this container, we are able to generate the frozen requirements for the | Out of this container, we are able to generate the frozen requirements for the | ||||
$APP_NAME (e.g. *loader_{git, svn, cvs, ...}*, *lister*, *indexer* ...): | $APP_NAME (e.g. *loader_{git, svn, cvs, ...}*, *lister*, *indexer* ...): | ||||
.. code:: | .. code:: | ||||
$ cd swh-apps | $ cd swh-apps | ||||
$ docker exec --user 1000 build-deps \ | $ docker run -v $PWD:/src --user 1000 build-deps $APP_NAME | ||||
vsellier: (not sure of the $UID) | |||||
/src/scripts/generate-frozen-requirements $APP_NAME | |||||
You have built your frozen requirements that can be committed. Next, we will | You have built your frozen requirements that can be committed. Next, we will | ||||
:ref:`generate the image updated with that frozen environment <generate-image>`. | :ref:`generate the image updated with that frozen environment <generate-image>`. | ||||
.. _generate-image: | .. _generate-image: | ||||
Generate image | Generate image | ||||
~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~ | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |
(not sure of the $UID)