diff --git a/app/tooling/thoughts-admin/main.go b/app/tooling/thoughts-init/main.go similarity index 100% rename from app/tooling/thoughts-admin/main.go rename to app/tooling/thoughts-init/main.go diff --git a/operations/docker/dockerfile.service b/operations/docker/dockerfile.service index 887e020..50f6e24 100644 --- a/operations/docker/dockerfile.service +++ b/operations/docker/dockerfile.service @@ -7,7 +7,7 @@ ARG BUILD_REF COPY . /thoughts # Build the admin binary. -WORKDIR /thoughts/app/tooling/thoughts-admin +WORKDIR /thoughts/app/tooling/thoughts-init RUN go build -ldflags "-X main.build=${BUILD_REF}" # Build the service binary. @@ -21,7 +21,7 @@ ARG BUILD_DATE ARG BUILD_REF RUN addgroup -g 1000 -S thoughts && \ adduser -u 1000 -h /thoughts -G thoughts -S thoughts -COPY --from=build_thoughts-api --chown=thoughts:thoughts /thoughts/app/tooling/thoughts-admin/thoughts-admin /thoughts/thoughts-admin +COPY --from=build_thoughts-api --chown=thoughts:thoughts /thoughts/app/tooling/thoughts-init/thoughts-init /thoughts/thoughts-init COPY --from=build_thoughts-api --chown=thoughts:thoughts /thoughts/app/services/thoughts-api/thoughts-api /thoughts/thoughts-api WORKDIR /thoughts USER thoughts diff --git a/operations/k8s/base/thoughts/base-thoughts.yaml b/operations/k8s/base/thoughts/base-thoughts.yaml index c714b4a..ac91d99 100644 --- a/operations/k8s/base/thoughts/base-thoughts.yaml +++ b/operations/k8s/base/thoughts/base-thoughts.yaml @@ -27,7 +27,7 @@ spec: initContainers: - name: init-migrate image: thoughts-image - command: ['./thoughts-admin'] + command: ['./thoughts-init'] env: - name: THOUGHTS_DB_USER valueFrom: