Sign inSign up

appsoa/docker-centos-webapp-magento

By appsoa

Updated over 9 years ago

Magento 2.1.4+ running on CentOS 7 + php70-fpm & nginx

Image
1

10K+

appsoa/docker-centos-webapp-magento repository overview

Magento 2.1.4+/- @ CentOS & nginx + php70-fpm

docker

Download Magento Source into persistent volume

You should only have to do this once.

WARNING: You run the risk of overwriting existing data & changes!

VERSION=2.1.4

curl -q https://codeload.github.com/magento/magento2/tar.gz/$VERSION \
    -o $VERSION.tar.gz &&
        
tar -xzf $VERSION.tar.gz -C src/www \
    --strip-components=1 \
    
rm -rf $VERSION.tar.gz

Launch docker container
docker run  -i -d -p 80:80  \
            -v src:/www     \
            --name magento  \
            appsoa/docker-centos-webapp-magento:latest
Install Google Cloud SDK
curl https://sdk.cloud.google.com | bash
exec -l zsh 

gcloud config set compute/zone us-central1-a && 

gcloud components   install -q  \
                    beta        \
                    kubectl     \
                    docker-credential-gcr &&
                    
gcloud auth activate-service-account \
            [email protected] \
            --key-file service_account.json &&
            
gcloud auth application-default login 

gcloud  container \ 
        clusters \
        get-credentials \
        cluster-1 &&
        
kubectl get svc

Create persistent disk in Google Cloud Platform
gcloud  compute disks create            \
        magento-persistent-disk-www     \
        --size 10GB                     \
        --zone us-central1-a            \
        --type pd-ssd                   \
        --description 'Persistent disk for /www volume including the magento source code.' 

Example results:

Created [https://www.googleapis.com/compute/v1/projects/hale-proposal-159523/zones/us-central1-a/disks/magento-persistent-disk-www].
NAME                         ZONE           SIZE_GB  TYPE    STATUS
magento-persistent-disk-www  us-central1-a  10       pd-ssd  READY

Tag summary

Content type

Image

Digest

Size

257.1 MB

Last updated

over 9 years ago

docker pull appsoa/docker-centos-webapp-magento