This file contains hidden or 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
| console.log('Running via Bazel works111!!!'); |
This file contains hidden or 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
| # Import the 'nodejs_binary' | |
| load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary") | |
| nodejs_binary( | |
| # Define the name of the target | |
| name = "app", | |
| # Define the entrypoint of the application | |
| entry_point = ":index.js" | |
| ) |
This file contains hidden or 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
| workspace( | |
| name = "my_workspace", | |
| managed_directories = {"@npm": ["node_modules"]}, | |
| ) | |
| # Load the http_archive rule. | |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |
| # Load the rules_nodejs repository | |
| http_archive( |
This file contains hidden or 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
| bazel-bin | |
| bazel-medium-bazel-getting-started | |
| bazel-out | |
| bazel-testlogs |
This file contains hidden or 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
| load("@io_bazel_rules_go//go:def.bzl", "go_binary") | |
| go_binary( | |
| name = "hello", | |
| srcs = ["main.go"], | |
| ) |
This file contains hidden or 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
| module main | |
| go 1.17 |
This file contains hidden or 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
| package main | |
| import "fmt" | |
| func main() { | |
| // Print "Hello, app1!" to the console | |
| fmt.Println("Hello, app1!") | |
| } |
This file contains hidden or 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
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |
| http_archive( | |
| name = "io_bazel_rules_go", | |
| sha256 = "2b1641428dff9018f9e85c0384f03ec6c10660d935b750e3fa1492a281a53b0f", | |
| urls = [ | |
| "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip", | |
| "https://github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip", | |
| ], | |
| ) |
This file contains hidden or 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
| version: '3' | |
| services: | |
| redis: | |
| image: redis:6.2.6-alpine | |
| restart: always | |
| container_name: redis-server | |
| ports: | |
| - 6379:6379 |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Secret | |
| metadata: | |
| name: my-secret | |
| type: Opaque | |
| data: | |
| privateKey: ENC[AES256_GCM,data:YYY8H0dQc9OtQNcOLlc3,iv:MNMUPq609V/WU/fnH0NqjT2hTFnsk4RiuCBuzBQsh9I=,tag:dyiaRJI7gJ537uOHNs3Guw==,type:str] | |
| sops: | |
| kms: [] | |
| gcp_kms: |