Skip to content
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

codespace idea #18

Open
MichaelAkridge-NOAA opened this issue Apr 18, 2024 · 6 comments
Open

codespace idea #18

MichaelAkridge-NOAA opened this issue Apr 18, 2024 · 6 comments

Comments

@MichaelAkridge-NOAA
Copy link
Contributor

Codespace Idea

Just an idea to possibly help streamline codespace environment generation and setup

Link: https://github.com/MichaelAkridge-NOAA/codespace-generator

  • This will dynamically generate basic codespace development container configurations (devcontainer.json) for each container image listed in a GitHub organization(nmfs-opensci)'s package registry.
  • Proof of Concept. Still needs to be updated, expanded and configured to enhance codespace generation and to make it work with each image type/base
@MichaelAkridge-NOAA
Copy link
Contributor Author

Codespace Idea #2 - Codespace Designer

Github page that takes in the NMFS-Opensci image list, and allows users to customize/design a codespace devcontainer file as they see fit using easy option selectors.

Design a Codespace

s01
s02

@eeholmes
Copy link
Member

@MichaelAkridge-NOAA This is fantastic! Thoughts on how to combine this with a Docker Stack page? By the looks of your GitHub Page, you are a better GitHub Page designer than I am. Maybe a GitHub Page with a top nav bar that looks a little like pkgdown

  • Overview tab: overview of the NMFS Data Science Docker Stack
  • Images tab: Dropdown that goes to each image README.md (in the images folder)
  • Codespace Designer tag: that goes to your codespace designer?

Does it create by chance the button that opens the Codespace? Like on this page
https://github.com/eeholmes/earthdata-cloud-cookbook/blob/main/README.md
I think I saw that you have buttons like this too?

@MichaelAkridge-NOAA
Copy link
Contributor Author

MichaelAkridge-NOAA commented Apr 19, 2024

@eeholmes Thanks! And what you listed already sounds like a great idea to me. I'll create a fork and try to test a few Github page ideas.

The codesapce designer doesn't currently create the button/links to start the codespace, just download, but I'll add that to my list to explore for sure.

I haven't tried to make one before, but an oauth app might be interesting all in one solution.

It could potentially, once authorized by the user, use the github api to create a new repo with the devcontainer file and launch the codespace all in one.

@MichaelAkridge-NOAA
Copy link
Contributor Author

@eeholmes Here is a first test at some of the Github Page ideas in action.

Overview tab: overview of the NMFS Data Science Docker Stack

  • currently home/landing page, but can be changed
  • pulls from readme
    image

Images tab: Dropdown that goes to each image README.md (in the images folder)

  • menu list calls packages.json (generated via github action to list nmfs-opensci packages)
  • can still be optimized; another option would be to use API calls
    image
    image

Links to Dev Info Readme and Codespace Designer

image

@MichaelAkridge-NOAA
Copy link
Contributor Author

@eeholmes just-the-docs github page test

Overview Tab

image

Image Readmes

  • Image readme just needs headers added to be integrated into nav. e.g.
---
layout: default
title: jupyter-multiple-conda
parent: Image Info
nav_order: 2
has_children: false
---

image

  • Has a lot of nice features like search
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants