Comments (7)
Hi @nodurah
If I understand your need, you want to build a Docker image for rasbian. Right?
To do so, proceed as follows:
- compile the Go code for raspbian
env GOOS=linux GOARCH=arm GOARM=$ARM_VERSION go build
- Then edit the first line of the Dockerfile and set the base image to a raspian-compatible image
Line 1 in 2460c7f
- Finally build the Docker image
docker build .
Let me know if this help.
R.
from hugo-mx-gateway.
Hello @rchakode
Thanks for the quick advice. That was exactly what I was looking for. After installing go on the host system I already had compiled the go files, so I started at step two.
Unfortunately the curl command with https returns an error code. The unencrypted version seems to work fine.
curl https://127.0.0.1:8080/
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
When I try to run the form just with an http connection I get a return status
{"status": "ok"}
but I don't get the redirected static page mentioned in the documentation. Probably I'm missing something here.
Cheers nodurah
from hugo-mx-gateway.
Hi,
Happy to know that the comments help.
The default endpoint /
is handle heathcheack, no redirection hence.
The redirection occurs when you call the /sendmail
endpoint (follow this link to get detail about the integration https://github.com/rchakode/hugo-mx-gateway#use-the-built-in-form-for-hugo).
Let me know if this helps.
from hugo-mx-gateway.
Hello,
sorry, I overread (several times) the "/sendmail" in the documentation. The backend is now called with the correct URL but I think it is not working correctly as there seems to be still the issue with the SSL /TLS encryption. Is there any way to get a more detailed debug log within the docker container of the programm?
Cheers
from hugo-mx-gateway.
Hello,
I see the point, in the documentation it was mentioned https
but by default the Docker container is configured in http mode (it's fixed now).
Sorry, use http://localhost
as base URL.
Otherwise you can get the logs of the container for more details (docker logs <container>
).
from hugo-mx-gateway.
I'll close this issue.
from hugo-mx-gateway.
Yes, the issue can be closed! Thanks again for the quick help - cheers!
from hugo-mx-gateway.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-mx-gateway.