Salut Je veux utiliser goofys sur l'environnement AWS ElasticBeanstalk php 7.0.
Je crée .ebextentions/00_install_goofy.config.Pourquoi je ne peux pas exporter PATH par la commande .ebextensions config
(installation golang de binaire parce que la version golang par Yum est vieux.
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
Mais 100_install_golang_03 pas bien travailler ...
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)
Je ne peux pas env à l'exportation et le chemin. Puis-je mettre PATH sur .ebextensions?
Ou est-il une meilleure façon d'installer Goofys sur ElasticBeanstalk automatiquement.
Pourquoi définissez-vous pas les variables d'environnement par le fichier de configuration EB, au lieu de lancer des commandes sur chaque instance? – eqperes
Merci pour votre commentaire. Je veux installer et monter le godet S3 avant l'application. – hani