Skip to content

Commit

Permalink
Merge pull request #3 from gdgib/G2-1541-Release
Browse files Browse the repository at this point in the history
G2-1541 Release v0.0.1
  • Loading branch information
gdgib committed Feb 29, 2024
2 parents 9c0dd93 + bdc093e commit 2db65f5
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/.factorypath
*.obj
*.exe
/clireport
11 changes: 11 additions & 0 deletions Dockerfile
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"]
24 changes: 24 additions & 0 deletions README.md
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
```
1 change: 1 addition & 0 deletions clireport.c
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[])
{
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.g2forge.clireport</groupId>
<artifactId>clireport</artifactId>
<packaging>pom</packaging>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.2-SNAPSHOT</version>

<properties>
<clireport.organization>g2forge</clireport.organization>
Expand Down

0 comments on commit 2db65f5

Please sign in to comment.