go-crm initial
This commit is contained in:
@@ -10,10 +10,17 @@ RUN pacman -Syu --noconfirm && \
|
||||
openssh \
|
||||
opencode \
|
||||
curl \
|
||||
go \
|
||||
sqlite \
|
||||
&& pacman -Scc --noconfirm
|
||||
|
||||
RUN npx -y skills add JuliusBrussee/caveman -g -a opencode -s caveman -y
|
||||
|
||||
# 2. Install air using Go
|
||||
RUN go install github.com/air-verse/air@latest
|
||||
|
||||
# Add Go binaries to your PATH so you can actually run 'air'
|
||||
ENV PATH="/root/go/bin:${PATH}"
|
||||
|
||||
# Git safe directory system-wide config
|
||||
RUN git config --system --add safe.directory /workspace
|
||||
|
||||
BIN
.opencode-sandbox/data/go-crm.db
Normal file
BIN
.opencode-sandbox/data/go-crm.db
Normal file
Binary file not shown.
@@ -15,11 +15,22 @@ services:
|
||||
- /home/ga/.ssh:/root/.ssh
|
||||
# Persist opencode auth
|
||||
- opencode-auth:/root/.local/share/opencode
|
||||
# Go CRM database
|
||||
- ./data:/workspace/data
|
||||
environment:
|
||||
- OPENCODE_API_KEY=${OPENCODE_API_KEY}
|
||||
stdin_open: true
|
||||
tty: true
|
||||
ports:
|
||||
- "8080:8080"
|
||||
working_dir: /workspace
|
||||
networks:
|
||||
- crm-network
|
||||
|
||||
networks:
|
||||
crm-network:
|
||||
name: crm-network
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
opencode-auth:
|
||||
opencode-auth:
|
||||
Reference in New Issue
Block a user