Skip to content
Permalink
Browse files

Add setup to run on Docker w/ Bitbucket

This is the setup that I got working after the support provided on Gitter: https://gitter.im/fthomas/scala-steward?at=5d77dc5b6e889c4bbdd1d29b
  • Loading branch information...
miguelpuyol committed Sep 11, 2019
1 parent 509c499 commit 0c05b0edb5d02cae1ae740f232d60e75e0652d55
Showing with 32 additions and 0 deletions.
  1. +32 −0 docs/running.md
@@ -71,3 +71,35 @@ run
--vcs-login "gitlab.steward"
```


#### Running on Docker for Bitbucket

* Create a file `repos.md` that will be injected into the container as as volume.
* Create a file `run.sh` with this content:

```
echo "echo $BITBUCKET_PASSWORD" >pass.sh
chmod +x pass.sh
docker run -v $PWD:/opt/scala-steward \
-v ~/.sbt/:/root/.sbt \
-it fthomas/scala-steward:latest \
--disable-sandbox \
--env-var LOG_LEVEL=TRACE \
--do-not-fork \
--workspace "/opt/scala-steward/workspace" \
--repos-file "/opt/scala-steward/repos.md" \
--git-ask-pass "/opt/scala-steward/pass.sh" \
--git-author-email "myemail@company.xyz" \
--vcs-type "bitbucket" \
--vcs-api-host "https://api.bitbucket.org/2.0" \
--vcs-login "$BITBUCKET_USERNAME"
```

* Run it from a CI tool or manually using with this command:

`BITBUCKET_USERNAME=<myuser> BITBUCKET_PASSWORD=<mypass> ./run.sh`

0 comments on commit 0c05b0e

Please sign in to comment.
You can’t perform that action at this time.