From 6f77a3c75f40b5327623ac99b1036b6e37c56480 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Thu, 9 Sep 2021 14:30:09 -0400 Subject: Replace README with slightly more pertinent info --- README.md | 71 +++++++++++++++++++++++++-------------------------------------- 1 file changed, 28 insertions(+), 43 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 2f81819..5199081 100644 --- a/README.md +++ b/README.md @@ -1,54 +1,39 @@ -

- - Gatsby - -

-

- Gatsby minimal starter -

+# submelon.dev -## ๐Ÿš€ Quick start +## Deploying -1. **Create a Gatsby site.** +### Using Docker - Use the Gatsby CLI to create a new site, specifying the minimal starter. +The Dockerfile works via a fresh clone, no pre-build is needed. It can be tagged as follows: - ```shell - # create a new Gatsby site using the minimal starter - npm init gatsby - ``` +``` +docker build -t registry.digitalocean.com/submelon-tech/submelon.tech:latest . +``` -2. **Start developing.** +Or if using M1/ARM, - Navigate into your new siteโ€™s directory and start it up. +``` +docker buildx build --platform linux/amd64 -t registry.digitalocean.com/submelon-tech/submelon.tech:latest . +``` - ```shell - cd my-gatsby-site/ - npm run develop - ``` +If the build fails in error as a result of the image, the base gatsby images can be rebuilt. (The gatsby images as exist on Dockerhub do not work.) To rebuild those images, run the following commands: -3. **Open the code and start customizing!** +``` +cd .. +git clone https://github.com/gatsbyjs/gatsby-docker +cd gatsby-docker +docker build -t gatsbyjs/gatsby:onbuild -f Dockerfile.onbuild . +docker build -t gatsbyjs/gatsby:latest -f Dockerfile . +``` - Your site is now running at http://localhost:8000! +Or if using M1/ARM, - Edit `src/pages/index.js` to see your site update in real-time! +``` +cd .. +git clone https://github.com/gatsbyjs/gatsby-docker +cd gatsby-docker +docker buildx build --platform linux/amd64 -t gatsbyjs/gatsby:onbuild -f Dockerfile.onbuild . +docker buildx build --platform linux/amd64 -t gatsbyjs/gatsby:latest -f Dockerfile . +``` -4. **Learn more** - - - [Documentation](https://www.gatsbyjs.com/docs/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter) - - - [Tutorials](https://www.gatsbyjs.com/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter) - - - [Guides](https://www.gatsbyjs.com/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter) - - - [API Reference](https://www.gatsbyjs.com/docs/api-reference/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter) - - - [Plugin Library](https://www.gatsbyjs.com/plugins?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter) - - - [Cheat Sheet](https://www.gatsbyjs.com/docs/cheat-sheet/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter) - -## ๐Ÿš€ Quick start (Gatsby Cloud) - -Deploy this starter with one click on [Gatsby Cloud](https://www.gatsbyjs.com/cloud/): - -[Deploy to Gatsby Cloud](https://www.gatsbyjs.com/dashboard/deploynow?url=https://github.com/gatsbyjs/gatsby-starter-minimal) +And then attempt rebuild of the submelon.tech image. -- cgit