Sign inSign up

croudtech/seo-amp-framework-test

By croudtech

Updated almost 7 years ago

Image
0

624

croudtech/seo-amp-framework-test repository overview

Ampomoprhic

Isomorphic AMP project

Docker

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.

Docker Compose (preferred)

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

Docker

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

Manually pushing an image to Docker Hub

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

Test Server

A Web App for containers is setup in the Croud Microsoft Azure account:

https://seo-amp-framework-test.azurewebsites.net/

hosted in https://portal.azure.com/#@croud.com/resource/subscriptions/572689b2-fc41-4630-a19e-b2a9ceebfda0/resourceGroups/croud-agency-team-blue/providers/Microsoft.Web/sites/seo-amp-framework-test/containerSettings

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

Tag summary

Content type

Image

Digest

Size

181 MB

Last updated

almost 7 years ago

docker pull croudtech/seo-amp-framework-test