Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after docker-compose #3

Open
IanHudson opened this issue Mar 14, 2021 · 1 comment
Open

Error after docker-compose #3

IanHudson opened this issue Mar 14, 2021 · 1 comment

Comments

@IanHudson
Copy link

After running make build then sudo docker-compose up --build.
The output is as below

`Building escape-pod-extension
Step 1/3 : FROM scratch
--->
Step 2/3 : COPY escapepodextension /
---> Using cache
---> 66301114a1b6
Step 3/3 : ENTRYPOINT ["/escapepodextension"]
---> Using cache
---> 9652e92d7e7e

Successfully built 9652e92d7e7e
Successfully tagged go_escape-pod-extension:latest
Recreating go_escape-pod-extension_1 ... done
Attaching to go_escape-pod-extension_1
escape-pod-extension_1 | {"Function":"main.main","Source":"main.go:75","level":"fatal","msg":"error during server setup: [invalid client-authentication value "\"NoClientCert\"", valid values [NoClientCert, RequestClientCert, RequireAnyClientCert, VerifyClientCertIfGiven, RequireAndVerifyClientCert]]","time":"2021-03-14 14:20:09"}
go_escape-pod-extension_1 exited with code 1

@cyb3rdog
Copy link

cyb3rdog commented Apr 17, 2021

You have to set up all the environments variables, which are used in there.

Unfortunatelly, it is not well explicitly documented anywhere, so currently you can only read those here. Also in order to properly build you should export them into $BUILDINFO_FLAGS as it is used by the make/go build.
This is the bare minimum of what you have to set up, change the CHANGEME values:

DDL_RPC_PORT=8089
DDL_RPC_CLIENT_AUTHENTICATION="NoClientCert"
DDL_RPC_INSECURE=true

ESCAPE_POD_WEATHER_API_KEY=CHANGEME
ESCAPE_POD_WEATHER_UNITS=CHANGEME
ESCAPE_POD_WEATHER_ZIP_CODE=CHANGEME

ESCAPE_POD_ROBOT_TARGET=CHANGEME
ESCAPE_POD_ROBOT_TOKEN=CHANGEME

OR...
you can give a damn about the env vars, and apply the attached patch file, so it which will allways statically set them up for your build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants