Hallo Ich möchte Goofys auf AWS ElasticBeanstalk php 7.0-Umgebung verwenden.
Ich erstelle .ebextentions/00_install_goofy.config.Warum kann ich PATH nicht per Befehl exportieren .exextensions config
(golang von binären installieren, da golang Version von yum alt ist.
packages:
yum:
fuse: []
commands:
100_install_golang_01:
command: wget https\://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz
100_install_golang_02:
command: tar -C /usr/local -xzf go1.9.linux-amd64.tar.gz
100_install_golang_03:
command: export GOROOT=/usr/local/go
test: [ -z "$GOROOT" ]
100_install_golang_04:
command: export GOPATH=/home/ec2-user/go
test: [ -z "$GOPATH" ]
100_install_golang_05:
command: export PATH=$PATH\:$GOROOT/bin\:$GOPATH/bin
100_install_golang_06:
command: echo $GOPATH > gopath
Aber 100_install_golang_03 nicht gut ...
Test for Command 100_install_golang_03
[2017-09-09T14:39:52.422Z] INFO [3034] - [Application deployment [email protected]/StartupStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild/prebuild_1_yubion_website] : Completed activity.
[2017-09-09T14:39:52.422Z] INFO [3034] - [Application deployment [email protected]/StartupStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild] : Activity execution failed, because: [Errno 2] No such file or directory (ElasticBeanstalk::ExternalInvocationError)
kippe ich Export env und Pfad. Kann ich PATH auf .ebextensions?
Oder gibt es eine bessere Art und Weise Goofys auf ElasticBeanstalk automatisch zu installieren.
Warum nicht Sie definieren die env Variablen durch die EB-Konfigurationsdatei, anstatt auf jeder Instanz Befehle starten? – eqperes
Vielen Dank für Ihren Kommentar. Ich möchte S3 Bucket vor der Installation installieren und mounten. – hani