Skip to content

Commit

Permalink
Merge pull request #55 from snyk/fix/custom-env-vars
Browse files Browse the repository at this point in the history
fix: env vars that depend on custom ones are also custom
  • Loading branch information
adrukh authored Jun 27, 2017
2 parents 0b17135 + 6ebeef2 commit ad7727c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
5 changes: 3 additions & 2 deletions dockerfiles/bitbucket-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ ENV BITBUCKET_PASSWORD <password>
# Your Bitbucket Server host, excluding scheme
ENV BITBUCKET your.bitbucket.server.hostname

# The Bitbucket server API URL
ENV BITBUCKET_API $BITBUCKET/rest/api/1.0

# The port used by the broker client to accept internal connections
# Default value is 7341
ENV PORT 7341
Expand All @@ -41,8 +44,6 @@ ENV PORT 7341
# Generic Broker Client configuration #
#######################################

# The Bitbucket server API URL
ENV BITBUCKET_API $BITBUCKET/rest/api/1.0

# The URL of the Snyk broker server
ENV BROKER_SERVER_URL https://broker.snyk.io
Expand Down
18 changes: 9 additions & 9 deletions dockerfiles/github-enterprise/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,21 @@ RUN broker init github
# or provide as runtime args `-e` #
######################################

# The host where your GitHub Enterprise is running, excluding scheme.
ENV GITHUB=your.ghe.domain.com

# Your unique broker identifier, copied from snyk.io org settings page
# ENV BROKER_TOKEN <broker-token>

# Your personal access token to your github.com / GHE account
# ENV GITHUB_TOKEN <github-token>

# The host where your GitHub Enterprise is running, excluding scheme.
ENV GITHUB=your.ghe.domain.com

# The URL that the github API should be accessed at.
ENV GITHUB_API $GITHUB/api/v3

# The URL where raw file content is accessed, excluding scheme.
ENV GITHUB_RAW $GITHUB/raw

# The port used by the broker client to accept webhooks
# Default value is 7341
ENV PORT 7341
Expand All @@ -43,12 +49,6 @@ ENV PORT 7341
# Generic Broker Client configuration #
#######################################

# The URL that the github API should be accessed at.
ENV GITHUB_API $GITHUB/api/v3

# The URL where raw file content is accessed, excluding scheme.
ENV GITHUB_RAW $GITHUB/raw

# The URL of the Snyk broker server
ENV BROKER_SERVER_URL https://broker.snyk.io

Expand Down

0 comments on commit ad7727c

Please sign in to comment.