Closed baldarn closed 4 months ago
still WIP.
will have to test this and volumes configurations ;)
@alexbelgium I can't understand why Codacy Static Code Analysis
is failing. why is that?
Really nice thanks! I'm off for a couple days and will gladly help when I'll be back if needed!
@alexbelgium I can't understand why
Codacy Static Code Analysis
is failing. why is that?
I think codacy is
@alexbelgium I can't understand why
Codacy Static Code Analysis
is failing. why is that?
Actually it is useless things that I have white listed on my own codacy but it seems it doesn't transfer to your checks... So you can just ignore it :)
the sad thing is that I can't try that. could we try and merge this to see if this is working if you thing everything is ok?
Oh sorry I missed your message i'll merge right now!!
And thanks very much for the coffees on PayPal!
Hi! I've tested it but you miss an instruction to start the actual app : you should have a file in rootfs/etc/cont-init.d/99-run.sh that would contain the startup code
For the moment it just builds and executes the basic scripts but the app doesn't start. The best way to see what to put in the run.sh file is to check the entrypoint or cmd of the initial dockerfile
Here is the command "./docker/prod/entrypoint.sh" taken from https://hub.docker.com/layers/openproject/openproject/dev/images/sha256-3eeb74aa73c6191c397c9c31c77176f350dc6d0722551dbd8fa3ad964ebbb8a2?context=explore
It actually is likely "exec /app/docker/prod/supervisord /app/docker/prod/entrypoint.sh" but then it says an error about file but found while starting
You can troubleshoot and test by adding in the sh file of your /config either sleep infinity and then test commands from portainer console, or
#!/usr/bin/env bashio
# shellcheck shell=bash
echo "Starting"
#find / -name entrypoint.sh 2>/dev/null
#./docker/prod/entrypoint.sh
cp /app/docker/prod/supervisord /config/a
cp /app/docker/prod/entrypoint.sh /config/b
/./app/docker/prod/supervisord /app/docker/prod/entrypoint.sh
what if I remove the ENTRYPOINT [ "/ha_entrypoint.sh" ]
?
what are the pro and cons?
it all depends how is built the upstream container :
For you it would be :
RUN sed -i "1a /./ha_entrypoint.sh" /app/docker/prod/entrypoint.sh
btw if you want to launch yourself the building of a new addon version you can just open a new pull request with the changes and write /automerge
in the comments
I will try with the third option and use the magic /automerge
to see if something starts ;)
I have the project of add openproject, so I added openproject to the project
XD