Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
despiegk committed Dec 15, 2024
1 parent 64dca0a commit 5310583
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 12 deletions.
16 changes: 16 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu:24.04

# Avoid prompts from apt
ENV DEBIAN_FRONTEND=noninteractive

# Install essential build tools and dependencies
RUN apt-get update && apt-get install -y \
git gcc make clang libssl-dev sqlite3 libsqlite3-dev mc htop

# Install V
RUN git clone https://github.com/vlang/v /opt/vlang \
&& cd /opt/vlang \
&& make \
&& ln -s /opt/vlang/v /usr/local/bin/v

CMD ["redis-server"]
7 changes: 7 additions & 0 deletions .devcontainer/check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# if [ -z "${DEPLOYKEY}" ]; then
# echo "ERROR: DEPLOYKEY environment variable is not set"
# exit 1
# fi

39 changes: 39 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "Crystallib Development",
"build": {
"dockerfile": "Dockerfile"
},
"workspaceFolder": "/root/code/github/freeflowuniverse/crystallib",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true,
"upgradePackages": true
}
},
"customizations": {
"vscode": {
"extensions": [
"vlanguage.vscode-vlang",
"saoudrizwan.claude-dev",
"ms-vscode.vscode-typescript-next",
"mhutchie.git-graph"
]
}
},
"initializeCommand":"./.devcontainer/check.sh",
"privileged":true,
"mounts": [
"source=${localEnv:HOME}/code,target=/root/code,type=bind,consistency=cached"
],
"forwardPorts": [3000, 6379],
"portsAttributes": {
"3000": {
"label": "Hello Remote World",
"onAutoForward": "notify"
}
},
// "postStartCommand": "bun run start",
"remoteUser": "root"
}
23 changes: 23 additions & 0 deletions crystallib.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"folders": [
{
"path": "/root/code/github/freeflowuniverse/crystallib/crystallib"
},
{
"path": "/root/code/github/freeflowuniverse/crystallib/aiprompts"
},
{
"path": "/root/code/github/freeflowuniverse/crystallib/c/root/code/github/freeflowuniverse/crystallib/hero"
},
{
"path": "/root/code/github/freeflowuniverse/crystallib/scripts"
},
{
"path": "/root/code/github/freeflowuniverse/crystallib/examples"
},
{
"path": "/root/code/github/freeflowuniverse/crystallib/cli"
}
],
"settings": {}
}
13 changes: 2 additions & 11 deletions examples/crystallib.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,18 @@
{
"path": "../crystallib"
},
{
"path": "."
},
{
"path": "../aiprompts"
},
{
"path": "../cli/hero"
},
{
"path": "../vscodeplugin"
},
{
"path": "../scripts"
},
{
"path": "../research"
},
{
"path": "../tools"
},
"path": "../examples"
},
{
"path": "../cli"
}
Expand Down
2 changes: 1 addition & 1 deletion push_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ cd "$MYDIR"
echo "Enter the commit message:"
read commit_message

git add . -A ; git commit -m "$commit_message"; git pull ; git push
git add . -A ; git commit -m "$commit_message"; git pull ; git push
23 changes: 23 additions & 0 deletions tools/workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"folders": [
{
"path": "/root/code/github/freeflowuniverse/crystallib/crystallib"
},
{
"path": "/root/code/github/freeflowuniverse/crystallib/aiprompts"
},
{
"path": "/root/code/github/freeflowuniverse/crystallib/c/root/code/github/freeflowuniverse/crystallib/hero"
},
{
"path": "/root/code/github/freeflowuniverse/crystallib/scripts"
},
{
"path": "/root/code/github/freeflowuniverse/crystallib/examples"
},
{
"path": "/root/code/github/freeflowuniverse/crystallib/cli"
}
],
"settings": {}
}

0 comments on commit 5310583

Please sign in to comment.