Mercurial > p > roundup > code
comparison scripts/Docker/roundup_start @ 7441:e7df82ae137d
Cleanup docker before 2.3.0b1 release
scripts/Docker/Dockerfile
Document/implement pip_sdist source mode for testing the source
distribution. Change from multiple if's to case statement.
Disable verbose tracing of shells script. Use
--build-arg="VERBOSE=1" to enable set -xv.
scripts/Docker/roundup_start
Report error if demo mode is used with 2.2.0. This catches the
easiest case where build is done using pypi before 2.3.0 final is
released.
Indent demo mode PORT_8080 doc block so it's not lost in a wall of
text.
doc/installation.txt
Document all source --build-args including how to build from pypi
using a version specifier. Break out other uses of --build-arg into
code blocks.
Reference docker compose section rather than referencing
docker-compose.yml.
Clarify docker hub tagging for devel releases.
Minor formatting fixes.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 31 May 2023 19:14:56 -0400 |
| parents | 7b9bddda9d2d |
| children | 0f6b7a70bc43 |
comparison
equal
deleted
inserted
replaced
| 7440:7c2dfa048b58 | 7441:e7df82ae137d |
|---|---|
| 32 if [ -z "$directory" ]; then | 32 if [ -z "$directory" ]; then |
| 33 # $tracker_spec was not in the form of a=b, check to see | 33 # $tracker_spec was not in the form of a=b, check to see |
| 34 # if it's a request to start in demo/shell mode: | 34 # if it's a request to start in demo/shell mode: |
| 35 case "$tracker" in | 35 case "$tracker" in |
| 36 demo) | 36 demo) |
| 37 version=$(roundup-admin -v | grep 2.2.0) | |
| 38 if [ -n "$version" ]; then | |
| 39 printf "\nRoundup version: %s does not support docker demo mode\n" "$version" | |
| 40 printf "Try building with a version newer than 2.2.0.\n" | |
| 41 printf "For example:\n" | |
| 42 printf " docker build --build-arg=\"source=pypi~=2.3.0a1\" ...\n" | |
| 43 exit 3 | |
| 44 fi | |
| 45 | |
| 37 if [ -z "$PORT_8080" ]; then | 46 if [ -z "$PORT_8080" ]; then |
| 38 PORT_8080=8917 | 47 PORT_8080=8917 |
| 39 printf "If docker reports a bind error, you can set the\n" | 48 printf " If docker reports a bind error, you can set the\n" |
| 40 printf "Docker environment variable PORT_8080 to fix it.\n" | 49 printf " Docker environment variable PORT_8080 to\n" |
| 41 printf "Please add -e PORT_8080=port_number. The\n" | 50 printf " fix it.\n\n" |
| 42 printf "port_number must match the first value to -p \n" | 51 printf " Add -e PORT_8080=port_number to the docker run\n" |
| 43 printf "which must be an unused port on your server.\n" | 52 printf " command. The port_number must match the first\n" |
| 53 printf " value to -p which must be an unused port\n" | |
| 54 printf " on your server.\n\n" | |
| 44 fi | 55 fi |
| 45 template=classic | 56 template=classic |
| 46 backend=sqlite | 57 backend=sqlite |
| 47 | 58 |
| 48 shift | 59 shift |
