processone / docker-ejabberd

Set of ejabberd Docker images
95 stars 77 forks source link

before it worked well but now i can not build - returned a non-zero code: 1 #62

Closed hvar90 closed 3 years ago

hvar90 commented 3 years ago

Hi i had this docker file and it worked well but i do not why now it is not working

this is my docker file

FROM ejabberd/mix as builder
ARG VERSION
ENV VERSION=${VERSION:-latest} \
    MIX_ENV=prod
LABEL maintainer="ProcessOne <contact@process-one.net>" \
      product="Ejabberd Community Server builder"

# Get ejabberd sources, dependencies, configuration
RUN git clone https://github.com/processone/ejabberd.git
WORKDIR /ejabberd
COPY vars.config .
COPY rel/*exs rel/
RUN git checkout ${VERSION/latest/HEAD} \
 && mix deps.get \
 && (cd deps/eimp; ./configure)

# Compile
RUN mix do compile, distillery.init, distillery.release --env=prod

# Prepare runtime environment
RUN mkdir runtime \
 && tar -C runtime -zxf _build/prod/rel/ejabberd/releases/*/ejabberd.tar.gz \
 && cd runtime \
 && cp releases/*/start.boot bin \
 && echo 'beam_lib:strip_files(filelib:wildcard("lib/*/ebin/*beam")), init:stop().' | erts*/bin/erl -boot start_clean >/dev/null \
 && mv erts*/bin/* bin \
 && rm -rf releases erts* bin/*src bin/dialyzer bin/typer \
 && rm bin/ejabberd bin/ejabberd.bat \
 && cp -r /ejabberd/sql lib/ejabberd-*/priv

# Runtime container
FROM alpine:3.9
ARG VERSION
ARG VCS_REF
ARG BUILD_DATE
ENV TERM=xterm \
    LC_ALL=C.UTF-8 \
    LANG=en_US.UTF-8 \
    LANGUAGE=en_US.UTF-8 \
    REPLACE_OS_VARS=true \
    HOME=/home/ejabberd \
    VERSION=${VERSION:-latest}
LABEL maintainer="ProcessOne <contact@process-one.net>" \
      product="Ejabberd Community Server Official Docker Image" \
      version=$VERSION \
      org.label-schema.vcs-ref=$VCS_REF \
      org.label-schema.vcs-url="https://github.com/processone/docker-ejabberd" \
      org.label-schema.build-date=$BUILD_DATE \
      org.label-schema.name="Ejabberd Community Server Official Docker Image" \
      org.label-schema.description="Robust, Scalable and Extensible Realtime Server using XMPP, MQTT and SIP" \
      org.label-schema.url="https://www.ejabberd.im/" \
      org.label-schema.vendor="ProcessOne" \
      org.label-schema.version=$VERSION \
      org.label-schema.schema-version="1.0"

# Create directory structure and user for ejabberd
RUN addgroup ejabberd -g 9000 \
 && adduser -s /bin/sh -D -G ejabberd ejabberd -u 9000 \
 && mkdir -p /home/ejabberd/conf /home/ejabberd/database /home/ejabberd/logs /home/ejabberd/upload \
 && chown -R ejabberd:ejabberd /home/ejabberd

# Install required dependencies
RUN apk upgrade --update musl \
 && apk add \
    expat \
    gd \
    jpeg \
    libgd \
    libpng \
    libstdc++ \
    libwebp \
    ncurses-libs \
    openssl \
    sqlite \
    sqlite-libs \
    unixodbc \
    yaml \
    zlib \
 && rm -rf /var/cache/apk/*
# Install ejabberd
WORKDIR $HOME
COPY --from=builder /ejabberd/runtime .
COPY bin/* bin/
RUN chmod 755 bin/ejabberdctl bin/ejabberdapi bin/erl
COPY --chown=ejabberd:ejabberd conf conf/
ADD --chown=ejabberd:ejabberd https://download.process-one.net/cacert.pem conf/cacert.pem
ADD --chown=ejabberd:ejabberd bootstrap.sh /
# Setup runtime environment
USER ejabberd
VOLUME ["$HOME/database","$HOME/conf","$HOME/logs","$HOME/upload"]
EXPOSE 1883 4369-4399 5222 5224 5269 5280 5443

ENTRYPOINT ["/bootstrap.sh"]

and this is the ouput from Console terminal

sudo docker build  --no-cache  -t ejabberd/ecs .
Sending build context to Docker daemon  5.104MB
Step 1/33 : FROM ejabberd/mix as builder
 ---> a73c9846d59f
Step 2/33 : ARG VERSION
 ---> Running in 2a22baf0ee57
Removing intermediate container 2a22baf0ee57
 ---> a6dc03e856fc
Step 3/33 : ENV VERSION=${VERSION:-latest}     MIX_ENV=prod
 ---> Running in ed3414a585ce
Removing intermediate container ed3414a585ce
 ---> 07a849ba8403
Step 4/33 : LABEL maintainer="ProcessOne <contact@process-one.net>"     product="Ejabberd Community Server builder"
 ---> Running in 3c83e3b24818
Removing intermediate container 3c83e3b24818
 ---> 45ce8dab95be
Step 5/33 : RUN git clone https://github.com/processone/ejabberd.git
 ---> Running in ea74bf6e822d
Cloning into 'ejabberd'...
Removing intermediate container ea74bf6e822d
 ---> fb8133cc06bf
Step 6/33 : WORKDIR /ejabberd
 ---> Running in ac63010209c7
Removing intermediate container ac63010209c7
 ---> 7e90be275801
Step 7/33 : COPY vars.config .
 ---> 7f6f4747cc15
Step 8/33 : COPY rel/*exs rel/
 ---> 9c5309c5127f
Step 9/33 : RUN git checkout ${VERSION/latest/HEAD}     && mix deps.get     && (cd deps/eimp; ./configure)
 ---> Running in cb8273c8458e
Your branch is up to date with 'origin/master'.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  artificery 0.4.3
  base64url 0.0.1
  cache_tab 1.0.25
  distillery 2.1.1
  earmark_parser 1.4.10
  eimp 1.0.17
  eredis 1.2.0
  esip 1.0.37
  ex_doc 0.22.2
  ezlib 1.0.8
  fast_tls 1.1.8
  fast_xml 1.1.43
  fast_yaml 1.0.27
  goldrush 0.1.9
  idna 6.0.0
  jiffy 1.0.4
  jose 1.9.0
  lager 3.6.10
  makeup 1.0.3
  makeup_elixir 0.14.1
  mqtree 1.0.10
  nimble_parsec 0.6.0
  p1_acme 1.0.6
  p1_mysql 1.0.16
  p1_oauth2 0.6.7
  p1_pgsql 1.1.10
  p1_utils 1.0.20
  pkix 1.0.6
  sqlite3 1.1.6
  stringprep 1.0.22
  stun 1.0.37
  unicode_util_compat 0.4.1
  xmpp 1.4.9
  yconf 1.0.7
* Getting lager (Hex package)
* Getting p1_utils (Hex package)
* Getting fast_xml (Hex package)
* Getting xmpp (Hex package)
* Getting cache_tab (Hex package)
* Getting stringprep (Hex package)
* Getting fast_yaml (Hex package)
* Getting fast_tls (Hex package)
* Getting stun (Hex package)
* Getting esip (Hex package)
* Getting p1_mysql (Hex package)
* Getting mqtree (Hex package)
* Getting p1_pgsql (Hex package)
* Getting jiffy (Hex package)
* Getting p1_oauth2 (Hex package)
* Getting distillery (Hex package)
* Getting pkix (Hex package)
* Getting ex_doc (Hex package)
* Getting eimp (Hex package)
* Getting base64url (Hex package)
* Getting yconf (Hex package)
* Getting jose (Hex package)
* Getting idna (Hex package)
* Getting p1_acme (Hex package)
* Getting sqlite3 (Hex package)
* Getting eredis (Hex package)
* Getting ezlib (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting earmark_parser (Hex package)
* Getting makeup_elixir (Hex package)
* Getting makeup (Hex package)
* Getting nimble_parsec (Hex package)
* Getting artificery (Hex package)
* Getting goldrush (Hex package)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for ANSI C header files... (cached) yes
checking for erl... /usr/bin/erl
checking for erlc... /usr/bin/erlc
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for library containing gdImageScale... -lgd
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for library containing gdImageCreateFromJpegPtr, gdImageJpegPtr... none required
checking for library containing jpeg_read_header... -ljpeg
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for library containing gdImageCreateFromPngPtr, gdImagePngPtr... none required
checking for library containing png_sig_cmp... -lpng
checking webp/decode.h usability... yes
checking webp/decode.h presence... yes
checking for webp/decode.h... yes
checking for library containing gdImageCreateFromWebpPtr, gdImageWebpPtr... none required
checking for library containing WebPGetInfo... -lwebp
configure: creating ./config.status
config.status: creating vars.config
Removing intermediate container cb8273c8458e
 ---> ec0a84da9fe9
Step 10/33 : RUN mix do compile, distillery.init, distillery.release
 ---> Running in 8d04aabfb7e5
===> Fetching rebar3_hex v6.10.1
===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar
===> Fetching hex_core v0.7.0
===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar
===> Fetching verl v1.0.2
===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling p1_oauth2
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling p1_utils
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar
===> Compiling pc
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling cache_tab
===> Compiling c_src/ets_cache.c
===> Linking /ejabberd/deps/cache_tab/priv/lib/ets_cache.so
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar is up to date, reusing it
===> Compiling pc
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling eimp
===> Compiling c_src/eimp.c
===> Linking /ejabberd/deps/eimp/priv/bin/eimp
===> Compiling eredis
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling pkix
==> base64url (compile)
Compiled src/base64url.erl
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar is up to date, reusing it
===> Compiling pc
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling p1_mysql
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar is up to date, reusing it
===> Compiling pc
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling p1_pgsql
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar is up to date, reusing it
===> Compiling pc
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling stringprep
===> Compiling c_src/stringprep.cpp
===> Linking /ejabberd/deps/stringprep/priv/lib/stringprep.so
===> Compiling unicode_util_compat
===> Compiling idna
==> jose
Compiling 90 files (.erl)
Compiling 8 files (.ex)
warning: function Poison.EncodeError.exception/1 is undefined (module Poison.EncodeError is not available)
  lib/jose/poison/lexical_encoder.ex:8

Generated jose app
===> Compiling jiffy
Compiling c_src/decoder.c
Compiling c_src/encoder.c
Compiling c_src/jiffy.c
Compiling c_src/termstack.c
Compiling c_src/utf8.c
Compiling c_src/util.c
Compiling c_src/doubles.cc
Compiling c_src/objects.cc
Compiling c_src/double-conversion/bignum-dtoa.cc
Compiling c_src/double-conversion/bignum.cc
Compiling c_src/double-conversion/cached-powers.cc
Compiling c_src/double-conversion/diy-fp.cc
Compiling c_src/double-conversion/double-conversion.cc
Compiling c_src/double-conversion/fast-dtoa.cc
Compiling c_src/double-conversion/fixed-dtoa.cc
Compiling c_src/double-conversion/strtod.cc
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar is up to date, reusing it
===> Compiling pc
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling ezlib
===> Compiling c_src/ezlib_drv.c
===> Linking /ejabberd/deps/ezlib/priv/lib/ezlib_drv.so
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar is up to date, reusing it
===> Compiling pc
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling fast_tls
===> Compiling c_src/fast_tls.c
===> Compiling c_src/ioqueue.c
===> Compiling c_src/p1_sha.c
===> Linking /ejabberd/deps/fast_tls/priv/lib/fast_tls.so
===> Linking /ejabberd/deps/fast_tls/priv/lib/p1_sha.so
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar is up to date, reusing it
===> Compiling pc
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling sqlite3
===> Compiling c_src/sqlite3_drv.c
===> Linking /ejabberd/deps/sqlite3/priv/sqlite3_drv.so
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar is up to date, reusing it
===> Compiling pc
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling mqtree
===> Compiling c_src/mqtree.c
===> Linking /ejabberd/deps/mqtree/priv/lib/mqtree.so
===> Compiling goldrush
===> Compiling lager
==> artificery
Compiling 10 files (.ex)
Generated artificery app
==> distillery
Compiling 33 files (.ex)
Generated distillery app
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar is up to date, reusing it
===> Compiling pc
===> Fetching coveralls v2.2.0
===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/coveralls-2.2.0.tar
===> Fetching jsx v2.10.0
===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/jsx-2.10.0.tar
===> Compiling jsx
===> Compiling coveralls
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling fast_yaml
===> Compiling c_src/fast_yaml.c
===> Linking /ejabberd/deps/fast_yaml/priv/lib/fast_yaml.so
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling yconf
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling p1_acme
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar is up to date, reusing it
===> Compiling pc
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling fast_xml
===> Compiling c_src/fxml.c
===> Compiling c_src/fxml_stream.c
===> Linking /ejabberd/deps/fast_xml/priv/lib/fxml.so
===> Linking /ejabberd/deps/fast_xml/priv/lib/fxml_stream.so
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar is up to date, reusing it
===> Compiling pc
===> Fetching provider_asn1 v0.2.3
===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/provider_asn1-0.2.3.tar
===> Compiling provider_asn1
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling xmpp
===> Compiling c_src/jid.c
===> Compiling c_src/xmpp_uri.c
===> Compiling c_src/xmpp_lang.c
===> Linking /ejabberd/deps/xmpp/priv/lib/jid.so
===> Linking /ejabberd/deps/xmpp/priv/lib/xmpp_uri.so
===> Linking /ejabberd/deps/xmpp/priv/lib/xmpp_lang.so
===> Generating ASN.1 files.
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling stun
===> Fetching rebar3_hex v6.10.1
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.10.1.tar is up to date, reusing it
===> Fetching hex_core v0.7.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/hex_core-0.7.0.tar is up to date, reusing it
===> Fetching verl v1.0.2
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/verl-1.0.2.tar is up to date, reusing it
===> Compiling verl
===> Compiling hex_core
===> Compiling rebar3_hex
===> Fetching pc v1.11.0
===> Version cached at /root/.cache/rebar3/hex/hexpm/packages/pc-1.11.0.tar is up to date, reusing it
===> Compiling pc
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling esip
===> Compiling c_src/esip_codec.c
===> Linking /ejabberd/deps/esip/priv/lib/esip_drv.so
==> ejabberd
Compiling 1 file (.yrl)
Compiling 267 files (.erl)
src/mod_sip.erl:46: Warning: behaviour gen_mod undefined
src/mod_mam.erl:690: field flippage undefined in record mam_query
src/mod_mam.erl:693: variable 'RSM' is unbound
src/mod_mam.erl:694: variable 'FlipPage' is unbound
src/mod_mam_mnesia.erl:27: Warning: behaviour mod_mam undefined
src/mod_mam_sql.erl:28: Warning: behaviour mod_mam undefined
The command '/bin/sh -c mix do compile, distillery.init, distillery.release --env=prod' returned a non-zero code: 1
hvar90 commented 3 years ago

i think there is a problem about version compatibilities like this case https://github.com/bitwalker/distillery/issues/721

hvar90 commented 3 years ago

i try to use the last version of elixir and i get this error

Step 1/7 : FROM alpine:3.11
3.11: Pulling from library/alpine
cbdbe7a5bc2a: Pull complete 
Digest: sha256:9a839e63dad54c3a6d1834e29692c8492d93f90c59c978c1ed79109ea4fb9a54
Status: Downloaded newer image for alpine:3.11
 ---> f70734b6a266
Step 2/7 : LABEL maintainer="ProcessOne <contact@process-one.net>"       product="Ejabberd mix development environment"
 ---> Running in 93ee9b5e27a7
Removing intermediate container 93ee9b5e27a7
 ---> 80f993763fa9
Step 3/7 : RUN  apk add elixir=1.11.1
 ---> Running in 595dd46d3f9b
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  elixir-1.9.2-r0:
    breaks: world[elixir=1.11.1]
The command '/bin/sh -c apk add elixir=1.11.1' returned a non-zero code: 1
paulmenzel commented 3 years ago

i had this docker file and it worked well but i do not why now it is not working

this is my docker file

[…]

(Please attach the file (and logs) next time instead of pasting it.)

Where did you get the Dockerfile from? Why don’t you just use the current Dockerfile? The Alpine version was updated for example.

[…]

paulmenzel commented 3 years ago

Also, please give the command, how you build the image. I recommend to use https://github.com/processone/docker-ejabberd/blob/master/ecs/build.sh.

hvar90 commented 3 years ago

i had this docker file and it worked well but i do not why now it is not working this is my docker file

[…]

(Please attach the file (and logs) next time instead of pasting it.)

Where did you get the Dockerfile from? Why don’t you just use the current Dockerfile? The Alpine version was updated for example.

[…]

thanks for answer i tried with the current dockerFile and i got the same error the comman that i used was sudo docker build --no-cache -t ejabberd/ecs .

i will try with https://github.com/processone/docker-ejabberd/blob/master/ecs/build.sh to check if it works

hvar90 commented 3 years ago

i used https://github.com/processone/docker-ejabberd/blob/master/ecs/build.sh and now i have a new error message

Generated ejabberd app
** (Mix) The task "distillery.init" could not be found
The command '/bin/sh -c mix do compile, distillery.init, distillery.release --env=prod' returned a non-zero code: 1
Error response from daemon: No such image: ejabberd/ecs:19.05

command used = sudo ./build.sh 19.05

my dockerFile https://www.dropbox.com/s/do6ck5kqyqsbsa5/dockerFile.text?dl=0 Logs of Terminal https://www.dropbox.com/s/hv1b48dx95p3g3o/dockerLog.text?dl=0

hvar90 commented 3 years ago

now i tried with this command sudo ./build.sh latest and i got a new error message

Compiling 1 file (.yrl)
Compiling 267 files (.erl)
src/mod_sip.erl:46: Warning: behaviour gen_mod undefined
src/mod_mam.erl:690: field flippage undefined in record mam_query
src/mod_mam.erl:693: variable 'RSM' is unbound
src/mod_mam.erl:694: variable 'FlipPage' is unbound
src/mod_mam_mnesia.erl:27: Warning: behaviour mod_mam undefined
src/mod_mam_sql.erl:28: Warning: behaviour mod_mam undefined
The command '/bin/sh -c mix do compile, distillery.init, distillery.release --env=prod' returned a non-zero code: 1

here the new log file: https://www.dropbox.com/s/7cnlp6lec5khrgw/dockerLog%20%28latest%29.text?dl=0

hvar90 commented 3 years ago

with sudo ./build.sh 19.09.1 made the build !!

I will try with other more recent versions

hvar90 commented 3 years ago

with ./build.sh 20.07 worked well too !! i will close this issue