Hi!
I've almost gone insane today after compiling the 'Appfile' several times both on Windows and Linux with 'php_version = 7.0' customization and your latest binaries. I've discovered another wrong thing in the Otto documentation!
In the
documentation we have:
application {
name = "otto-test"
type = "php"
}
customization "php" {
php_version = "7.0"
}
But the correct way to declare this customization is:
application {
name = "otto-test"
type = "php"
}
customization {
php_version = "7.0"
}
So after this change I've managed to compile the application, but PHP 7 is not installed when running 'otto dev':
==> default: [otto] Installing PHP Version 7.0
==> default: ERROR at /otto/scriptpacks/PHP/STDLIB/execute.sh:5; Last logs:
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:43 precise64 otto: Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:43 precise64 otto: Hit http://us.archive.ubuntu.com precise/restricted Translation-en
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:43 precise64 otto: Hit http://us.archive.ubuntu.com precise/universe Translation-en
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:44 precise64 otto: Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:44 precise64 otto: Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:44 precise64 otto: Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:44 precise64 otto: Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:44 precise64 otto: Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:44 precise64 otto: Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:44 precise64 otto: Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:44 precise64 otto: Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:52 precise64 otto: Fetched 5,319 kB in 22s (241 kB/s)
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:52 precise64 otto: W: Failed to fetch http://ppa.launchpad.net/ondrej/php-7.0/ubuntu/dists/precise/main/source/Sources 404 Not Found
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:52 precise64 otto:
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:52 precise64 otto: W: Failed to fetch http://ppa.launchpad.net/ondrej/php-7.0/ubuntu/dists/precise/main/binary-amd64/Packages 404 Not Found
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:52 precise64 otto:
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:52 precise64 otto: W: Failed to fetch http://ppa.launchpad.net/ondrej/php-7.0/ubuntu/dists/precise/main/binary-i386/Packages 404 Not Found
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:52 precise64 otto:
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:52 precise64 otto: E: Some index files failed to download. They have been ignored, or old ones used instead.
==> default: May 31 14:29:53 precise64 otto: May 31 14:29:52 precise64 otto: ERROR at /otto/scriptpacks/PHP/PHP/install.sh:56; Last logs:
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
Error building dev environment: Error building dev environment layers: Error executing Vagrant: exit status 1
The error messages from Vagrant are usually very informative.
Please read it carefully and fix any issues it mentions. If
the message isn't clear, please report this to the Otto project.
Looks like there is no PHP 7 package for Ubuntu Precise, also 'php-7.0' should be 'php-zts':
http://ppa.launchpad.net/ondrej/php-zts/ubuntu/dists/This script is definitely wrong:
https://github.com/hashicorp/otto/blob/master/builtin/scriptpack/php/data/install.shI've also replied to your Gist regarding the other thing, still no luck with compiling a 'bento/ubuntu-14.04' box.
I don't use Docker, when I have time I will give it a go.
Thanks,
Mihail