Opidio Landing Page
The Opidio Projects:
The landing page is built as a container using Docker in order
to support simple builds and development. Therefore, a working
(for development) installation is required. Luckily, both are two very simple installations
The landing page itself is built using
coffee and then built down to a static
gulp. The static webpage is then served using nginx with the provided
None of these dependencies have to be installed manually if you instead use the docker container
that's built using the provided
If you just want to build and run the project without enjoying some development features such
as automatically rebuilding and automatically reloading the browser, the only
thing you need to install is the main
Most Linux distros has prebuilt binaries. Using arch or debian for example:
pacman -S docker # Arch sudo apt-get update && sudo apt-get install docker.io # Debian
for complete instructions see docs.docker.com/installation.
Compose can be either installad as a python package or as a simple downloaded binary. See
docs.docker.com/compose/install for complete instructions.
Running & Building the Opidio Landing Page
Now that you have
docker ready, you can choose to either run the landing page in either production
or development mode.
You can choose to build the docker image yourself, in which case you should run:
docker build -t landing-page .
Which will save your image as
landing-page. There's a pre-built image that can instead be downloaded
To run the image you can use:
docker run -d -p 8080:80 landing-page # Run your selfbuilt image docker run -d -p 8080:80 opidio/landing-page # Automatically download the latest image from Docker Hub before running it
-d flag tells docker to run it in detatched in the background. If you just want to run it temporarily you
may want to omit it.
-p 8080:80 will cause the container to listen on port
8080. You can instead use
-P to listen on a random port
choosen by docker. In that case, you can use
docker ps to see which port it is running on.
Running using Compose will use the
docker-compose.yml file which in turn will use the
dev bash script to start
nginx server and automatically rebuild the project when any changes occur using
docker-compose build && docker-compose up
docker-compose will start the server on port
8080 by default, though it can be changed in
Automatic browser reload
Automatic reload is enabled by default, the only thing you need to do in order to enable is to install the Chrome plugin