Skip to content

Commit

Permalink
update docs and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
sethpollack committed Aug 28, 2024
1 parent 14d70ae commit 6462f6b
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.bin
.DS_Store
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ The root schema for the configuration files contains the following fields:

`applets: [string]: #Applet` - This field is used to configure the applets.

`ignore: [string]: #Applet` - This field is used to instruct dockerbox to skip certain applets when running the dockerbox install command.
`networks: [string]: #Network` - This field is used to configure the networks.

`volumes: [string]: #Volume` - This field is used to configure the volumes.

`ignore: [string]: #Applet` - This field is used to instruct dockerbox to skip certain applets when running the dockerbox install command.

`dockerbox` will look for configuration files by walking the path of your current directory and unifying all of the files.

Expand Down Expand Up @@ -122,8 +125,15 @@ Usage:
dockerbox [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
debug debug config files
help Help about any command
install Install docker applet
uninstall Uninstall docker applet
install install docker applet
uninstall uninstall docker applet
version
Flags:
-h, --help help for dockerbox
Use "dockerbox [command] --help" for more information about a command.
```
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ variable "DESTDIR" {
}

variable "VERSION" {
default = "2.0.3"
default = "2.0.4"
}

group "default" {
Expand Down
97 changes: 78 additions & 19 deletions example/example.dbx.cue
Original file line number Diff line number Diff line change
@@ -1,26 +1,85 @@
#Base: #Applet & {
name: string
entrypoint: "\(name)"
image: "repo/\(name)"
work_dir: string | *"\(environ.PWD)"
volumes: [...string] | *[
"\(environ.HOME):\(environ.HOME)",
]
environment: [
for k, v in environ if k != "HOME" && k != "PWD" && k != "TMPDIR" {
"\(k)=\(v)"
},
]
package tools

applets: [Name=_]: {
applet_name: Name
}

volumes: [Name=_]: {
name: Name
}

networks: [Name=_]: {
name: Name
}

baseEnvs: [
for k, v in environ if k != "HOME" && k != "PATH" && k != "TMPDIR" {
"\(k)=\(v)"
},
]

baseVolumes: ["\(environ.PWD):/src"]

#base: #Applet & {
applet_name: string
entrypoint: string | *"\(applet_name)"
work_dir: string | *"/src"
environment: [...string] | *baseEnvs
volumes: [...string] | *baseVolumes
}

applets: [Name=_]: #Base & {
name: Name
#ruby: #base & {
image: "ruby"
volumes: ["bundle:/usr/local/bundle"] + baseVolumes
}

#node: #base & {
image: "node"
volumes: [
"yarn:/root/.yarn",
"node:/usr/local/lib/node_modules",
] + baseVolumes
ports: ["3000:3000", "5173:5173"]
}

#rust: #base & {
image: "rust"
volumes: ["cargo:/root/.cargo"] + baseVolumes
ports: ["8000:8000"]
}


applets: {
karpenter: {}
kubectl: {}
kustomize: {}
rust: #rust & {}
cargo: #rust & {}

ruby: #ruby & {}
rspec: #ruby & {}
rubocop: #ruby & {}
bundle: #ruby & {}

node: #node & {}
yarn: #node & {}
npx: #node & {}
npm: #node & {}
pnpm: #node & {}
tsc: #node & {}

...
}

ignore: [applets.karpenter]
volumes: {
yarn: {}
bundle: {}
node: {}
cargo: {}

...
}


ignore: {
pnpm: {}

...
}

0 comments on commit 6462f6b

Please sign in to comment.