Skip to content

Commit

Permalink
Use Debian Buster for release docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
rslota committed Apr 23, 2020
1 parent f042999 commit c952768
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM elixir:1.6
FROM elixir:1.9

ENV HOME=/opt/app/ TERM=xterm
ENV LANG en_US.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.release
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:stretch-slim
FROM debian:buster-slim

# set locales
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y locales
Expand Down
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ config :elixometer,
metric_prefix: "mongoose_push"

config :mongoose_push, loglevel: :debug
config :goth, endpoint: "http://fcm-mock:4001"
config :goth, endpoint: "http://localhost:4001"

config :maru, MongoosePush.Router,
versioning: [
Expand Down
4 changes: 4 additions & 0 deletions lib/mongoose_push/service/fcm.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ defmodule MongoosePush.Service.FCM do
# Setup non-silent notification
alert = request.alert



android =
Android.new()
|> Android.add_title(alert.title)
Expand All @@ -44,6 +46,8 @@ defmodule MongoosePush.Service.FCM do
|> maybe(:add_tag, alert[:tag])
|> maybe(:add_sound, alert[:sound])

IO.inspect(android)

Notification.new(:token, device_id)
|> Notification.add_android(android)
end
Expand Down

0 comments on commit c952768

Please sign in to comment.