Skip to content

Commit

Permalink
add candig user/group and make sure it has db permission
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Apr 18, 2023
1 parent 6fd63ff commit af02da6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL "candigv2"="htsget_app"

USER root

RUN addgroup -S candig && adduser -S candig -G candig

RUN apk update

RUN apk add --no-cache \
Expand Down
1 change: 1 addition & 0 deletions create_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ sqlite3 -bail $db "SELECT * from ncbiRefSeq limit 1"
if [[ $? -eq 1 ]]; then
echo "initializing database..."
sqlite3 $db -init data/files.sql "SELECT * from variantfile"
chown -R candig:candig $(dirname $db)
echo "...done"
fi

Expand Down
3 changes: 3 additions & 0 deletions uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ http = 0.0.0.0:3000
master = true
processes = 4

gid = candig
uid = candig

harakiri = 30

0 comments on commit af02da6

Please sign in to comment.