Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lbry
ytsync
Commits
a4e90a66
Commit
a4e90a66
authored
Aug 08, 2019
by
ci
Browse files
run services with the right user permissions
parent
be41f7cc
Pipeline
#394
failed with stage
in 2 minutes and 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
e2e/docker-compose.yml
View file @
a4e90a66
...
...
@@ -7,6 +7,7 @@ services:
## Lbrycrd ##
#############
lbrycrd
:
user
:
$UID
image
:
lbry/lbrycrd:v0.12.4.1
networks
:
-
e2e
...
...
@@ -54,6 +55,7 @@ services:
## Lbrynet ##
#############
lbrynet
:
user
:
$UID
image
:
lbry/lbrynet:v0.38.5
networks
:
-
e2e
...
...
e2e/e2e.sh
View file @
a4e90a66
...
...
@@ -26,6 +26,7 @@ export BLOBS_DIRECTORY="$(pwd)/e2e/blobsfiles"
export
LBRYNET_DIR
=
"
$(
pwd
)
/e2e/persist/.lbrynet/.local/share/lbry/lbrynet/"
export
LBRYNET_WALLETS_DIR
=
"
$(
pwd
)
/e2e/persist/.lbrynet/.local/share/lbry/lbryum"
export
TMP_DIR
=
"/var/tmp"
export
UID
#ensure that docker can be run and managed from the user
USER
=
$(
whoami
)
...
...
@@ -37,11 +38,11 @@ docker-compose rm -f
echo
"
$DOCKER_PASSWORD
"
| docker login
--username
"
$DOCKER_USERNAME
"
--password-stdin
docker-compose pull
if
[[
-d
persist
]]
;
then
rm
-rf
persist
;
fi
rm
-rf
persist
mkdir
persist
mkdir
-p
blobsfiles
mkdir
persist/.lbrynet
ls
-lha
./persist
chmod
u+rwx ./persist/.lbrynet
sudo chown
777
-R
./persist
docker-compose up
-d
printf
'waiting for internal apis'
until
curl
--output
/dev/null
--silent
--head
--fail
http://localhost:15400
;
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment