From 48b1e7fd8fb16daacd7b87f6bc6d422400cd0a5f Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 23 Aug 2023 03:09:18 +0200 Subject: Initial --- .gitignore | 1 + README.md | 5 +++++ Taskfile.yml | 20 ++++++++++++++++++++ bridge/main.go | 5 +++++ go.mod | 3 +++ main.go | 5 +++++ 6 files changed, 39 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 Taskfile.yml create mode 100644 bridge/main.go create mode 100644 go.mod create mode 100644 main.go diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d163863 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3801c7f --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# cthcous + +*container-to-host communication over unix sockets* + +--- \ No newline at end of file diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..adda6eb --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,20 @@ +version: "3" + +tasks: + build: + desc: "Builds both the cthcous daemon and the container bridge binaries." + cmds: + - go build -o build/bridge git.rnrd.eu/cthcous/bridge + - go build -o build/cthcous git.rnrd.eu/cthcous + + run: + desc: "Runs cthcous binary." + deps: [build] + cmds: + - build/cthcous + + run-container: + desc: "Runs the container bridge binary." + deps: [build] + cmds: + - build/bridge diff --git a/bridge/main.go b/bridge/main.go new file mode 100644 index 0000000..8a55772 --- /dev/null +++ b/bridge/main.go @@ -0,0 +1,5 @@ +package main + +func main() { + println("hello!!!! this is the container bridge") +} \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..008b65e --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.rnrd.eu/cthcous + +go 1.21 diff --git a/main.go b/main.go new file mode 100644 index 0000000..2032f36 --- /dev/null +++ b/main.go @@ -0,0 +1,5 @@ +package main + +func main() { + println("hello... this is cthcous") +} \ No newline at end of file -- cgit 1.4.1