Skip to content
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 Initial Dockerfile #368

Merged
merged 4 commits into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# syntax=docker/dockerfile:1

FROM golang:alpine3.19

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download && go mod verify

COPY . .
RUN go build -o ./ip2cr

ENTRYPOINT [ "./ip2cr" ]
CMD [ "--help" ]
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ IP-2-CloudResource (IP2CR) is a tool used for correlating a cloud IP address wit

#### 2024

- [ ] Docker Support ( [Issue #367](https://github.com/magneticstain/ip-2-cloudresource/issues/367) )
- [X] Docker Support ( [Issue #367](https://github.com/magneticstain/ip-2-cloudresource/issues/367) )
- [ ] GCP Support ( [Issue #361](https://github.com/magneticstain/ip-2-cloudresource/issues/361) )
- [ ] Azure Support ( [Issue #362](https://github.com/magneticstain/ip-2-cloudresource/issues/362) )

Expand All @@ -65,6 +65,16 @@ IP2CR supports running on n-1 minor versions of Golang, aka [stable and old-stab

## Install

### Docker

The most portable way to install and run IP2CR is by using Docker. Check out the `main` branch of this repo, build the IP2CR image, and run it.

```bash
git clone https://github.com/magneticstain/ip-2-cloudresource.git
docker build -t ip2cr .
docker run --rm --name=ip-2-cloudresource ip2cr
```

### Homebrew

The easiest way to install IP2CR if you're using Mac OS is to use [Homebrew](https://brew.sh). With homebrew installed, run the following to install IP2CR:
Expand Down
Loading