From 401ea1bb50613f159ea8f91c4ca7133b97697f09 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 22 Jul 2024 20:00:27 +0300 Subject: [PATCH] chore(snap): specify platforms and add readme (#156) * chore(snap): specify platforms Also updates the `ARCH` env variable as per https://snapcraft.io/docs/migrate-core24 * add logo and readme --- README.md | 22 +++++++++++++--------- assets/snapcraft.svg | 2 ++ snap/snapcraft.yaml | 7 +++++-- 3 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 assets/snapcraft.svg diff --git a/README.md b/README.md index 794d4f8..48396af 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,16 @@ Install [Coder](https://github.com/coder/coder) to your preferred cloud with a pre-built package. -| Logo | Platform Name | Status | Documentation | Deploy | -| ---------------------------------------------------------------------------------------- | --------------------- | ----------- | ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| AWS EC2 Logo | AWS EC2 | Live ✅ | [Guide: AWS](https://coder.com/docs/v2/latest/platforms/aws) | [Deploy from AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-5gxjyur2vc7rg?sr=0-2&ref_=beagle&applicationId=AWSMPContessa) | -| Fly.io Logo | Fly.io | Live ✅ | [Blog: Run Coder on Fly.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | [Deploy Coder on FLy.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | -| Railway.app Logo | Railway.app | Live ✅ | [Blog: Run Coder on Railway.app](https://coder.com/blog/deploy-coder-on-railway-app) | [![Deploy Coder on Railway](https://railway.app/button.svg)](https://railway.app/template/coder?referralCode=tfH8Uw) | -| Heroku Logo | Heroku | Live ✅ | [Docs: Deploy Coder on Heroku](./heroku/README.md) | [![Deploy Coder on Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/coder/packages) | -| Render.com Logo | Render | Live ✅ | [Docs: Deploy Coder on Render](./render/README.md) | [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/coder/packages) | -| AWS EKS Logo | AWS EKS | In progress | [Docs: Coder on Kubernetes](https://coder.com/docs/v2/latest/install/kubernetes) | [Deploy from AWS Marketplace](https://example.com) | -| Google Compute Engine logo | Google Compute Engine | Live ✅ | [Guide: Google Compute Engine](https://coder.com/docs/v2/latest/platforms/gcp) | [Deploy from GCP Marketplace](https://console.cloud.google.com/marketplace/product/coder-enterprise-market-public/coder-v2) | +| Logo | Platform Name | Status | Documentation | Deploy | +| ---------------------------------------------------------------------------------------- | --------------------- | ----------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| AWS EC2 Logo | AWS EC2 | Live ✅ | [Guide: AWS](https://coder.com/docs/v2/latest/platforms/aws) | [Deploy from AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-5gxjyur2vc7rg?sr=0-2&ref_=beagle&applicationId=AWSMPContessa) | +| Fly.io Logo | Fly.io | Live ✅ | [Blog: Run Coder on Fly.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | [Deploy Coder on FLy.io](https://coder.com/blog/remote-developer-environments-on-fly-io) | +| Railway.app Logo | Railway.app | Live ✅ | [Blog: Run Coder on Railway.app](https://coder.com/blog/deploy-coder-on-railway-app) | [![Deploy Coder on Railway](https://railway.app/button.svg)](https://railway.app/template/coder?referralCode=tfH8Uw) | +| Heroku Logo | Heroku | Live ✅ | [Docs: Deploy Coder on Heroku](./heroku/README.md) | [![Deploy Coder on Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/coder/packages) | +| Render.com Logo | Render | Live ✅ | [Docs: Deploy Coder on Render](./render/README.md) | [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/coder/packages) | +| AWS EKS Logo | AWS EKS | In progress | [Docs: Coder on Kubernetes](https://coder.com/docs/v2/latest/install/kubernetes) | [Deploy from AWS Marketplace](https://example.com) | +| Google Compute Engine logo | Google Compute Engine | Live ✅ | [Guide: Google Compute Engine](https://coder.com/docs/v2/latest/platforms/gcp) | [Deploy from GCP Marketplace](https://console.cloud.google.com/marketplace/product/coder-enterprise-market-public/coder-v2) | +| Snapcraft Logo | Snapcraft | Live ✅ | [Install Coder from Snapcraft](https://snapcraft.io/coder) | + +[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-white.svg)](https://snapcraft.io/coder) + | diff --git a/assets/snapcraft.svg b/assets/snapcraft.svg new file mode 100644 index 0000000..6c79e61 --- /dev/null +++ b/assets/snapcraft.svg @@ -0,0 +1,2 @@ + +file_type_snapcraft \ No newline at end of file diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6a94bde..24c3cf3 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -19,10 +19,14 @@ description: | grade: stable confinement: strict +platforms: + amd64: + arm64: + parts: coder: plugin: dump - source: https://github.com/coder/coder/releases/download/v$SNAPCRAFT_PROJECT_VERSION/coder_$SNAPCRAFT_PROJECT_VERSION_linux_$CRAFT_TARGET_ARCH.tar.gz + source: https://github.com/coder/coder/releases/download/v$SNAPCRAFT_PROJECT_VERSION/coder_$SNAPCRAFT_PROJECT_VERSION_linux_$CRAFT_ARCH_BUILD_FOR.tar.gz apps: coder: @@ -32,4 +36,3 @@ apps: - home - network - network-bind -