Fork of heroku docker example app.
Example app is provided by heroku to illustrate how to build a local docker image and deploy.
However, why build a docker container locally and spend time pushing it, when if you use the fancy new heroku.yml functionality heroku will happily build it for you?
So this is a series of experiments.
get the existing application to build and run using heroku.yml, and build on heroku's servers, instead of building locally.
Steps:
- clone this repo.
- run the following:
heroku update beta
heroku plugins:install @heroku-cli/plugin-manifest
heroku create your-app-name --manifest
# make some trivial change to convince git to let you commit like echo "foo" > foo.txt or something ???
git add .
git commit -m "first commit"
heroku stack:set container
git push heroku master
heroku open
and a hello world should appear.
this is verified to work
then switch to ubuntu and make sure that works.
Steps:
git checkout ubuntu
# I'm assuming you've already the heroku steps in part 1 (updating the CLI, creating the app, etc.)
git push heroku ubuntu:master
heroku open
(See this page on deploying non-master branches to heroku.)
this is also verified to work, yay!
make sure that other commandline tools can be used from APT, which is the point, since the apt buildpack for the non-dockerized version of heroku seems to be a nonworking dumpster fire
git checkout pandoc
git push heroku pandoc:master
heroku open
also verified to work!!