Publish erlang-builder and erlang-runtime as :latest, use them in prod and API test builds, auto-collect NIF libs, and sync CI to pull/push bases before eventhub build. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,21 +1,15 @@
|
||||
# ============================================================
|
||||
# Одноэтапный Dockerfile
|
||||
# ============================================================
|
||||
FROM erlang:28-alpine
|
||||
# API common_test — только builder-стадия (полный OTP + компиляторы).
|
||||
ARG ERLANG_BUILDER_IMAGE=git.sabilin.com/eventhub/erlang-builder:latest
|
||||
FROM ${ERLANG_BUILDER_IMAGE}
|
||||
|
||||
# Устанавливаем инструменты для сборки и runtime-зависимости
|
||||
RUN apk add \
|
||||
make musl-dev \
|
||||
rust cargo openssl-dev libsodium-dev
|
||||
WORKDIR /app
|
||||
|
||||
# Копируем конфигурацию и исходники
|
||||
COPY rebar.config ./
|
||||
COPY include/ include/
|
||||
COPY src/ src/
|
||||
COPY test/api_*_SUITE.erl test/
|
||||
COPY test/api/ test/api/
|
||||
|
||||
# Компилируем и запускаем тесты
|
||||
RUN rebar3 compile
|
||||
|
||||
CMD rebar3 ct --sname ci_api_test -v
|
||||
CMD ["rebar3", "ct", "--sname", "ci_api_test", "-v"]
|
||||
|
||||
Reference in New Issue
Block a user