Docker image to run Linux based applications by Azuki - http://azk.io
2.1K
Base docker image to run Linux applications in azk
Database:
azkExample of using this image with azk:
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
"my-app": {
// Dependent systems
depends: [], // postgres, mysql, mongodb ...
// More images: http://images.azk.io
image: {"docker": "azukiapp/web-based"},
// Steps to execute before running instances
provision: [
// "./script.sh",
],
workdir: "/azk/#{manifest.dir}",
shell: "/bin/bash",
command: "# command to run app. i.g.: `./start.sh`",
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",
},
},
});
dockerTo create the image azukiapp/web-based, execute the following command on the docker-web-based folder:
$ docker build -t azukiapp/web-based .
To run the image and bind to port 8080:
$ docker run -it --rm --name my-app -p 8080:8080 -v "$PWD":/myapp -w /myapp azukiapp/web-based script.sh
# with azk
$ azk logs my-app
# with docker
$ docker logs <CONTAINER_ID>
Azuki Dockerfiles distributed under the Apache License.
Content type
Image
Digest
sha256:2f72e0cc1…
Size
278 MB
Last updated
over 10 years ago
docker pull azukiapp/web-based