Isomorphic AMP project
The site can be run and deployed as a docker image. The Docker image can be pushed to DockerHub for deployment in a cloud hosted Docker container.
To start debugging with docker compose, run the following command:
docker-compose up
The current folder is mapped to /var/www/html/ so any changes are immediately reflected
The docker-compose file maps container port 80 to host port 8080, so you can open a browser and navigate to:
http://localhost:8080
To build a container and run without docker-compose:
docker build -t croudtech/seo-amp-framework-test .
docker run -p 127.0.0.1:8080:80/tcp -d --name seo-amp-run seo-amp-framework-test
docker rm -f seo-amp-run
To build and push the an image to docker hub, run:
docker build -t croudtech/seo-amp-framework-test .
docker login (if not already logged in)
docker push croudtech/seo-amp-framework-test
A Web App for containers is setup in the Croud Microsoft Azure account:
https://seo-amp-framework-test.azurewebsites.net/
The Test Server is setup to perform CI/CD with DockerHub - any commit to the master branch of this repository will kick off a docker image build and trigger a WebHook. The WebHook causes the Azure Server to pull the latest image. It takes approximately 4 minutes to download and start a new container with the latest image. (server is free)
Build Status: https://cloud.docker.com/u/croudtech/repository/docker/croudtech/seo-amp-framework-test/general Azure Docs: https://docs.microsoft.com/en-us/azure/app-service/containers/app-service-linux-ci-cd
Content type
Image
Digest
Size
181 MB
Last updated
almost 7 years ago
docker pull croudtech/seo-amp-framework-test