chore: Deploy internally accessible godoc container (#1415)

This commit is contained in:
David Wahler 2022-05-12 19:39:18 -05:00 committed by GitHub
parent 333d6a4374
commit 86cba4d3f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View 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/.

View 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']

View 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