Giter VIP home page Giter VIP logo

alpinehelloworld's Introduction

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.

Part 1

get the existing application to build and run using heroku.yml, and build on heroku's servers, instead of building locally.

Steps:

  1. clone this repo.
  2. 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

Part 2

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!

Part 3

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!!

alpinehelloworld's People

Contributors

andrewhamon avatar edmorley avatar keunwoo avatar paultopia avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.