Skip to content
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.

Commit

Permalink
adding auth via env to docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
Waldemar Lammert committed Nov 20, 2019
1 parent e60adc1 commit 9345133
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM gcr.io/distroless/java:11-debug

ENV BK_TOKEN $BK_TOKEN
COPY build/libs/bk_amazon_sync.jar /sync.jar

ENTRYPOINT ["java","-jar","/sync.jar"]
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ Authentication is provided via Bearer-Token and needs to be set as environment v

### Docker
#### Create new version:
```
docker build -t dev089/bk-sync-app:latest -t dev089/bk-sync-app:0.0.X .
```

`./gradlew clean jar`

`docker build -t dev089/bk-sync-app:latest -t dev089/bk-sync-app:0.X.X .`

#### Push to Dockerhub
```
docker push dev089/bk-sync-app:0.0.X
```
`docker login`<br />
`docker push dev089/bk-sync-app:0.X.X`<br />
`docker push dev089/bk-sync-app:latest`

0 comments on commit 9345133

Please sign in to comment.