Skip to content

Commit c46b049

Browse files
committed
More fixes from Valery
- Legacy-Id: 19425
1 parent e0a7391 commit c46b049

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

docker/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ trap 'echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)";
6161

6262
# Default values
6363
IMAGE=ietf/datatracker-environment
64-
TAG=$(basename "$(svn info "$parent" | grep ^URL | awk '{print $2}') | tr -d '\r')")
64+
TAG=$(basename "$(svn info "$parent" | grep ^URL | awk '{print $2}' | tr -d '\r')")
6565
LOCAL=1
6666

6767
# Option parsing

docker/docker-init.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ if ! service mariadb status; then
2222
exit 1
2323
fi
2424

25+
if [ ! -f /root/src/ietf/settings_local.py ]; then
26+
echo "Setting up a default settings_local.py ..."
27+
cp /root/src/docker/settings_local.py /root/src/ietf/settings_local.py
28+
fi
29+
2530
if [ ! -d $MYSQLDIR/ietf_utf8 ]; then
2631
echo "WARNING: IETF database seems to be missing; populating it from dump."
2732
mysqladmin -u root --default-character-set=utf8 create ietf_utf8
@@ -67,11 +72,6 @@ for sub in \
6772
fi
6873
done
6974

70-
if [ ! -f /root/src/ietf/settings_local.py ]; then
71-
echo "Setting up a default settings_local.py ..."
72-
cp /root/src/docker/settings_local.py /root/src/ietf/settings_local.py
73-
fi
74-
7575
python -m smtpd -n -c DebuggingServer localhost:2025 &
7676
echo
7777

docker/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ while true ; do
8686
done
8787

8888
if [ -z "$TAG" ]; then
89-
TAG=$(basename "$(svn info "$parent" | grep ^URL | awk '{print $2}')")
89+
TAG=$(basename "$(svn info "$parent" | grep ^URL | awk '{print $2}' | tr -d '\r')")
9090
fi
9191

9292
echo "Starting a docker container for '$REPO:$TAG'."

0 commit comments

Comments
 (0)