Permalink
Browse files

Setting correct workingdir

  • Loading branch information...
s32x committed Dec 1, 2018
1 parent 4bd55b7 commit a921c400a13a55d034fe871301bd40021864f984
Showing with 6 additions and 6 deletions.
  1. +2 −2 .circleci/config.yml
  2. +1 −1 Dockerfile
  3. +3 −3 README.md
@@ -1,7 +1,7 @@
version: 2
jobs:
build:
working_directory: /go/src/github.com/s32x/ipdata
working_directory: /go/src/s32x.com/ipdata
environment:
- DOCKER_TAG: s32x/ipdata
docker:
@@ -13,7 +13,7 @@ jobs:
command: make test
- run:
name: Build binary for Alpine linux
command: env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
command: env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/server
- setup_remote_docker
- run:
name: Build Docker image with binary
@@ -1,4 +1,4 @@
FROM alpine:latest
RUN apk add --no-cache ca-certificates
ADD bin/ipdata /usr/local/bin/server
ADD bin/server /usr/local/bin/server
CMD server
@@ -1,9 +1,9 @@
# IPData

[![CircleCI](https://circleci.com/gh/starboy/ipdata.svg?style=svg)](https://circleci.com/gh/starboy/ipdata)
[![GoDoc](https://godoc.org/github.com/starboy/ipdata/ipdata?status.svg)](https://godoc.org/github.com/starboy/ipdata/verifier)
[![CircleCI](https://circleci.com/gh/s32x/ipdata.svg?style=svg)](https://circleci.com/gh/s32x/ipdata)
[![GoDoc](https://godoc.org/github.com/s32x/ipdata/ipdata?status.svg)](https://godoc.org/github.com/s32x/ipdata/ipdata)

ipdata is a free and open-source ip address lookup system. It combines the results retrieved from multiple maxminddb databases to provide you general geo/isp data for version 4 addresses. The project is available in three forms, the Golang library `ipdata` which can easily be used in your own Go projects, a public API endpoint (more info: https://ipdata.info), and a public Docker image on DockerHub (see: https://hub.docker.com/r/starboy/ipdata/).
ipdata is a free and open-source ip address lookup system. It combines the results retrieved from multiple maxminddb databases to provide you general geo/isp data for version 4 addresses. The project is available in three forms, the Golang library `ipdata` which can easily be used in your own Go projects, a public API endpoint (more info: https://ipdata.info), and a public Docker image on DockerHub (see: https://hub.docker.com/r/s32x/ipdata/).

## Using the API (public or self-hosted)

0 comments on commit a921c40

Please sign in to comment.