File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ WORKDIR $workdir/taginfo-tools
45
45
RUN git submodule update --init
46
46
RUN mkdir build && cd build && cmake .. && make
47
47
48
+ RUN apt-get install -y nano vim
48
49
COPY start.sh $workdir/
49
50
WORKDIR $workdir/
50
51
CMD $workdir/start.sh
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- set -x
2
+ # set -x
3
3
4
4
WORKDIR=/apps
5
5
DATA_DIR=$WORKDIR /data
@@ -25,8 +25,9 @@ grep -v '^ *//' $WORKDIR/taginfo/taginfo-config-example.json |
25
25
[[ ! -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
26
26
27
27
# 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"
30
31
31
32
# The follow line is requiered to avoid an issue -> require cannot load such file -- sqlite3
32
33
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() {
54
55
55
56
# Update local DB
56
57
$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 /
59
60
60
61
# Link to download db zip files
61
62
chmod a=r $UPDATE_DIR /download
You can’t perform that action at this time.
0 commit comments