Pass UID and GID to keeper-contracts

This commit is contained in:
Javier Cortejoso 2019-01-22 11:36:44 +01:00
parent f7e21e503d
commit 3be9180ef0
No known key found for this signature in database
GPG Key ID: FBEEF3131E39EBCF
2 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,8 @@ services:
KEEPER_RPC_HOST: ${KEEPER_RPC_HOST}
KEEPER_RPC_PORT: ${KEEPER_RPC_PORT}
KEEPER_RPC_URL: ${KEEPER_RPC_URL}
LOCAL_USER_ID: ${LOCAL_USER_ID}
LOCAL_GROUP_ID: ${LOCAL_GROUP_ID}
depends_on:
- keeper-node
volumes:

View File

@ -32,6 +32,10 @@ export KEEPER_RPC_URL="http://"${KEEPER_RPC_HOST}:${KEEPER_RPC_PORT}
# Enable acl-contract validation in Secret-store
export CONFIGURE_ACL="false"
# Export User UID and GID
export LOCAL_USER_ID=$(id -u)
export LOCAL_GROUP_ID=$(id -g)
# colors
COLOR_R="\033[0;31m" # red
COLOR_G="\033[0;32m" # green