runtime
runtime copied to clipboard
Secret not generated in --interactive mode
Acornfile:
containers: {
db: {
image: "postgres:alpine"
env: {
"POSTGRES_DB": "acorn"
"POSTGRES_PASSWORD": "secret://quickstart-pg-pass/token"
}
dirs: {
if !args.dev {
"/var/lib/postgresql/data": "volume://pgdata"
}
}
files: {
"/docker-entrypoint-initdb.d/00-init.sql": "CREATE TABLE squirrel_food (food text);"
}
ports: "5432/tcp"
}
}
secrets: {
"quickstart-pg-pass": {
type: "token"
}
}
acorn run . is working fine, but acorn run -i . gets me the following error:
[+] Building 0.7s (5/5) FINISHED
# ... truncated buildkit output ...
STATUS: ENDPOINTS[] HEALTHY[] UPTODATE[]
STATUS: ENDPOINTS[] HEALTHY[0] UPTODATE[0] [secrets: errored: [quickstart-pg-pass: strconv.ParseInt: parsing "": invalid syntax]]
STATUS: ENDPOINTS[] HEALTHY[0/1] UPTODATE[1] [secrets: errored: [quickstart-pg-pass: strconv.ParseInt: parsing "": invalid syntax]] [containers: billowing-snow is not ready; db ContainerCreating]
STATUS: ENDPOINTS[] HEALTHY[0/1] UPTODATE[1] [secrets: errored: [quickstart-pg-pass: strconv.ParseInt: parsing "": invalid syntax]] [containers: billowing-snow is not ready; db CreateContainerConfigError: secret "quickstart-pg-pass" not found]