-
Notifications
You must be signed in to change notification settings - Fork 38
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
add dockerfile for c4go #370
base: master
Are you sure you want to change the base?
Conversation
add docker build and run doc in readme
Codecov Report
@@ Coverage Diff @@
## master #370 +/- ##
=======================================
Coverage 85.96% 85.96%
=======================================
Files 188 188
Lines 11027 11027
=======================================
Hits 9479 9479
Misses 1106 1106
Partials 442 442 Continue to review full report at Codecov.
|
docker build -t c4go . | ||
|
||
# Run the container for the c4go image | ||
docker run --rm -it c4go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
It is look great.
May you add example of command for transpiling C code from folder ./example/.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, for myself- not clear location output Go code- inside docker or outside
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to test this with:
~/Dev/docker/c4go/examples [master] $ docker run -v $(realpath prime.c):/prime.c --rm -it c4go transpile /prime.c
Error: Preprocess error : preprocess for file: [/prime.c]
failed: exec: "clang": executable file not found in $PATH
StdErr =
Is clang included in the Alpine image?
FROM golang:latest as builder | ||
WORKDIR /src | ||
ADD . . | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o c4go . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is possible to run command 'go generate' for generate version of program?
closes #346