-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#' Define default build variables | ||
## source ARGs | ||
ARG GO_VSN='1.22' | ||
ARG ERLANG_VSN='25.3.2.12' | ||
ARG ELIXIR_VSN='1.14.5' | ||
ARG ERLANG_VSN='26.2.5' | ||
ARG ELIXIR_VSN='1.16.3' | ||
## general ARGs | ||
ARG UID='9000' | ||
ARG USER='ejabberd' | ||
|
@@ -12,15 +12,21 @@ ARG VERSION='master' | |
|
||
################################################################################ | ||
#' build elector | ||
FROM docker.io/golang:${GO_VSN}-alpine AS elector | ||
RUN apk -U add --no-cache \ | ||
FROM cgr.dev/chainguard/wolfi-base AS elector | ||
ARG GO_VSN | ||
RUN apk -U upgrade --available && apk add --no-cache \ | ||
build-base \ | ||
git | ||
git \ | ||
go-$GO_VSN | ||
|
||
WORKDIR /elector | ||
RUN git clone https://github.com/sando38/k8s-elector \ | ||
--branch update-packages --depth 1 . | ||
|
||
RUN go get google.golang.org/[email protected] \ | ||
&& go get golang.org/x/[email protected] \ | ||
&& go mod tidy | ||
|
||
RUN make build-linux | ||
|
||
################################################################################ | ||
|
@@ -63,6 +69,8 @@ RUN wget -O - https://github.com/erlang/otp/releases/download/OTP-"$ERLANG_VSN"/ | |
| tar -xzf - | ||
|
||
WORKDIR /otp_src_"$ERLANG_VSN" | ||
## https://github.com/processone/ejabberd/commit/b288d5c76370e44fef3a9caa6fbb888435057a2a | ||
RUN sed -i 's|if(size == 0 && (sql_type == SQL_LONGVARCHAR|if((sql_type == SQL_LONGVARCHAR|g' lib/odbc/c_src/odbcserver.c | ||
RUN ./configure \ | ||
--prefix=/usr \ | ||
--sysconfdir=/etc \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters