Dockerized Chicago Boss web framework
Docker container images that include Chicago Boss
Use it to build and deploy web apps using Dockerized Chicago Boss. Use it to develop an Erlang web app using Chicago Boss without worrying about any of the setup.
The idea is that you use this image as the foundation for another image that runs your app
Create a supervisord.conf file:
[supervisord]
nodaemon=true
[program:app]
command=/app/init-dev.sh
autostart=true
autorestart=true
priority=0
stderr_logfile=/var/log/supervisor_logs/app.err.log
stdout_logfile=/var/log/supervisor_logs/app.out.log
NOTE: This is probably not ideal, but I'm not sure how else to keep the instance alive throughout development.
FROM cb
# INSTALL APP
COPY ./app /app # `make app PROJECT=app`
WORKDIR /app
EXPOSE 8001
# INSTALL SUPERVISOR
RUN apt-get update \
&& apt-get install -y supervisor \
&& mkdir /var/log/supervisor_logs
COPY ./supervisor.conf /etc/supervisor/conf.d/supervisor.conf
CMD ["/usr/bin/supervisord"]
docker build -t app-image .
docker run -v /path/to/your/app:/app -p 8001:8001 -d --name app app-image
docker exec -it app /bin/bash
/path/to/your/app directory and see that your changes are reflected in the containerContent type
Image
Digest
sha256:a49f8b778…
Size
-
Last updated
over 11 years ago
docker pull artburkart/docker-chicagoboss