-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use installed version of userver if any
- Loading branch information
Showing
11 changed files
with
52 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ worker-fs-threads: 2 | |
logger-level: debug | ||
|
||
is_testing: true | ||
|
||
server-port: 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
worker-threads: 4 | ||
worker-fs-threads: 2 | ||
logger-level: debug | ||
logger-level: info | ||
|
||
is_testing: false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exit on any error and treat unset variables as errors | ||
set -euo pipefail | ||
|
||
DIR_UID="$(stat -c '%u' .)" | ||
|
||
if ! id -u user > /dev/null 2> /dev/null; then | ||
if [ "$DIR_UID" = "0" ]; then | ||
useradd --create-home --no-user-group user | ||
else | ||
useradd --create-home --no-user-group --uid $DIR_UID user | ||
fi | ||
elif [ "$DIR_UID" != "0" ]; then | ||
usermod -u $DIR_UID user | ||
fi | ||
|
||
HOME=/home/user sudo -E -u user "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### Directory for third party libraries | ||
|
||
`userver` placed into this directory would be used if there's no installed | ||
userver framework. For example: | ||
|
||
``` | ||
cd /data/code | ||
git clone --depth 1 https://github.com/userver-framework/userver.git | ||
git clone --depth 1 https://github.com/userver-framework/service_template.git | ||
ln -s /data/code/userver /data/code/service_template/third_party/userver | ||
``` |
Submodule userver
deleted from
2846de