Skip to content

Commit aed80be

Browse files
committed
Rename from clace to openrun
1 parent 8114976 commit aed80be

File tree

144 files changed

+1032
-1033
lines changed

Some content is hidden

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

144 files changed

+1032
-1033
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ jobs:
3939
CL_GITHUB_SECRET: ${{ secrets.CL_GITHUB_SECRET }}
4040
TEST_PAT: ${{ secrets.TEST_PAT }}
4141
run: |
42-
export CL_HOME=`pwd`
42+
export OPENRUN_HOME=`pwd`
4343
export GOAMD64=v3
4444
rm -rf internal/server/appspecs && cd internal/server
45-
git clone --single-branch --depth 1 https://github.com/claceio/appspecs.git
45+
git clone --single-branch --depth 1 https://github.com/openrundev/appspecs.git
4646
rm -rf appspecs/.git
47-
cd $CL_HOME
47+
cd $OPENRUN_HOME
4848
4949
go install github.com/commander-cli/commander/v2/cmd/commander@latest
5050
export CL_CONTAINER_COMMANDS=docker # using self-hosted runner, use Docker for container tests

.github/workflows/test_pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535
CL_GITHUB_SECRET: ${{ secrets.CL_GITHUB_SECRET }}
3636
TEST_PAT: ${{ secrets.TEST_PAT }}
3737
run: |
38-
export CL_HOME=`pwd`
38+
export OPENRUN_HOME=`pwd`
3939
export GOAMD64=v3
4040
rm -rf internal/server/appspecs && cd internal/server
41-
git clone --single-branch --depth 1 https://github.com/claceio/appspecs.git
41+
git clone --single-branch --depth 1 https://github.com/openrundev/appspecs.git
4242
rm -rf appspecs/.git
43-
cd $CL_HOME
43+
cd $OPENRUN_HOME
4444
4545
go install github.com/commander-cli/commander/v2/cmd/commander@latest
4646
export CL_CONTAINER_COMMANDS=disable # pull requests uses github runner, docker/podman does not run

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
dist/
22
.vscode
3-
/clace
3+
/openrun
44
metadata/
5-
clace.toml
5+
openrun.toml
66
*.swp
77
.sw*
88
logs/

.goreleaser.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
project_name: clace
1+
project_name: openrun
22

33
release:
44
github:
5-
owner: claceio
6-
name: clace
5+
owner: openrundev
6+
name: openrun
77
name_template: "Release {{.Tag}}"
88
draft: false
99
prerelease: "auto"
@@ -12,21 +12,21 @@ before:
1212
hooks:
1313
- go mod download
1414
- go mod tidy
15-
- git clone --single-branch --depth 1 https://github.com/claceio/appspecs.git
15+
- git clone --single-branch --depth 1 https://github.com/openrundev/appspecs.git
1616
- rm -rf appspecs/.git
1717
- rm -rf internal/server/appspecs
1818
- mv appspecs internal/server
19-
- git clone --single-branch --depth 1 https://github.com/claceio/apps.git
19+
- git clone --single-branch --depth 1 https://github.com/openrundev/apps.git
2020
- cp internal/server/list_apps/embed.go .
2121
- rm -rf internal/server/list_apps
22-
- mv apps/clace/list_apps internal/server
22+
- mv apps/openrun/list_apps internal/server
2323
- mv embed.go internal/server/list_apps/
2424
- rm -rf apps
2525
- go test -race ./...
2626

2727
builds:
28-
- main: ./cmd/clace
29-
binary: clace
28+
- main: ./cmd/openrun
29+
binary: openrun
3030
flags:
3131
- -trimpath
3232
ldflags:
@@ -53,7 +53,7 @@ builds:
5353

5454
nfpms:
5555
- file_name_template: "{{.ProjectName}}-{{.Tag}}-{{.Arch}}{{if .Arm}}{{.Arm}}{{end}}"
56-
homepage: https://clace.io/
56+
homepage: https://openrun.dev/
5757
description: Securely develop and deploy internal applications
5858
maintainer: Ajay Kidave <contact@clace.io>
5959
license: Apache 2.0
@@ -62,8 +62,8 @@ nfpms:
6262
- deb
6363
- rpm
6464
contents:
65-
- src: /usr/bin/clace
66-
dst: /usr/local/bin/clace
65+
- src: /usr/bin/openrun
66+
dst: /usr/local/bin/openrun
6767
type: "symlink"
6868

6969
checksum:
@@ -104,35 +104,35 @@ changelog:
104104
order: 999
105105

106106
brews:
107-
- name: clace
108-
homepage: https://clace.io
107+
- name: openrun
108+
homepage: https://openrun.dev
109109
ids: [targz-archives]
110110
repository:
111-
owner: claceio
112-
name: homebrew-clace
111+
owner: openrundev
112+
name: homebrew-openrun
113113
dependencies:
114114
- name: "mkcert"
115115
service: |
116-
run [ opt_bin/"clace", "server", "start" ]
116+
run [ opt_bin/"openrun", "server", "start" ]
117117
keep_alive true
118118
working_dir HOMEBREW_PREFIX
119-
log_path var/"log/clace.log"
120-
error_log_path var/"log/clace.log"
119+
log_path var/"log/openrun.log"
120+
error_log_path var/"log/openrun.log"
121121
skip_upload: auto
122122
install: |-
123-
bin.install "clace"
123+
bin.install "openrun"
124124
post_install: |-
125-
unless File.exist?("#{etc}/clace.toml")
126-
pid = spawn("#{opt_bin}/clace password", out: "#{etc}/clace.toml")
125+
unless File.exist?("#{etc}/openrun.toml")
126+
pid = spawn("#{opt_bin}/openrun password", out: "#{etc}/openrun.toml")
127127
puts "********** Initializing \"admin\" user **********"
128128
Process.wait(pid)
129129
puts "************* Save this password ****************"
130130
131131
mkcert_path = `which mkcert`.chomp
132132
unless mkcert_path.empty?
133-
system("mkdir -p #{HOMEBREW_PREFIX}/var/clace/config/certificates")
133+
system("mkdir -p #{HOMEBREW_PREFIX}/var/openrun/config/certificates")
134134
system("#{mkcert_path} -install")
135-
system("#{mkcert_path} -cert-file #{HOMEBREW_PREFIX}/var/clace/config/certificates/default.crt -key-file #{HOMEBREW_PREFIX}/var/clace/config/certificates/default.key localhost 127.0.0.1 \"*.localhost\"")
135+
system("#{mkcert_path} -cert-file #{HOMEBREW_PREFIX}/var/openrun/config/certificates/default.crt -key-file #{HOMEBREW_PREFIX}/var/openrun/config/certificates/default.key localhost 127.0.0.1 \"*.localhost\"")
136136
puts "Created localhost TLS certificates"
137137
end
138138
end

Makefile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SHELL := bash
77
.DELETE_ON_ERROR:
88
MAKEFLAGS += --warn-undefined-variables
99
MAKEFLAGS += --no-builtin-rules
10-
CL_HOME := `pwd`
10+
OPENRUN_HOME := `pwd`
1111
INPUT := $(word 2,$(MAKECMDGOALS))
1212

1313
.DEFAULT_GOAL := help
@@ -25,32 +25,32 @@ help: ## Display this help section
2525
test: unit int ## Run all tests
2626

2727
covtest: covunit covint ## Run all tests with coverage
28-
> go tool covdata percent -i=$(CL_HOME)/coverage/client,$(CL_HOME)/coverage/unit,$(CL_HOME)/coverage/int
29-
> go tool covdata textfmt -i=$(CL_HOME)/coverage/client,$(CL_HOME)/coverage/unit,$(CL_HOME)/coverage/int -o $(CL_HOME)/coverage.txt
28+
> go tool covdata percent -i=$(OPENRUN_HOME)/coverage/client,$(OPENRUN_HOME)/coverage/unit,$(OPENRUN_HOME)/coverage/int
29+
> go tool covdata textfmt -i=$(OPENRUN_HOME)/coverage/client,$(OPENRUN_HOME)/coverage/unit,$(OPENRUN_HOME)/coverage/int -o $(OPENRUN_HOME)/coverage.txt
3030
> go tool cover -func coverage/profile
3131

3232
unit: ## Run unit tests
3333
> go test ./...
3434

3535
covunit: ## Run unit tests with coverage
36-
> rm -rf $(CL_HOME)/coverage/unit && mkdir -p $(CL_HOME)/coverage/unit
37-
> go test -coverpkg ./... ./... -args -test.gocoverdir="$(CL_HOME)/coverage/unit"
38-
> go tool covdata percent -i=$(CL_HOME)/coverage/unit
39-
> go tool covdata textfmt -i=$(CL_HOME)/coverage/unit -o $(CL_HOME)/coverage/profile
36+
> rm -rf $(OPENRUN_HOME)/coverage/unit && mkdir -p $(OPENRUN_HOME)/coverage/unit
37+
> go test -coverpkg ./... ./... -args -test.gocoverdir="$(OPENRUN_HOME)/coverage/unit"
38+
> go tool covdata percent -i=$(OPENRUN_HOME)/coverage/unit
39+
> go tool covdata textfmt -i=$(OPENRUN_HOME)/coverage/unit -o $(OPENRUN_HOME)/coverage/profile
4040
> go tool cover -func coverage/profile
4141

4242
int: ## Run integration tests
43-
> CL_HOME=$(CL_HOME) ./tests/run_cli_tests.sh
43+
> OPENRUN_HOME=$(OPENRUN_HOME) ./tests/run_cli_tests.sh
4444

4545
int_single: ## Run one integration test
46-
> CL_SINGLE_TEST=${INPUT} CL_HOME=$(CL_HOME) ./tests/run_cli_tests.sh
46+
> CL_SINGLE_TEST=${INPUT} OPENRUN_HOME=$(OPENRUN_HOME) ./tests/run_cli_tests.sh
4747

4848
covint: ## Run integration tests with coverage
49-
> rm -rf $(CL_HOME)/coverage/int && mkdir -p $(CL_HOME)/coverage/int
50-
> rm -rf $(CL_HOME)/coverage/client && mkdir -p $(CL_HOME)/coverage/client
51-
> CL_HOME=. GOCOVERDIR=$(CL_HOME)/coverage/int ./tests/run_cli_tests.sh
52-
> go tool covdata percent -i=$(CL_HOME)/coverage/client,$(CL_HOME)/coverage/int
53-
> go tool covdata textfmt -i=$(CL_HOME)/coverage/client,$(CL_HOME)/coverage/int -o $(CL_HOME)/coverage/profile
49+
> rm -rf $(OPENRUN_HOME)/coverage/int && mkdir -p $(OPENRUN_HOME)/coverage/int
50+
> rm -rf $(OPENRUN_HOME)/coverage/client && mkdir -p $(OPENRUN_HOME)/coverage/client
51+
> OPENRUN_HOME=. GOCOVERDIR=$(OPENRUN_HOME)/coverage/int ./tests/run_cli_tests.sh
52+
> go tool covdata percent -i=$(OPENRUN_HOME)/coverage/client,$(OPENRUN_HOME)/coverage/int
53+
> go tool covdata textfmt -i=$(OPENRUN_HOME)/coverage/client,$(OPENRUN_HOME)/coverage/int -o $(OPENRUN_HOME)/coverage/profile
5454
> go tool cover -func coverage/profile
5555

5656
release: ## Tag and push a release

0 commit comments

Comments
 (0)