GithubHelp home page GithubHelp logo

devcontainers-community / features Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 91 KB

๐Ÿงฐ Community-driven collection of addons for @devcontainers

devcontainer-feature devcontainers collection community

features's People

Contributors

dependabot[bot] avatar eitsupi avatar jcbhmr avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

eitsupi

features's Issues

dart-sdk feature is broken

Here is the content of my devcontainer.json it come from here

{
    "image": "mcr.microsoft.com/devcontainers/base:debian",
    // ๐Ÿงฐ Add mixins and addons with devcontainer features! For a complete list
    // of features, check out containers.dev/features.
    "features": {
        "ghcr.io/devcontainers-community/features/dart-sdk": {}
    },
    // ๐Ÿ‘ทโ€โ™‚๏ธ Use 'postCreateCommand' to run commands after the container is created.
    // "postCreateCommand": "dart --version",
}

but when i reopen the current folder in a container I got this log in creation.log.

Update GitHub Actions permissions

Previously, GitHub Actions gets a GITHUB_TOKEN with both read/write permissions by default whenever Actions is enabled on a repository.
As a default, this is too permissive, so to improve security we would like to change the default going forward to a read-only token. You can still flip it to read/write if needed.

This change will not impact any existing enterprises, organizations or repositories. Here is how the defaults are set going forward.

  • Enterprises: New enterprises will have read-only token.
  • Organizations owned by Enterprise: New organizations will inherit the permissions from parent enterprise.
  • Organizations not owned by Enterprise: New organizations will have read-only token.
  • Repositories owned by organization: New repositories will inherit permissions from parent organization.
  • Repositories owned by personal account: New repositories will have read-only token.

โ€” https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/

Here's the docs on how to specify perms: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

Get pages static build working

@jcbhmr โžœ /workspaces/devcontainer-features/docs (main) $ npm run prepack

> @jcbhmr/[email protected] prepack
> next build && next export

warn  - You have enabled experimental feature (appDir) in next.config.js.
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info  - Thank you for testing `appDir` please leave your feedback at https://nextjs.link/app-feedback

Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

info  - Creating an optimized production build  
info  - Compiled successfully
info  - Linting and checking validity of types  
info  - Collecting page data  
info  - Generating static pages (3/3)
info  - Finalizing page optimization  

Route (app)                                Size     First Load JS
โ”€ โ—‹ /                                      137 B          67.5 kB
+ First Load JS shared by all              67.3 kB
  โ”œ chunks/701-3d0e1b64b039764a.js         65.5 kB
  โ”œ chunks/main-app-abe896845ef83255.js    202 B
  โ”” chunks/webpack-8074fabf81ca3fbd.js     1.61 kB

Route (pages)                              Size     First Load JS
โ”€ โ—‹ /404                                   179 B          90.3 kB
+ First Load JS shared by all              90.2 kB
  โ”œ chunks/main-9ceee7cc7e73f31b.js        88.4 kB
  โ”œ chunks/pages/_app-4dbef4ff05023091.js  193 B
  โ”” chunks/webpack-8074fabf81ca3fbd.js     1.61 kB

โ—‹  (Static)  automatically rendered as static HTML (uses no initial props)

warn  - You have enabled experimental feature (appDir) in next.config.js.
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info  - Thank you for testing `appDir` please leave your feedback at https://nextjs.link/app-feedback

info  - using build directory: /workspaces/devcontainer-features/docs/.next
info  - Copying "static build" directory
info  - No "exportPathMap" found in "/workspaces/devcontainer-features/docs/next.config.js". Generating map from "./pages"
info  - Launching 1 workers
info  - Copying "public" directory
info  - Exporting (2/2)
PageNotFoundError: Cannot find module for page: /
    at Object.getPagePath (/workspaces/devcontainer-features/docs/node_modules/next/dist/server/require.js:77:15)
    at /workspaces/devcontainer-features/docs/node_modules/next/dist/export/index.js:392:48
    at Array.map (<anonymous>)
    at /workspaces/devcontainer-features/docs/node_modules/next/dist/export/index.js:383:69
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Span.traceAsyncFn (/workspaces/devcontainer-features/docs/node_modules/next/dist/trace/trace.js:79:20) {
  code: 'ENOENT'
}

Create GitHub Pages site

  • Turn on GitHub Pages from actions
  • Add GitHub Action to deploy to pages
  • Make the page itself

The criteria for the pages site are:

  • Have an index page of all the features
  • Have a unique URL for each feature
  • Have pretty URLs (use name/index.html instead of name.html)
  • Each individual feature page has an options table
  • Each individual feature page has an example copy-paste-able
  • Feat page has footer with "Feature doesn't work? Open an issue"
  • Website has Troubleshooting guide page for users (NOT devs so it's not on the dev wiki)
  • Feat page has footer "Need help? Find us on Gitter"

Some of these are inspired by https://github.com/devcontainers-contrib/features/discussions/290

Some options for making the website itself:

More SSGs: https://jamstack.org/generators/

Basically the site needs to have a template for the index that for-loops through each feature as a card or similar, then have a per-feature [id].md or similar that generates a table for each feature.

Incorporate ideas/content from main-OLD branch

I reset the main branch to the initial generated template commit. Why? Because I don't want to be held up on "oh but we need to wait for GitHub Pages site to work" ๐Ÿคทโ€โ™‚๏ธ so I reverted back to what works -- the PR README stuff.

I still want to do GitHub Pages SSG stuff, but that's the future. We are in the now.

So this issue is to track incorporating the following from https://github.com/devcontainers-community/features/tree/main-OLD

  • Better readme
  • Move .devcontainer.json to folder
  • .gitattributes for .sh files
  • Copy over the bash_modules prebuild.sh stuff

Depending on how devcontainers/spec#209 and devcontainers/spec#208 shake out, we might be able to ditch my bash_modules idea ๐Ÿคทโ€โ™‚๏ธ so I guess wait on that

Fix release workflow

This step is not needed.

- name: Create PR for Documentation
id: push_image_info
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -e
echo "Start."
# Configure git and Push updates
git config --global user.email [email protected]
git config --global user.name github-actions
git config pull.rebase false
branch="automated-documentation-update-${GITHUB_RUN_ID}"
git checkout -b "${branch}"
message='Automated documentation update'
# Add / update and commit
git add "*/**/README.md"
git commit -m 'Automated documentation update [skip ci]' || export NO_UPDATES=true
# Push
if [ "$NO_UPDATES" != "true" ] ; then
git push origin "${branch}"
gh pr create --title "$message" --body "$message"
fi

...And, should add a step to update the website.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.