azukiapp/erlang
Docker image to run Erlang by Azuki - http://azk.io
1.1K
Base docker image to run Erlang applications in azk.io
Image content use http://images.azk.io/#/alpine
azk
Example of using that image with azk:
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
"my-app": {
// More info about erlang image: http://images.azk.io/#/erlang?from=images-azkfile-erlang
image: {"docker": "azukiapp/erlang:18"},
// Steps to execute before running instances
provision: [
],
workdir: "/azk/#{manifest.dir}",
shell: "/bin/bash",
// command: "erl ...",
wait: {"retry": 20, "timeout": 1000},
mounts: {
'/azk/#{manifest.dir}': path("."),
},
scalable: {"default": 1},
http: {
domains: [ "#{system.name}.#{azk.default_domain}" ]
},
ports: {
// http: "8080"
},
envs: {
// set instances variables
EXAMPLE: "value",
},
},
});
Dockerfile
Install more packages:
# Dockerfile
FROM azukiapp/erlang:18
# install postgressql-client
RUN apk add --update postgresql-client \
&& rm -rf /var/cache/apk/* /var/tmp/* \
CMD ["erl"]
To build the image:
$ docker build -t azukiapp/erlang:18 18
To more packages, access alpine packages
docker
To create the image azukiapp/erlang
, execute the following command on the erlang folder:
$ docker build -t azukiapp/erlang:18 18
To run erl console:
$ docker run -d -t -i azukiapp/erlang:18 erl
Obs: Very slow process
$ make test
# with azk
$ azk logs my-app
# with docker
$ docker logs <CONTAINER_ID>
Azuki Dockerfiles distributed under the Apache License.
docker pull azukiapp/erlang