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

Extract goproxy config to examples #1649

Merged
merged 1 commit into from
Oct 22, 2020
Merged
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
13 changes: 13 additions & 0 deletions modules/end-user-guide/examples/che-go-configure-goproxy.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[source,yaml]
----
components:
- mountSources: true
type: dockerimage
alias: go-cli
image: 'quay.io/eclipse/che-golang-1.12:7.7.0'
...
- value: /tmp/.cache
name: GOCACHE
- value: 'http://your.athens.host'
name: GOPROXY
----
17 changes: 17 additions & 0 deletions modules/end-user-guide/examples/che-go-use-self-signed-cert.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[source,yaml]
----
components:
- mountSources: true
type: dockerimage
alias: go-cli
image: 'quay.io/eclipse/che-golang-1.12:7.7.0'
...
- value: /tmp/.cache
name: GOCACHE
- value: 'http://your.athens.host'
name: GOPROXY
- value: 'on'
name: GO111MODULE
- value: '/projects/tls/rootCA.crt'
name: SSL_CERT_FILE
----
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,4 @@ Athens is a Go module datastore and proxy with many configuration options. It ca

* To work with Athens, configure the `GOPROXY` environment variable in the devfile of your CLI container:
+
[source,yaml]
----
components:
- mountSources: true
type: dockerimage
alias: go-cli
image: 'quay.io/eclipse/che-golang-1.12:7.7.0'
...
- value: /tmp/.cache
name: GOCACHE
- value: 'http://your.athens.host'
name: GOPROXY
----
include::example${project-context}-go-configure-goproxy.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,4 @@ Go uses certificates from a file defined in the `SSL_CERT_FILE` environment vari

. Add the appropriate environment variables to your devfile:
+
[source,yaml]
----
components:
- mountSources: true
type: dockerimage
alias: go-cli
image: 'quay.io/eclipse/che-golang-1.12:7.7.0'
...
- value: /tmp/.cache
name: GOCACHE
- value: 'http://your.athens.host'
name: GOPROXY
- value: 'on'
name: GO111MODULE
- value: '/projects/tls/rootCA.crt'
name: SSL_CERT_FILE
----
include::example${project-context}-go-use-self-signed-cert.adoc[]