diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-09 14:30:09 -0400 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-09 14:30:09 -0400 |
| commit | 6f77a3c75f40b5327623ac99b1036b6e37c56480 (patch) | |
| tree | fcaaba5f13201ebc486a235182230e76e1544839 /README.md | |
| parent | 6a12a1f29362425390d36242a9c63ca7436f15da (diff) | |
| download | submelon.dev-6f77a3c75f40b5327623ac99b1036b6e37c56480.tar.gz submelon.dev-6f77a3c75f40b5327623ac99b1036b6e37c56480.tar.bz2 submelon.dev-6f77a3c75f40b5327623ac99b1036b6e37c56480.zip | |
Replace README with slightly more pertinent info
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 71 |
1 files changed, 28 insertions, 43 deletions
@@ -1,54 +1,39 @@ -<p align="center"> - <a href="https://www.gatsbyjs.com/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter"> - <img alt="Gatsby" src="https://www.gatsbyjs.com/Gatsby-Monogram.svg" width="60" /> - </a> -</p> -<h1 align="center"> - Gatsby minimal starter -</h1> +# 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/): - -[<img src="https://www.gatsbyjs.com/deploynow.svg" alt="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. |
