mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
chore: Deploy internally accessible godoc container (#1415)
This commit is contained in:
3
scripts/internal-docs/README.md
Normal file
3
scripts/internal-docs/README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Configuration for automatically building and hosting an internal godoc site.
|
||||||
|
This will become obsolete once we make the repo public and can use
|
||||||
|
https://pkg.go.dev/.
|
8
scripts/internal-docs/cloudbuild.yaml
Normal file
8
scripts/internal-docs/cloudbuild.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
steps:
|
||||||
|
- name: gcr.io/cloud-builders/docker
|
||||||
|
args: ['build', '-t', 'gcr.io/coder-devrel/internal-docs', '-f', 'scripts/internal-docs/docker/Dockerfile', '.']
|
||||||
|
- name: gcr.io/cloud-builders/docker
|
||||||
|
args: ['push', 'gcr.io/coder-devrel/internal-docs']
|
||||||
|
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
|
||||||
|
entrypoint: gcloud
|
||||||
|
args: ['run', 'deploy', 'internal-docs', '--image', 'gcr.io/coder-devrel/internal-docs', '--region', 'us-central1']
|
9
scripts/internal-docs/docker/Dockerfile
Normal file
9
scripts/internal-docs/docker/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM golang:1.18-alpine
|
||||||
|
|
||||||
|
RUN go install github.com/dwahler/go-tools/cmd/godoc@v0.1.1
|
||||||
|
|
||||||
|
WORKDIR /go/src/github.com/coder/coder
|
||||||
|
ADD . .
|
||||||
|
|
||||||
|
EXPOSE 6060
|
||||||
|
CMD godoc -http :6060
|
Reference in New Issue
Block a user