Skip to content

Commit

Permalink
ci: test container
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfalkowski committed Apr 22, 2022
1 parent 7b4bf7f commit 963c33c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ jobs:
name: make login
command: echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
- run: make docker
standort:
docker:
- image: alexfalkowski/go:1.18
environment:
CONFIG_FILE: test/.config/docker.config.yml
steps:
- checkout
- setup_remote_docker
- run: docker run -d --rm -p 8080:8080 -p 8443:443 alexfalkowski/standort server
- run: dockerize -wait tcp://localhost:8080 -timeout 1m
- run: curl -f http://localhost:8080/v1/location/ip/95.91.246.242

workflows:
standort:
Expand All @@ -49,3 +60,4 @@ workflows:
filters:
branches:
only: master
- standort
31 changes: 31 additions & 0 deletions test/.config/docker.config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
health:
duration: 1s
timeout: 1s
location:
continent:
africa_path: /assets/africa.geojson
north_america_path: /assets/north_america.geojson
oceania_path: /assets/oceania.geojson
antarctica_path: /assets/antarctica.geojson
asia_path: /assets/asia.geojson
europe_path: /assets/europe.geojson
south_america_path: /assets/south_america.geojson
ip:
path: /assets/ip2location.bin
trace:
opentracing:
jaeger:
host: localhost:6831
transport:
http:
port: 8080
user_agent: "Standort-server/1.0 http/1.0"
retry:
timeout: 2s
attempts: 3
grpc:
port: 9090
user_agent: "Standort-server/1.0 grpc/1.0"
retry:
timeout: 2s
attempts: 3

0 comments on commit 963c33c

Please sign in to comment.