Skip to content

Commit deb49ad

Browse files
dwahlerkylecarbs
authored andcommitted
chore: Deploy internally accessible godoc container (#1415)
1 parent e901c41 commit deb49ad

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

scripts/internal-docs/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Configuration for automatically building and hosting an internal godoc site.
2+
This will become obsolete once we make the repo public and can use
3+
https://pkg.go.dev/.

scripts/internal-docs/cloudbuild.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
steps:
2+
- name: gcr.io/cloud-builders/docker
3+
args: ['build', '-t', 'gcr.io/coder-devrel/internal-docs', '-f', 'scripts/internal-docs/docker/Dockerfile', '.']
4+
- name: gcr.io/cloud-builders/docker
5+
args: ['push', 'gcr.io/coder-devrel/internal-docs']
6+
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
7+
entrypoint: gcloud
8+
args: ['run', 'deploy', 'internal-docs', '--image', 'gcr.io/coder-devrel/internal-docs', '--region', 'us-central1']
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM golang:1.18-alpine
2+
3+
RUN go install github.com/dwahler/go-tools/cmd/godoc@v0.1.1
4+
5+
WORKDIR /go/src/github.com/coder/coder
6+
ADD . .
7+
8+
EXPOSE 6060
9+
CMD godoc -http :6060

0 commit comments

Comments
 (0)