commit 4991a950088707f9ec003e5aa901168a7bad5281 Author: othman.suseno Date: Sun Dec 14 15:48:02 2025 +0700 initial project structure diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9d4c592 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.go] +indent_size = 2 diff --git a/.gitea/ISSUE_TEMPLATE/bug.md b/.gitea/ISSUE_TEMPLATE/bug.md new file mode 100644 index 0000000..6cc4abe --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/bug.md @@ -0,0 +1,12 @@ +--- +name: Bug report +about: Report a bug in atlasOS +--- + +### What happened? + +### Expected behavior + +### Steps to reproduce + +### Logs / Screenshots diff --git a/.gitea/ISSUE_TEMPLATE/feature.md b/.gitea/ISSUE_TEMPLATE/feature.md new file mode 100644 index 0000000..701ea8d --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/feature.md @@ -0,0 +1,10 @@ +--- +name: Feature request +about: Suggest a feature for atlasOS +--- + +### Problem statement + +### Proposed solution + +### Alternatives considered diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..c881e9d --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI + +on: + push: + branches: [ "main", "develop" ] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: '1.22' + - name: Test + run: go test ./... + - name: Build + run: go build ./cmd/... diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ebfe3da --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# Binaries +atlas-api +atlas-tui +atlas-agent + +# Go +/vendor/ +*.test +*.out + +# OS / Editor +.DS_Store +.idea/ +.vscode/ + +# Runtime +*.log diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..04a4172 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +BINS=atlas-api atlas-tui + +all: build + +build: + go build ./cmd/... + +test: + go test ./... + +lint: + go vet ./... + +clean: + rm -f $(BINS) diff --git a/README.md b/README.md new file mode 100644 index 0000000..cfdc5b8 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# atlasOS + +atlasOS is an appliance-style storage controller build by Adastra + +**v1 Focus** +- ZFS storage engine +- SMB / NFS / iSCSI (ZVOL) +- Auto snapshots (sanoid) +- RBAC + audit +- TUI (Bubble Tea) + Web GUI (HTMX) +- Prometheus metrics + +> This repository contains the management plane and appliance tooling. diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..86fa266 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module example.com/atlasos + +go 1.24.4