Skip to content

Commit 7886090

Browse files
authored
Update to Elixir 1.17.3 OTP 27.1.2 (#45)
1 parent 2d7c252 commit 7886090

File tree

5 files changed

+41
-38
lines changed

5 files changed

+41
-38
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
- name: Install OTP and Elixir
1414
uses: erlef/setup-beam@v1
1515
with:
16-
otp-version: 25.3.1
17-
elixir-version: 1.14.2
16+
otp-version: 27.1.2
17+
elixir-version: 1.17.3
1818

1919
- name: Install dependencies
2020
run: |

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM hexpm/elixir:1.14.2-erlang-25.3.1-alpine-3.17.3 as build
1+
FROM hexpm/elixir:1.17.3-erlang-27.1.2-alpine-3.20.3 as build
22

33
# install build dependencies
44
RUN apk add --no-cache --update git
@@ -30,8 +30,8 @@ COPY rel rel
3030
RUN mix release
3131

3232
# prepare release image
33-
FROM alpine:3.17.3 AS app
34-
RUN apk add --no-cache --update bash openssl libstdc++
33+
FROM alpine:3.20.3 AS app
34+
RUN apk add --no-cache --update bash openssl libgcc libstdc++ ncurses
3535

3636
RUN mkdir /app
3737
WORKDIR /app

config/releases.exs

Lines changed: 0 additions & 31 deletions
This file was deleted.

config/runtime.exs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import Config
2+
3+
if config_env() == :prod do
4+
config :hexdocs,
5+
port: System.fetch_env!("HEXDOCS_PORT"),
6+
hexpm_url: System.fetch_env!("HEXDOCS_HEXPM_URL"),
7+
hexpm_secret: System.fetch_env!("HEXDOCS_HEXPM_SECRET"),
8+
fastly_key: System.fetch_env!("HEXDOCS_FASTLY_KEY"),
9+
fastly_hexdocs: System.fetch_env!("HEXDOCS_FASTLY_HEXDOCS"),
10+
queue_id: System.fetch_env!("HEXDOCS_QUEUE_ID"),
11+
session_key_base: System.fetch_env!("HEXDOCS_SESSION_KEY_BASE"),
12+
session_signing_salt: System.fetch_env!("HEXDOCS_SESSION_SIGNING_SALT"),
13+
session_encryption_salt: System.fetch_env!("HEXDOCS_SESSION_ENCRYPTION_SALT"),
14+
queue_concurrency: String.to_integer(System.fetch_env!("HEXDOCS_QUEUE_CONCURRENCY")),
15+
host: System.fetch_env!("HEXDOCS_HOST")
16+
17+
config :hexdocs, :repo_bucket, name: System.fetch_env!("HEXDOCS_REPO_BUCKET")
18+
19+
config :hexdocs, :docs_private_bucket, name: System.fetch_env!("HEXDOCS_DOCS_PRIVATE_BUCKET")
20+
21+
config :hexdocs, :docs_public_bucket, name: System.fetch_env!("HEXDOCS_DOCS_PUBLIC_BUCKET")
22+
23+
config :ex_aws,
24+
access_key_id: System.fetch_env!("HEXDOCS_AWS_ACCESS_KEY_ID"),
25+
secret_access_key: System.fetch_env!("HEXDOCS_AWS_ACCESS_KEY_SECRET")
26+
27+
config :rollbax,
28+
access_token: System.fetch_env!("HEXDOCS_ROLLBAR_ACCESS_TOKEN")
29+
30+
config :kernel,
31+
inet_dist_listen_min: String.to_integer(System.fetch_env!("BEAM_PORT")),
32+
inet_dist_listen_max: String.to_integer(System.fetch_env!("BEAM_PORT"))
33+
end

mix.exs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule Hexdocs.MixProject do
55
[
66
app: :hexdocs,
77
version: "0.1.0",
8-
elixir: "~> 1.14",
8+
elixir: "~> 1.17",
99
start_permanent: Mix.env() == :prod,
1010
releases: releases(),
1111
deps: deps()
@@ -42,7 +42,8 @@ defmodule Hexdocs.MixProject do
4242
defp releases() do
4343
[
4444
hexdocs: [
45-
include_executables_for: [:unix]
45+
include_executables_for: [:unix],
46+
reboot_system_after_config: true
4647
]
4748
]
4849
end

0 commit comments

Comments
 (0)