plesk/docker

Error when building dockerfile

Closed this issue · 5 comments

Error logs below:
The changes were applied successfully.

[2019-07-09 11:39:31.904] ERR [panel] No such file or directory
[2019-07-09 11:39:50.579] ERR [panel] No such file or directory
[2019-07-09 11:39:58.483] ERR [panel] No such file or directory

SUCCESS: Plesk initialization is completed.
Command -i requires parameters
Command -i requires parameters

exit status 1
The command '/bin/sh -c apt-get update && apt-get install -y wget libicu60 tzdata && wget -q -O /root/ai http://autoinstall.plesk.com/plesk-installer && bash /root/ai --all-versions --select-product-id=plesk --select-release-latest --tier testing --install-component panel --install-component phpgroup --install-component web-hosting --install-component mod_fcgid --install-component proftpd --install-component webservers --install-component nginx --install-component mysqlgroup --install-component php5.6 --install-component php7.2 --install-component l10n --install-component heavy-metal-skin --install-component git --install-component passenger --install-component ruby --install-component nodejs --install-component wp-toolkit && plesk bin init_conf --init -email changeme@example.com -passwd changeme -hostname-not-required && plesk bin license -i $LICENSE && plesk bin settings --set admin_info_not_required=true && plesk bin poweruser --off && plesk bin extension --install-url https://github.com/plesk/ext-default-login/releases/download/1.0-1/default-login-1.0-1.zip && plesk bin cloning -u -prepare-public-image true -reset-license false -reset-init-conf false -skip-update true && plesk bin ipmanage --auto-remap-ip-addresses true && echo DOCKER > /usr/local/psa/var/cloud_id && touch /root/set_admin_password && apt-get clean && rm -rf /root/ai /root/parallels' returned a non-zero code: 1

Hello, @shakidev. I suppose, it's the plesk bin license -i $LICENSE command that failed. What's in your $LICENSE environment variable?

i'am unable to build the image, even if i set the key as variable or replace the variable with the key.

it allways ends with the error from above... and:
SUCCESS: Plesk initialization is completed.
The value specified with the --install command is neither a file nor an activation code.

exit status 1

any suggestions, of what i'am doing wrong?

@anymorrow this is not an exact answer to your question, but you can use a pre-built Docker image, see https://docs.plesk.com/try-plesk-now/#plesk-in-docker

Thanks for your answer, but i allready did - i have other problems there, i need a envoirement with BIND installed. And in the allready finished container, there is no bind included. Bind Installation can be done, but the log is not working and so on....

So i was wondering why i'am unable to build any of the Templates here... tried 17.5/17.8...

I've updated README.md to reflect the proper way of building image.
Try (replace dots with license code): docker build --no-cache --build-arg "LICENSE=..." -t plesk/plesk .