(Right? De-cker: Do-cker)
This is some docker build scripts to build a set of minimal node-js containers with sack.vfs installed.
This is just the linux and busybox core.
This is a layer containing the build environment and tools which build the native part of this. This has npm, cmake-js no python.
Includes:
- base
Adds:
- g++ unixodbc-dev util-linux-dev(uuid) cmake
Builds sack.vfs non-gui.
Includes
- d3x0r/alpine-build-tools
This layer is just JS libraries which have some inter-relation with sack.
Includes:
- build
Adds:
- jsox
- RNG
- user-database (login)
- HTML Popup/window forms
this is the base and node, and some of the products from the build.
Includes:
- base
- build binary output
- JS addons from extra
Adds:
- None; just a merge point between JS updates and C updates which are less frequent.
- sets WORKDIR /app
A simple application that has a basic load test and package.json. Your own application layer should look something like this; the most important part is to provide you own package.json in /app
Includes:
- Run
Adds:
- Beyond the scope of this documenation....
Something like the below works as a minimal example against Run
hello.mjs
import {sack} from "sack.vfs";
import {JSOX} from "jsox";
import {SaltyRNG} from "@d3x0r/srg";
console.log( JSOX.stringify( sack, null, "\t" ) );
console.table( JSOX );
console.table( SaltyRNG );
const JSON=JSOX;
Dockerfile
FROM d3x0r/node-alpine-run
copy . .
CMD ["node", "hello.mjs"]
- base[d3x0r/alpine]
- gui[d3x0r/node-alpine-gui] - (weston, rdp, some icon and font resources)
- gui-build-tools[d3x0r/node-alpine-gui-build-tools] - adds compilers, libraries and headers required to build.
- gui-build[d3x0r/node-alpine-gui-build] - builds sack-gui branch of sack.vfs
- gui-build-update[d3x0r/node-alpine-gui-build-update] - pulls latest changes from github; much shorter process than the above source build.
- gui-build-pack[d3x0r/node-alpine-gui-pack] - remove build temporary products.