...
 
Commits (2)
......@@ -33,7 +33,7 @@ build-binary-generic:
stage: build-binary
only:
refs:
- master
- branches
- tags
artifacts:
paths:
......@@ -100,6 +100,17 @@ build-image-feature-client:
before_script:
- cp ./bin/dblab-alpine ./bin/dblab
build-image-feature-client-extended:
<<: *build_image_definition
<<: *only_feature
variables:
REGISTRY_USER: "${CI_REGISTRY_USER}"
REGISTRY_PASSWORD: "${CI_REGISTRY_PASSWORD}"
REGISTRY: "${CI_REGISTRY}"
DOCKER_FILE: "Dockerfile.dblab-extended"
DOCKER_NAME: "registry.gitlab.com/postgres-ai/database-lab/dblab-extended"
TAGS: "${DOCKER_NAME}:${CI_COMMIT_REF_SLUG}"
build-image-master-server:
<<: *build_image_definition
<<: *only_master
......
FROM sqitch/sqitch:1.0.0
# Install dependecies.
RUN apk update && apk add --no-cache bash jq
WORKDIR /home/dblab
COPY ./bin/dblab ./bin/dblab
CMD ./bin/dblab
......@@ -67,7 +67,7 @@ func (obs Observer) Start(clone *models.Clone, follow bool) error {
query := fmt.Sprintf(queryLocks, obs.IntervalSeconds)
output, err := runQuery(db, query, false)
output, err := runQuery(db, query)
if err != nil {
return errors.Wrap(err, "cannot query metrics")
}
......@@ -88,7 +88,7 @@ func (obs Observer) Start(clone *models.Clone, follow bool) error {
obs.CounterSuccess++
}
_, err = fmt.Fprintf(obs.Writer, "Intervals:\nSuccessful:%d With warnings:%d\n", obs.CounterSuccess, obs.CounterWarning)
_, err = fmt.Fprintf(obs.Writer, "Intervals:\nSuccessful:%d With warnings:%d\n\n", obs.CounterSuccess, obs.CounterWarning)
if err != nil {
return errors.Wrap(err, "cannot print")
}
......