Skip to content

Commit b90ecd0

Browse files
committed
Add coder and provisions for container image build.
1 parent 54cf05b commit b90ecd0

File tree

8,005 files changed

+709041
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,005 files changed

+709041
-1
lines changed

LICENSE.txt

Lines changed: 375 additions & 0 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,33 @@
11
.SILENT:
22
.DEFAULT_GOAL := help
33

4+
# Use a single bash shell for each job, and immediately exit on failure
5+
SHELL := zsh
6+
#.SHELLFLAGS := -ceu
7+
#.ONESHELL:
8+
49
#
510
# Makester overrides.
611
#
712
MAKESTER__STANDALONE := true
8-
MAKESTER__INCLUDES := py docs
13+
MAKESTER__INCLUDES := py docs docker microk8s
914
MAKESTER__PROJECT_NAME := offline-coder
15+
MAKESTER__REPO_NAME := loum
1016

1117
include $(HOME)/.makester/makefiles/makester.mk
18+
include makefiles/container-images.mk
19+
20+
CODER_RELEASE := v2.18.0
21+
CODER_PROVIDER_VERSION := 2.0.2
22+
DOCKER_PROVIDER_VERSION := 3.0.2
23+
KUBERNETES_PROVIDER_VERSION := 2.35.0
24+
MAKESTER__BUILD_COMMAND := --rm --no-cache\
25+
--build-arg CODER_RELEASE=$(CODER_RELEASE)\
26+
--build-arg DOCKER_PROVIDER_VERSION=$(DOCKER_PROVIDER_VERSION)\
27+
--build-arg KUBERNETES_PROVIDER_VERSION=$(KUBERNETES_PROVIDER_VERSION)\
28+
--tag $(MAKESTER__IMAGE_TAG_ALIAS)\
29+
--file docker/Dockerfile .
1230

1331
help: makester-help
1432
@echo "(Makefile)\n"
33+
$(MAKE) container-images-help

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
# offline-coder
2+
3+
Customised build of the Coder container image for offline deployments.
4+
5+
> [!NOTE]
6+
> Targeting release [v2.17.3](https://github.com/coder/coder/releases/tag/v2.17.3).
7+
8+
[top](#offline-coder)
9+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "Development environments on your infrastructure",
3+
"image": "codercom/oss-dogfood:latest",
4+
5+
"features": {
6+
// See all possible options here https://github.com/devcontainers/features/tree/main/src/docker-in-docker
7+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
8+
"moby": "false"
9+
}
10+
},
11+
// SYS_PTRACE to enable go debugging
12+
"runArgs": ["--cap-add=SYS_PTRACE"]
13+
}

coder-2.17.3/.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ignore all files and folders
2+
**
3+
4+
# Include flake.nix and flake.lock
5+
!flake.nix
6+
!flake.lock

coder-2.17.3/.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
charset = utf-8
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
indent_style = tab
9+
10+
[*.{yaml,yml,tf,tfvars,nix}]
11+
indent_style = space
12+
indent_size = 2
13+
14+
[coderd/database/dump.sql]
15+
indent_style = space
16+
indent_size = 4

coder-2.17.3/.git-blame-ignore-revs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# If you would like `git blame` to ignore commits from this file, run...
2+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
3+
4+
# chore: format code with semicolons when using prettier (#9555)
5+
988c9af0153561397686c119da9d1336d2433fdd
6+
# chore: use tabs for prettier and biome (#14283)
7+
95a7c0c4f087744a22c2e88dd3c5d30024d5fb02

coder-2.17.3/.gitattributes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated files
2+
coderd/apidoc/docs.go linguist-generated=true
3+
docs/reference/api/*.md linguist-generated=true
4+
docs/reference/cli/*.md linguist-generated=true
5+
coderd/apidoc/swagger.json linguist-generated=true
6+
coderd/database/dump.sql linguist-generated=true
7+
peerbroker/proto/*.go linguist-generated=true
8+
provisionerd/proto/*.go linguist-generated=true
9+
provisionerd/proto/version.go linguist-generated=false
10+
provisionersdk/proto/*.go linguist-generated=true
11+
*.tfplan.json linguist-generated=true
12+
*.tfstate.json linguist-generated=true
13+
*.tfstate.dot linguist-generated=true
14+
*.tfplan.dot linguist-generated=true
15+
site/e2e/provisionerGenerated.ts linguist-generated=true
16+
site/src/api/typesGenerated.ts linguist-generated=true
17+
site/src/pages/SetupPage/countries.tsx linguist-generated=true
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Setup Go"
2+
description: |
3+
Sets up the Go environment for tests, builds, etc.
4+
inputs:
5+
version:
6+
description: "The Go version to use."
7+
default: "1.22.8"
8+
runs:
9+
using: "composite"
10+
steps:
11+
- name: Setup Go
12+
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
13+
with:
14+
go-version: ${{ inputs.version }}
15+
16+
- name: Install gotestsum
17+
shell: bash
18+
run: go install gotest.tools/gotestsum@latest
19+
20+
# It isn't necessary that we ever do this, but it helps
21+
# separate the "setup" from the "run" times.
22+
- name: go mod download
23+
shell: bash
24+
run: go mod download -x
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Setup Node"
2+
description: |
3+
Sets up the node environment for tests, builds, etc.
4+
inputs:
5+
directory:
6+
description: |
7+
The directory to run the setup in.
8+
required: false
9+
default: "site"
10+
runs:
11+
using: "composite"
12+
steps:
13+
- name: Install pnpm
14+
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
15+
16+
- name: Setup Node
17+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
18+
with:
19+
node-version: 20.16.0
20+
# See https://github.com/actions/setup-node#caching-global-packages-data
21+
cache: "pnpm"
22+
cache-dependency-path: ${{ inputs.directory }}/pnpm-lock.yaml
23+
24+
- name: Install root node_modules
25+
shell: bash
26+
run: ./scripts/pnpm_install.sh
27+
28+
- name: Install node_modules
29+
shell: bash
30+
run: ../scripts/pnpm_install.sh
31+
working-directory: ${{ inputs.directory }}

0 commit comments

Comments
 (0)