-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from gdgib/G2-1541-Release
G2-1541 Release v0.0.1
- Loading branch information
Showing
5 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
/.factorypath | ||
*.obj | ||
*.exe | ||
/clireport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM alpine:latest as build | ||
RUN apk add --no-cache gcc musl-dev | ||
RUN mkdir -p /clireport | ||
COPY clireport.c /clireport | ||
WORKDIR /clireport | ||
RUN gcc -o clireport clireport.c | ||
|
||
FROM alpine:latest | ||
LABEL org.opencontainers.image.source="https://github.com/g2forge/clireport" | ||
COPY --from=build /clireport/clireport /bin/clireport | ||
ENTRYPOINT ["/bin/clireport"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
# CLIReport | ||
|
||
A tool to report CLI arguments. | ||
|
||
# Build | ||
|
||
## Windows | ||
|
||
``` | ||
cl clireport.c | ||
clireport.exe A B | ||
``` | ||
|
||
## Linux | ||
|
||
``` | ||
docker run --rm -v "$(pwd):/clireport" -w /clireport gcc:latest gcc -o clireport clireport.c | ||
docker run --rm -v "$(pwd):/clireport" -w /clireport ubuntu:latest /clireport/clireport A B | ||
``` | ||
|
||
## Docker | ||
|
||
``` | ||
docker build --tag=ghcr.io/g2forge/clireport:latest . | ||
docker run ghcr.io/g2forge/clireport:latest A B | ||
docker push ghcr.io/g2forge/clireport:latest | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#include <stdio.h> | ||
#include <string.h> | ||
|
||
int main(int argc, char* argv[]) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters