docker build container

trunk
HeNine 2 years ago
parent 383ae4fa8e
commit 1e1d4d13d5

@ -1,2 +1,2 @@
jsonnet -J ./lib -S -c -m . .\src\docs.jsonnet
jsonnet -J ./lib -c -m . .\src\schemata.jsonnet
jsonnet -J ./lib -J . -S -c -m . ./src/docs.jsonnet
jsonnet -J ./lib -J . -c -m . ./src/schemata.jsonnet

@ -0,0 +1,14 @@
FROM alpine:3.17
RUN apk update && \
apk upgrade && \
apk add go
# Configure Go
ENV GOROOT /usr/lib/go
ENV GOPATH /go
ENV PATH /go/bin:$PATH
RUN go install github.com/google/go-jsonnet/cmd/jsonnet@v0.19.1
WORKDIR /picc-doc

@ -0,0 +1,3 @@
#!/bin/sh
docker build --rm -t picc/picc-doc-build .

@ -1,5 +0,0 @@
{
"id": "light1",
"name": "The First Light",
"description": "Just a li'l' light."
}

@ -1,21 +0,0 @@
{
"id": "living_room",
"name": "Living Room",
"description": "The living room.",
"relationshios": [
{
"id": "living_room_temp",
"name": "Temperature in the living room",
"module": "Picc.Relationships.AverageTemperature",
"entities": [
"living_room",
"therm1",
"themr2"
],
"arg": {
"prior_mean": 20,
"prior_variance": 3
}
}
]
}

@ -1,4 +1,4 @@
local entity = import '../lib/entity.libsonnet';
local entity = import 'entity.libsonnet';
entity
{

@ -1,4 +1,4 @@
local loom = import 'lib/loom.libsonnet';
local loom = import 'loom.libsonnet';
loom.weave(import 'src/entity.jsonnet') +
loom.weave(import 'src/locations/room.jsonnet') +

@ -1 +1 @@
import '../lib/entity.libsonnet'
import 'entity.libsonnet'

@ -1,4 +1,5 @@
local entity = import '../lib/entity.libsonnet';
local entity = import 'entity.libsonnet';
local types = import 'types.libsonnet';
entity
{

@ -1,4 +1,4 @@
local entity = import '../lib/entity.libsonnet';
local entity = import 'entity.libsonnet';
entity
{

@ -1,4 +1,4 @@
local entity = import '../lib/entity.libsonnet';
local entity = import 'entity.libsonnet';
entity
{

@ -1,4 +1,4 @@
local loom = import 'lib/loom.libsonnet';
local loom = import 'loom.libsonnet';
loom.tangle(import 'src/entity.jsonnet') +
loom.tangle(import 'src/relationship.jsonnet') +

@ -1,4 +1,4 @@
local entity = import '../lib/entity.libsonnet';
local entity = import 'entity.libsonnet';
entity
{

Loading…
Cancel
Save