Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java8/gradle support for proxy settings #106

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion template/java8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ ENV PATH=$PATH:$GRADLE_HOME/bin

RUN mkdir -p /home/app/libs

ENV GRADLE_OPTS="-Dorg.gradle.daemon=false"
ARG gradle_opts
ENV GRADLE_OPTS=$gradle_opts
WORKDIR /home/app

COPY . /home/app/
Expand Down
6 changes: 6 additions & 0 deletions template/java8/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ Tests are supported with junit via files in `./src/test`

External dependencies can be specified in ./build.gradle in the normal way using jcenter, a local JAR or some other remote repository.

### Proxy settings for Gradle

Specify proxy settings using the `gradle_opts` build argument
```bash
$ faas-cli up -b gradle_opts="-Dhttp.proxyHost=my-proxy -Dhttp.proxyPort=3128 -Dhttps.proxyHost=my-proxy -Dhttps.proxyPort=3128"
```
1 change: 1 addition & 0 deletions template/java8/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.daemon=false