This commit lets you run, eg:
DOCKER=podman make docker-image
DOCKER=podman make docker-serve
and spin up the website locally for testing, without using Docker or
needing to have Docker installed.
You can run:
make docker-serve
to run Hugo in a container, building the site and then serving it.
Rather than write the rendered content into the repository for this,
set up a tmpfs and write the content there, then serve it.
This change is also compatible with podman.
* Update Hugo version and apply HTML minification to production builds
* Use full flag names for clarity
* Remove Hugo installation logic out of Travis config and into Makefile
* Add Hugo version checking script
* Fix Netlify config version
* kubeadm GA blog post
* Change file name and add post metadata
* Update CSS for blog post tables
* More formatting and wording changes
* Change build process to allow for displaying future blog posts
* Add links to command documentation
* Change blog post date and address PR feedback
* More wording updates
* Add basic header-checking function
* Add Slack notification logic
* Modify Netlify Functions setup
* Rework function logic
* Add missing dependencies
* Remove package-lock.json from Git
* Separate header checking function
* Isolate env check into a separate function
* Add new Sass generation system
* Remove resources folder
* Add develop Sass command and sourcemaps
* Add Hugo version shortcode for use in docs
* Add OWNERS file to ./sass folder
The relevant fix for kubernetes.io is the "Page last modified on" line (Git revision info), which in this version now works correctly across languages.
* Change stage target to docker-serve in Makefile
docker-serve is documented in the readme (from #9128).
* Update underlying command for make docker-serve
The underlying command listed in the README wasn't exactly the
same as the command in the Makefile.
* Remove old Dockerfile for Jekyll site
PR #9128 added a new Dockerfile for the Hugo site. The old
staging container is no longer needed.
* Move all Sass into a common /assets directory
* Remove node-sass make command
* Change head partial to accommodate full Sass rules
* Bump Hugo version in Netlify config
* Use separate partial for CSS imports
* Bump Hugo version
* Remove PostCSS from the pipeline
* Un-bump version
* Update Hugo version to 0.44
* Update Hugo version in Makefile
* Update production Hugo version
* Fix misspelled variable name
* Add ./resources folder to Git
* Update Hugo version in Netlify config to 0.45.1
* Use un-cached css.html partial
* Re-work extra CSS logic for .Params.css
* Add Dockerfile and make commands
* add background run option
* Expand on OSS attribution in new Dockerfile
* Begin adding README instructions for Docker
* Add new stage command
* WIP
* fixing layouts and assets
updating Gemfile.lock with bundle install (rvm use ruby-2.2.9)
Updated links in header and footer
switch to paginate v2 gem
comment sidebar logic
fixing css regression
retry paginate
updated local ruby version
reverting to original pagination gem
remove text, make heading roboto, next/prev as buttons
* reintoduce dir tree changes
format checking new posts
shrink fab-icons down to 33px
* reintoduce dir tree changes
format checking new posts
shrink fab-icons down to 33px
* next/prev buttons on posts and index
* Change "latest" to v1.10
* rename .md to match old blog and added explict permalinks for urls
* replacing a link to old blog
* [glossary] Glossary MVP
* resolve conflict
* initial pass at includable glossary data
* tag to term mapping
* Change StatefulSets to singular, StatefulSet
* revise glossary style guide, move
* make descriptions plural
Netlify will redirect with a 301 status to the right places without the
need of a custom javascript file.
The current redirects.js is not removed so production can keep working
as it is for now.
Signed-off-by: David Calavera <david.calavera@gmail.com>
- The netlify.toml file explains how to build this site for production
and deploy previews.
- The Makefile has some commands to make building the site slightly more
user friendly, try typing `make help`.
- The Gemfile includes all the dependencies exported from GitHub Pages.
This site might not need all of the but I don't have the knowledge to
exclude the unused ones.
Signed-off-by: David Calavera <david.calavera@gmail.com>