Open kevbo-oh opened 8 months ago
OK, so, like I said, I knew I was doing something dumb. I wasn't running the prepared image, but was running the default elixir:1.8-alpine image. When I started the correct image instead, the server started properly.
kwhite@docker:~/git/certstream-server$ sudo docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> 7574a8455bd6 6 hours ago 119MB
elixir 1.8-alpine ca333c791f18 16 months ago 82MB
kwhite@docker:~/git/certstream-server$ sudo docker run -it -p 4000:4000 7574a8455bd6
Maybe this will help someone else figure this out.
For all future MacOS users (and maybe users from other platforms) - the issue probably stems with using the latest Elixir. Going into mix.exs
and changing the EasySSL dependency to: {:easy_ssl, github: "CaliDog/EasySSL", branch: "master"}
worked!
I'm sorry, I'm going to ask stupid questions here.
I'm an old-school Linux admin/app developer. These days, mostly writing code in go. I don't know a thing about elixir or erlang. I also don't use Docker much.
I'm trying to get certstream-server to work, and can't.
At first, I tried to just run the code on a modern Fedora 39 install (Fedora because RHEL and clones don't have elixir available at all). Attempting to run the code in this repo on a modern Elixir fails miserably:
I realize that 1.15 is a lot newer than the 1.8 specified in the Dockerfile. The most recent Fedora that has 1.8 is Fedora 31, which has been EOL for over 3 years. Since I don't know anything about Elixir, I have no idea how to get this package to run. I have no idea what newer version of Elixir should be expected to work.
So, it seems that moving to Docker would be the path of least resistance.
I tried with podman on Fedora 39, but had trouble. To remove podman from the equation, I decided to try real docker on Debian 12. I ended up having exactly the same problems in docker, documented as follows.
I installed a Debian 12 VM, did 'apt-get install docker.io', then this:
I'm surprised that the server doesn't start automatically. I don't understand why it didn't. The Dockerfile sdems to indicate that it should.
So I try again, adding -it:
Well, that's not good.
Again, I'm sorry. I'm sure that everything I'm doing looks really stupid to someone who a) knows Elixir and b) knows Docker. But I hope you can see that for a knowledgeable Linux user who doesn't know either, well....I can't figure out how to get this to run.
Thank you.