Skip to content

Commit

Permalink
[dss] Ensure clean workspace for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
barroco committed Jul 8, 2024
1 parent a0f1eca commit 542dd17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build/workspace
**/.terraform
14 changes: 3 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,9 @@ WORKDIR /app
# Get dependencies - will also be cached if we won't change mod/sum
RUN go mod download

COPY .git /app/.git
COPY cmds /app/cmds
RUN mkdir -p cmds/db-manager

COPY pkg /app/pkg
COPY cmds/db-manager cmds/db-manager

RUN go install ./...

COPY scripts /app/scripts
COPY Makefile /app
# In order to reliably compute the version of the build, all files must be present.
# This is required to detect a dirty workspace using `scripts/git/version.sh`.
COPY . /app
RUN make interuss


Expand Down
2 changes: 2 additions & 0 deletions cmds/core-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
ridc "github.com/interuss/dss/pkg/rid/store/cockroach"
"github.com/interuss/dss/pkg/scd"
scdc "github.com/interuss/dss/pkg/scd/store/cockroach"
"github.com/interuss/dss/pkg/version"
"github.com/interuss/stacktrace"
"github.com/robfig/cron/v3"
"go.uber.org/zap"
Expand Down Expand Up @@ -207,6 +208,7 @@ func createSCDServer(ctx context.Context, logger *zap.Logger) (*scd.Server, erro
// RunHTTPServer starts the DSS HTTP server.
func RunHTTPServer(ctx context.Context, ctxCanceler func(), address, locality string) error {
logger := logging.WithValuesFromContext(ctx, logging.Logger).With(zap.String("address", address))
logger.Info("version", zap.Any("version", version.Current()))
logger.Info("build", zap.Any("description", build.Describe()))
logger.Info("config", zap.Bool("scd", *enableSCD))

Expand Down

0 comments on commit 542dd17

Please sign in to comment.