Ignore:
Timestamp:
16 Jan 2023, 10:55:34 (2 years ago)
Author:
uli
Message:

Set random cookie secrets when building kofa docker.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/Dockerfile

    r17281 r17283  
    1313# libs needed/useful for Pillow image manipulations
    1414RUN apt-get install -y libjpeg-dev libfreetype6-dev libtiff-dev libopenjp2-7-dev
    15 RUN apt-get install -y sudo git wget
     15# helpers not strictly necessary for running kofa but for setup and development
     16RUN apt-get install -y sudo git wget pwgen xmlstarlet
    1617
    1718# add user `kofa`
     
    4445WORKDIR /home/kofa/waeup.kofa
    4546
     47# set random secrets for cookies
     48RUN xmlstarlet edit -L -P -S -N x="http://namespaces.zope.org/browser" --update "//x:beakerSession/@secret" --value `pwgen -s -1 20` etc/site.zcml.in
     49RUN xmlstarlet edit -L -P -S -N x="http://namespaces.zope.org/browser" --update "//x:beakerSession/@validate_key" --value "val_"`pwgen -s -1 16` etc/site.zcml.in
     50
    4651# pin down `pip` and `setuptools` - just to ensure we have a fixed set of versions
    4752RUN /home/kofa/py27/bin/pip install --upgrade pip==20.3.4
Note: See TracChangeset for help on using the changeset viewer.