Rework build configuration to take advantage of new built-in docker build capabilities.

This commit is contained in:
Jonathan Bernard
2018-12-23 17:39:04 -06:00
parent e61fe3b01e
commit 52eaa63f25
4 changed files with 16 additions and 13 deletions

View File

@ -3,8 +3,7 @@ import cliutils, docopt, os, sequtils, strutils, tempfile, uuids
import strawbosspkg/configuration
import strawbosspkg/core
import strawbosspkg/server
let SB_VER = "0.5.0"
import strawbosspkg/version
proc logProcOutput*(outMsg, errMsg: TaintedString, cmd: string) =
let prefix = if cmd.len > 0: cmd & ": " else: ""
@ -26,7 +25,7 @@ Options
(strawboss.config.json).
"""
let args = docopt(doc, version = "strawboss v" & SB_VER)
let args = docopt(doc, version = "strawboss v" & SB_VERSION)
let cfgFile = if args["--config-file"]: $args["--config-file"]
else: "strawboss.config.json"

View File

@ -7,7 +7,7 @@ from asyncnet import send
from re import re, find
from timeutils import trimNanoSec
import ./configuration, ./core
import ./configuration, ./core, ./version
type
Session = object
@ -166,8 +166,8 @@ proc start*(cfg: StrawBossConfig): void =
routes:
get "/ping":
resp($(%"pong"), JSON)
get "/version":
resp($(%("strawboss v" & SB_VERSION)), JSON)
post "/auth-token":
var uname, pwd: string

View File

@ -0,0 +1,2 @@
const SB_VERSION* = "0.5.0"