-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Makefile and apko config for a local dev-container environment #1123
Conversation
Signed-off-by: Jamon Camisso <[email protected]>
✅ Deploy Preview for ornate-narwhal-088216 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Jamon Camisso <[email protected]>
Signed-off-by: Jamon Camisso <[email protected]>
I got an error when trying to run the
|
Ahh thanks for checking @erikaheidi - seems like the |
Signed-off-by: Jamon Camisso <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it works now! great work Jamon 👏🏼
This is a bit of an experiment that I hope we can turn into a daily tool for Academy work with various supporting tools. To start it adds a Makefile with two targets,
apko-build
anddev-container
.apko-build
: creates a local image for Academy development, using ourcgr.dev/chainguard/apko
image and the includedapko.yaml
file in this PR.dev-container
: runs the image with various volumes mounted into it, and ports forwarded with a copy of Hugo and nginx to start with.Future versions can add things like autodocs, rumble code, chainlink and so on.
To test, run:
Once it builds and runs, use
hugo serve --bind 0.0.0.0
and then visit http://localhost:1313 when it is ready.To build and preview HTML files with the included nginx, run
hugo -e local-dev
, then visit http://localhost:8080.Docker and
make
are the only prerequisites to run this I think.