-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
48 additions
and
9 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 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,41 @@ | ||
# Using the docker image | ||
|
||
### Running the published image | ||
|
||
``` | ||
docker run -it --rm -v $(pwd):/app:ro -v ~/.backport:/root/.backport sqren/backport "$@" | ||
``` | ||
|
||
### Running from source | ||
|
||
``` | ||
yarn docker-run | ||
``` | ||
|
||
# Development | ||
|
||
### Build docker image | ||
|
||
``` | ||
docker build -t sqren/backport . | ||
``` | ||
|
||
### Test image locally before publishing: | ||
|
||
``` | ||
docker run -it --rm -v $(pwd):/app:ro -v ~/.backport:/root/.backport sqren/backport "$@" | ||
``` | ||
|
||
### Publish to Docker hub | ||
|
||
``` | ||
docker push sqren/backport | ||
``` | ||
|
||
## Authenticate with docker hub | ||
|
||
``` | ||
docker login | ||
``` | ||
|
||
A personal access token can be created [here](https://hub.docker.com/settings/security) |
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 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,4 @@ | ||
# This file is only needed to forward arguments to backport inside docker | ||
|
||
#!/bin/bash | ||
backport "$@" |
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