Skip to content

Commit

Permalink
Add geoip relay (#61)
Browse files Browse the repository at this point in the history
* Set geoip_path for relay

* Update tag to 1.15.1
  • Loading branch information
mariusmitrofan authored Nov 22, 2021
1 parent 0e66f54 commit 28de610
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cloudformation-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Parameters:
# OpsWorks ClickHouse variables
ClickHouseCookbookUrl:
Type: String
Default: https://github.com/Rungutan/sentry-fargate-cf-stack/releases/download/1.15.0/clickhouse-1.15.0.tar.gz
Default: https://github.com/Rungutan/sentry-fargate-cf-stack/releases/download/1.15.1/clickhouse-1.15.1.tar.gz

ClickHouseInstanceType:
Type: String
Expand Down Expand Up @@ -207,23 +207,23 @@ Parameters:

SentryImage:
Type: String
Default: rungutancommunity/sentry-base:1.15.0
Default: rungutancommunity/sentry-base:1.15.1

SnubaImage:
Type: String
Default: rungutancommunity/sentry-snuba:1.15.0
Default: rungutancommunity/sentry-snuba:1.15.1

RelayImage:
Type: String
Default: rungutancommunity/sentry-relay:1.15.0
Default: rungutancommunity/sentry-relay:1.15.1

BashImage:
Type: String
Default: rungutancommunity/bash:1.15.0
Default: rungutancommunity/bash:1.15.1

ClickHouseImage:
Type: String
Default: rungutancommunity/clickhouse-client:1.15.0
Default: rungutancommunity/clickhouse-client:1.15.1

MinCountSnubaApi:
Type: String
Expand Down Expand Up @@ -2858,6 +2858,7 @@ Resources:

processing:
enabled: true
geoip_path: "/work/.relay/GeoLite2-City.mmdb"

kafka_config:
- name: "bootstrap.servers"
Expand Down
2 changes: 2 additions & 0 deletions docker/relay/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ FROM getsentry/relay:21.6.2
COPY docker-alt-entrypoint.sh /docker-entrypoint.sh

RUN mkdir -p /geoip/

COPY GeoLite2-City.mmdb /geoip/GeoLite2-City.mmdb
Binary file added docker/relay/GeoLite2-City.mmdb
Binary file not shown.
1 change: 1 addition & 0 deletions docker/relay/docker-alt-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ fi
# If tmp config folder found, copy file from there to work folder
mkdir -p /work/.relay/ && chown -R relay:relay /work
(cp ${CONFIG_FILE_PATH} /work/.relay/config.yml) || true
(cp /geoip/GeoLite2-City.mmdb /work/.relay/GeoLite2-City.mmdb) || true

# For compatibility with older images
if [ "$1" == "bash" ]; then
Expand Down

0 comments on commit 28de610

Please sign in to comment.