Skip to content

Instantly share code, notes, and snippets.

View mr-pascal's full-sized avatar

Pascal mr-pascal

View GitHub Profile
console.log('Running via Bazel works111!!!');
# 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"
)
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(
bazel-bin
bazel-medium-bazel-getting-started
bazel-out
bazel-testlogs
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
go_binary(
name = "hello",
srcs = ["main.go"],
)
module main
go 1.17
package main
import "fmt"
func main() {
// Print "Hello, app1!" to the console
fmt.Println("Hello, app1!")
}
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",
],
)
version: '3'
services:
redis:
image: redis:6.2.6-alpine
restart: always
container_name: redis-server
ports:
- 6379:6379
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: