azukiapp/azk

Redis image

Closed this issue · 10 comments

patie commented

Hi,

your project looks good, how about redis image? I see in example redis, but its no longer in docker hub and github repo.

thanks for explanation

hi @patie, tks.

You can use https://hub.docker.com/r/_/redis/. Which of our example is using an image that does not exist?

patie commented

@gullitmiranda for example in http://azk.io/#azkfile on homepage there is non-existing azukiapp/redis

database: {
image: { docker: "azukiapp/redis" },
mounts: { "/data": persistent("data") },
ports: {
data: "6379/tcp",
},
export_envs: {
REDIS_URL: "redis://#{net.host}:#{net.port.data}/database",
},
}

its https://hub.docker.com/r/_/redis/ compatible with yours images? thx

Sorry, I thought we had already fixed it. I will make the correction now.

The images of docker mostly are compatible with the azk. So far, I have not found any that is not compatible.

patie commented

i try it later today, i write here if its working or not

ok, I'll wait then answer.

I'm using redis but after azk 0.16.1 I can't start the server.

zk: Run system `redis` return: (1), for command: redis-server -c redis-server --bind 0.0.0.0:
azk:  .redis [log] >  1:C 09 Nov 19:08:23.894 # Fatal error, can't open config file '-c'
azk:  .redis [log] >

azk: Look for azk start troubleshooting documentation for more info at: http://bit.ly/azk_start_troubleshooting

azk: Due to the above error azk will stop all instances already running.

Using this on Azkfile:

redis: {
  scalable           : false,
  image              : { docker: "library/redis" },
  mounts             : { "/data" : persistent("redis-#{manifest.dir}") },
  export_envs        : {
    REDIS_PORT: "#{net.port[6379]}",
    REDIS_HOST: "#{net.host}",
  },
  http               : { domains: ["#{manifest.dir}-#{system.name}.#{azk.default_domain}"] },
  wait               : { retry: 20, timeout: 2000 },
  ports              : { data: "6379/tcp", },
  command            : "redis-server --bind 0.0.0.0"
}

Works removing the command line. 😄

As we talked at Gitter (in pt-BR), this is a critical bug. I will mark it as bug.

closed by #564