aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--README.md5
-rw-r--r--Taskfile.yml20
-rw-r--r--bridge/main.go5
-rw-r--r--go.mod3
-rw-r--r--main.go5
6 files changed, 39 insertions, 0 deletions
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