Skip to content

Commit

Permalink
Autogenerated update drone from suite-py 202010301134 (primait#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-gubchenko authored Nov 10, 2020
1 parent d7d8f5e commit 497b093
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 10 deletions.
20 changes: 20 additions & 0 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
locals_without_parens: [
field: :*,
resolve: :*,
plug: :*,
arg: :*,
parse: :*,
serialize: :*,
value: :*,
has_one: :*,
has_many: :*,
from: :*,
get: :*,
post: :*,
put: :*,
belongs_to: :*
],
inputs: ["lib/**/*.{ex,exs}", "test/**/*.{ex,exs}", "config/**/*.{ex,exs}"],
line_length: 120
]
14 changes: 4 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
FROM prima/elixir-official:1.10.2-1

WORKDIR /code

RUN groupadd -g 1000 app && \
useradd -g 1000 -u 1000 --system --create-home app && \
mix local.hex --force && \
mix local.rebar --force && \
cp -rp /root/.mix /home/app/ && \
chown -R app:app /home/app/.mix
FROM 001575623345.dkr.ecr.eu-west-1.amazonaws.com/elixir:1.10.2-1

# Serve per avere l'owner dei file scritti dal container uguale all'utente Linux sull'host
USER app

WORKDIR /code

COPY ["entrypoint", "/entrypoint"]

ENTRYPOINT ["/entrypoint"]
9 changes: 9 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ defmodule OpentelemetryAbsinthe.MixProject do
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
aliases: aliases(),
description: description()
]
end
Expand All @@ -33,6 +34,14 @@ defmodule OpentelemetryAbsinthe.MixProject do
]
end

defp aliases do
[
"format.all": [
"format mix.exs \"lib/**/*.{ex,exs}\" \"test/**/*.{ex,exs}\" \"priv/**/*.{ex,exs}\" \"config/**/*.{ex,exs}\""
]
]
end

def package do
[
name: "opentelemetry_absinthe",
Expand Down

0 comments on commit 497b093

Please sign in to comment.