Code Monkey home page Code Monkey logo

docker-erlang-example's Issues

container fails to start

I get errors like these in syslog, possibly related to the issue reported at erlang/docker-erlang-otp#235

Jun 26 00:39:20 savile d98dae739d24[32358]: No cookie is set or found. This limits the scripts functionality, installing, upgrading, rpc and ge
tting a list of versions will not work.
Jun 26 00:39:20 savile d98dae739d24[32358]: dlsym: Resource temporarily unavailable
Jun 26 00:39:20 savile d98dae739d24[32358]: Aborted (core dumped)

Error loading shared library libstdc++.so.6

I followed the readme, but found that when I ran the container I got this error:

$ docker run -p 8080:8080 --rm foo
Error loading shared library libstdc++.so.6: No such file or directory (needed by /log_json/erts-13.0/bin/beam.smp)
Error loading shared library libgcc_s.so.1: No such file or directory (needed by /log_json/erts-13.0/bin/beam.smp)
Error relocating /log_json/erts-13.0/bin/beam.smp: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm: symbol not found
...

it seems like you need this now:

RUN apk add --no-cache openssl ncurses-libs libstdc++

(using erlang:25-alpine)

Use SSH to debug images

Add instructions on how to include and configure the ssh application in an image for easy debugging.

The "docker build -t erlang-dockerwatch ." command fails

Steps to reproduce :

  1. Clone the repository
  2. $ cd docker-erlang-example
  3. $ docker build -t erlang-dockerwatch .

Output:
...
Step 5/12 : WORKDIR dockerwatch
---> Running in 5b626d1d71c2
Removing intermediate container 5b626d1d71c2
---> e9c0d03312fa
Step 6/12 : RUN rebar3 as prod release
---> Running in 1f17811ab52f
===> Verifying dependencies...
===> Fetching cowboy v2.5.0
===> Fetching jsone v1.4.7
===> Fetching cowlib v2.6.0
===> Fetching ranch v1.6.2
===> Analyzing applications...
===> Compiling jsone
===> Compiling cowlib
===> Compiling ranch
===> Compiling cowboy
===> Analyzing applications...
===> Compiling dockerwatch
===> Assembling release "dockerwatch"-1.0.0...
===> Uncaught error in rebar_core. Run with DIAGNOSTIC=1 to see stacktrace or consult rebar3.crashdump
===> When submitting a bug report, please include the output of rebar3 report "your command"
The command '/bin/sh -c rebar3 as prod release' returned a non-zero code: 1

Container will not start

sys log shows the following;

Jun 4 09:35:05 sulaco 3006f477dede[2167]: Error loading shared library libstdc++.so.6: No such file or directory (needed by /dockerwatch/erts-12.0.2/bin/beam.smp) Jun 4 09:35:05 sulaco 3006f477dede[2167]: Error loading shared library libgcc_s.so.1: No such file or directory (needed by /dockerwatch/erts-12.0.2/bin/beam.smp)

Raising PR to fix docker image.

minikube-distributed example is too limited

I am currently trying to get an erlang based application running that requires a minimum of about 20 pods.
(sorry I cannot show the code ATM)

The problem is the list of ports that you need to open, configure individually and apply as lmits to each of the kernes. It makes for exeedingly long service and deployment k8s resource statements.

I think the example should at least show how to use this with a HA/load-balancing setup 3 or more backend pods.

Hello World

A idéia dessa primeiro escopo é criar um command line que envia uma msg Hello World via Telegram com as seguintes características:

  • Deploy com 3 instancias da aplicação em Regiões diferentes.
  • Criar um script de CHAOS monkey para testar
  • Ser possível fazer hot reload.

docker alpine cowboy

Hello,

Thank you for your great work. Working for some time with Yaws, I was curious about Cowboy. I managed to build a container based on your Dockerfile and create certs.

docker@boot2docker:/c/kklepper/test/cowboy$ docker run --rm -v /tmp:/tmp -v /www:/www -p 8012:8080 --name cb  kklepper/cowboy:alpine
No cookie is set or found. This limits the scripts functionality, installing, upgrading, rpc and getting a list of versions will not work.
Exec: /dockerwatch/erts-10.6.4/bin/erlexec -noshell -noinput +Bd -boot /dockerwatch/releases/1.0.0/dockerwatch -mode embedded -boot_var ERTS_LIB_DIR /dockerwatch/lib -config /dockerwatch/releases/1.0.0/sys.config -args_file /dockerwatch/releases/1.0.0/vm.args -- foreground
Root: /dockerwatch
/dockerwatch

I do not know what dockerwatch is or does, but the following worked for me:

docker@boot2docker:/mnt/sde1/tmp$ curl localhost:8012
<html>
    <head>
    <meta charset="utf-8">
    <title>dockerwatch</title>
    </head><ul>
</ul>
</body>

This looked promising.

I hoped to be able to point the root to www, but I didn't know how. I tried to find the file which was invoked with that empty and incomplete unordered list, but grep -ril "<title>dockerwatch</title>" just kept working with no output for hours.

Next I tried to redefine Dockerfile:

# test
WORKDIR www
#CMD ["/dockerwatch/bin/dockerwatch", "foreground"]
tail -f /tmp/cookie.txt

but this trick didn't work either. Where does Cowboy come into play?

To make a long story short: I have no idea what I'm doing here. Could you please help me?

I just want to use Cowboy like Caddy or Apache or NGINX or Yaws. How am I going to do that?

I don't know anything about Elixir and I sure don't want to use a monster container like the one from 99s (ontouchstart/cowboy 1.47GB, https://github.com/ninenines/cowboy).

After many hours of research for something which should be very easy to find (docker alpine cowboy) I run out of ideas.

Thank you very much.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.