Skip to content

Appropriate values for Dockerfile & retype.yml? #840

Description

@kcowgill

I've been struggling off & on trying to create an appropriate Dockerfile to get a documentation site up & running on kubernetes. My company has an enterprise license and I'm taking advantage of enterprise features.

I keep running into the "Website Configuration Error" page with instructions to see the troubleshooting guide for assistance, which hints that the url: setting in my retype.yml is likely not configured correctly.

I'm having trouble understanding what needs to match. When I just run locally via retype start (out of systemctl --user) the following (anonymized) excerpts from my retype.yml don't seem to pose any issue:

input: .
output: .retype

url: workstation.mycompany.com

serve:
  host: workstation.mycompany.com:8080

start:
  open: false
  pro: true

My Dockerfile looks like this:

# syntax=docker/dockerfile:1

FROM mcr.microsoft.com/dotnet/sdk:10.0 AS builder
WORKDIR /build
COPY . /build
RUN dotnet tool install retypeapp --tool-path /bin
RUN --mount=type=secret,id=retype_key \
  RETYPE_KEY=$(cat /run/secrets/retype_key) \
  retype build --output .docker-build/

FROM nginx:alpine
COPY --from=builder /build/.docker-build/ /usr/share/nginx/html/

And I build the container via:

IMAGE    := docs
TAG      := latest
KEY_FILE := $(HOME)/.retype_key
build:
	docker build --secret id=retype_key,src=<(sops -d $(KEY_FILE)) -t $(IMAGE):$(TAG) .

I'm not sure what I'm missing, or where I can look to continue to debug what's not working correctly. It works fine when I leave out the pro key.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions