hashicorp mirror

Hi, im try deploing coder-oss to my homelab kubernetes, and im get following error on coder pod starts:
==> Logs will stream in below (press ctrl+c to gracefully exit):
Unexpected error, shutting down server: install terraform: failed to obtain product version from "https://releases.hashicorp.com/terraform/1.3.0/index.json": 404 Not Found
Shutting down API server...
Gracefully shut down API server
Waiting for WebSocket connections to close...
Done waiting for WebSocket connections
2022/09/27 13:07:20 context canceled
install terraform: failed to obtain product version from "https://releases.hashicorp.com/terraform/1.3.0/index.json": 404 Not Found
Run 'coder server --help' for usage.
==> Logs will stream in below (press ctrl+c to gracefully exit):
Unexpected error, shutting down server: install terraform: failed to obtain product version from "https://releases.hashicorp.com/terraform/1.3.0/index.json": 404 Not Found
Shutting down API server...
Gracefully shut down API server
Waiting for WebSocket connections to close...
Done waiting for WebSocket connections
2022/09/27 13:07:20 context canceled
install terraform: failed to obtain product version from "https://releases.hashicorp.com/terraform/1.3.0/index.json": 404 Not Found
Run 'coder server --help' for usage.
I think it's because the hashicorp resources are not available for my server (it is located in Russia), can I specify a mirror for the hashicorp repository?
7 Replies
kyle
kyle2y ago
If you install Terraform 1.3.0 on your server, we won't try to download it!
MiF(Макс)
MiF(Макс)2y ago
in coder container?
bpmct
bpmct2y ago
Yeah, you'll need to essentially build a new container that includes the terraform binary in PATH. You might also need to provide a mirror for Terraform providers. I have made an unofficial image here that you can reference. I'd recommend building your own though since I don't plan on updating the versions of Coder or adding additional providers.
MiF(Макс)
MiF(Макс)2y ago
Where i can look to mirror reference?
Cian
Cian2y ago
(edit: wrong thread)
bpmct
bpmct2y ago
Whoops, sorry! I didn't share the repo URL: https://github.com/bpmct/coder-offline
GitHub
GitHub - bpmct/coder-offline
Contribute to bpmct/coder-offline development by creating an account on GitHub.
bpmct
bpmct2y ago
You could use a local (filesystem mirror) or host your own. I'm not sure which ones would work given your network
Want results from more Discord servers?
Add your server