Skip to content

Commit e437b38

Browse files
author
Rub21
committed
Updates for testing
1 parent 8e351c7 commit e437b38

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

images/taginfo/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ WORKDIR $workdir/taginfo-tools
4545
RUN git submodule update --init
4646
RUN mkdir build && cd build && cmake .. && make
4747

48+
RUN apt-get install -y nano vim
4849
COPY start.sh $workdir/
4950
WORKDIR $workdir/
5051
CMD $workdir/start.sh

images/taginfo/start.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
set -x
2+
# set -x
33

44
WORKDIR=/apps
55
DATA_DIR=$WORKDIR/data
@@ -25,8 +25,9 @@ grep -v '^ *//' $WORKDIR/taginfo/taginfo-config-example.json |
2525
[[ ! -z $INSTANCE_CONTACT+z} ]] && jq --arg a "${INSTANCE_CONTACT}" '.instance.contact = $a' $WORKDIR/taginfo-config.json >tmp.json && mv tmp.json $WORKDIR/taginfo-config.json
2626

2727
# Function to replace the repo to get the projects information
28-
TAGINFO_PROJECT_REPO=${TAGINFO_PROJECT_REPO//\//\\/}
29-
sed -i -e 's/https:\/\/github.com\/taginfo\/taginfo-projects.git/'$TAGINFO_PROJECT_REPO'/g' $WORKDIR/taginfo/sources/projects/update.sh
28+
# TAGINFO_PROJECT_REPO=${TAGINFO_PROJECT_REPO//\//\\/}
29+
# sed -i -e 's/https:\/\/github.com\/taginfo\/taginfo-projects.git/'$TAGINFO_PROJECT_REPO'/g' $WORKDIR/taginfo/sources/projects/update.sh
30+
git clone --quiet --depth=1 $TAGINFO_PROJECT_REPO "$UPDATE_DIR/taginfo-projects"
3031

3132
# The follow line is requiered to avoid an issue -> require cannot load such file -- sqlite3
3233
sed -i -e 's/run_ruby "$SRCDIR\/update_characters.rb"/ruby "$SRCDIR\/update_characters.rb"/g' $WORKDIR/taginfo/sources/db/update.sh
@@ -54,8 +55,8 @@ update() {
5455

5556
# Update local DB
5657
$WORKDIR/taginfo/sources/update_all.sh $UPDATE_DIR
57-
mv $UPDATE_DIR/*/taginfo-*.db $DATA_DIR/
58-
mv $UPDATE_DIR/taginfo-*.db $DATA_DIR/
58+
cp $UPDATE_DIR/*/taginfo-*.db $DATA_DIR/
59+
cp $UPDATE_DIR/taginfo-*.db $DATA_DIR/
5960

6061
# Link to download db zip files
6162
chmod a=r $UPDATE_DIR/download

0 commit comments

Comments
 (0)