-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CI #29
Merged
Merged
Fix CI #29
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4c6e31b
Upgrade golangci-lint version
JAORMX 8ce83bb
Fix linting issues
JAORMX f21d4ee
Fix devcontainer setup
JAORMX 448c00c
Add Makefile targets to spawn compose environment through the CLI
JAORMX 627410a
compose: Take container conditions into account
JAORMX ddb9b17
Use tag v22.2.5 for crdb
JAORMX bc33604
Ensure dev container starts where the repo is mounted.
JAORMX c09f376
Run unit tests in devcontainer
JAORMX 8dd6271
Add needed changes in CI to run docker compose
JAORMX File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# spicedb container config | ||
SPICEDB_GRPC_PRESHARED_KEY=infradev | ||
SPICEDB_DATASTORE_CONN_URI=postgresql://root:@crdb:26257/spicedb?sslmode=disable | ||
SPICEDB_DATASTORE_ENGINE=cockroachdb | ||
SPICEDB_LOG_LEVEL=info | ||
SPICEDB_LOG_FORMAT=console | ||
SPICEDB_OTEL_PROVIDER=jaeger | ||
SPICEDB_OTEL_INSECURE=true | ||
SPICEDB_OTEL_ENDPOINT=http://app:14268/api/traces | ||
|
||
# zed CLI tool config | ||
ZED_ENDPOINT=spicedb:50051 | ||
ZED_INSECURE=true | ||
ZED_TOKEN=infradev | ||
|
||
IDENTITYAPI_TRACING_ENABLED=true | ||
IDENTITYAPI_TRACING_PROVIDER=jaeger | ||
IDENTITYAPI_TRACING_JAEGER_ENDPOINT=http://localhost:14268/api/traces | ||
IDENTITYAPI_CRDB_URI="postgresql://root@crdb:26257/identityapi_dev?sslmode=disable" | ||
|
||
PERMISSIONAPI_TRACING_ENABLED=true | ||
PERMISSIONAPI_TRACING_PROVIDER=jaeger | ||
PERMISSIONAPI_TRACING_JAEGER_ENDPOINT=http://localhost:14268/api/traces | ||
PERMISSIONAPI_SPICEDB_ENDPOINT=spicedb:50051 | ||
PERMISSIONAPI_SPICEDB_KEY=$SPICEDB_GRPC_PRESHARED_KEY | ||
PERMISSIONAPI_SPICEDB_INSECURE=true | ||
|
||
# cockroachdb container config | ||
COCKROACH_INSECURE=true | ||
COCKROACH_HOST=crdb:26257 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,40 @@ | ||
# spicedb container config | ||
SPICEDB_GRPC_PRESHARED_KEY=infradev | ||
SPICEDB_DATASTORE_CONN_URI=postgresql://root:@crdb:26257/spicedb?sslmode=disable | ||
SPICEDB_DATASTORE_ENGINE=cockroachdb | ||
SPICEDB_LOG_LEVEL=info | ||
SPICEDB_LOG_FORMAT=console | ||
SPICEDB_OTEL_PROVIDER=jaeger | ||
SPICEDB_OTEL_INSECURE=true | ||
SPICEDB_OTEL_ENDPOINT=http://app:14268/api/traces | ||
// Config reference, https://containers.dev/implementors/json_reference/ | ||
{ | ||
"name": "permissions-api", | ||
"dockerComposeFile":"docker-compose.yml", | ||
"service": "app", | ||
"workspaceFolder": "/workspace", | ||
"shutdownAction": "stopCompose", | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"go.toolsManagement.checkForUpdates": "local", | ||
"go.useLanguageServer": true, | ||
"go.gopath": "/go" | ||
}, | ||
|
||
# zed CLI tool config | ||
ZED_ENDPOINT=spicedb:50051 | ||
ZED_INSECURE=true | ||
ZED_TOKEN=infradev | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"2gua.rainbow-brackets", | ||
"golang.Go", | ||
"mutantdino.resourcemonitor", | ||
"oderwat.indent-rainbow", | ||
"ms-azuretools.vscode-docker", | ||
"RemiMarche.cspell-tech", | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} | ||
}, | ||
|
||
IDENTITYAPI_TRACING_ENABLED=true | ||
IDENTITYAPI_TRACING_PROVIDER=jaeger | ||
IDENTITYAPI_TRACING_JAEGER_ENDPOINT=http://localhost:14268/api/traces | ||
IDENTITYAPI_CRDB_URI="postgresql://root@crdb:26257/identityapi_dev?sslmode=disable" | ||
|
||
PERMISSIONAPI_TRACING_ENABLED=true | ||
PERMISSIONAPI_TRACING_PROVIDER=jaeger | ||
PERMISSIONAPI_TRACING_JAEGER_ENDPOINT=http://localhost:14268/api/traces | ||
PERMISSIONAPI_SPICEDB_ENDPOINT=spicedb:50051 | ||
PERMISSIONAPI_SPICEDB_KEY=$SPICEDB_GRPC_PRESHARED_KEY | ||
PERMISSIONAPI_SPICEDB_INSECURE=true | ||
|
||
# cockroachdb container config | ||
COCKROACH_INSECURE=true | ||
COCKROACH_HOST=crdb:26257 | ||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode", | ||
"remoteEnv": { | ||
"PATH": "${containerEnv:PATH}:/home/vscode/.nsccli/bin" | ||
}, | ||
"features": { | ||
"git": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooo fancy 💅