Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshspicer/devcontainer-oci
https://github.com/joshspicer/devcontainer-oci
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/joshspicer/devcontainer-oci
- Owner: joshspicer
- License: apache-2.0
- Created: 2022-07-25T14:47:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T08:03:39.000Z (over 1 year ago)
- Last Synced: 2024-10-06T18:35:09.814Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 63.5 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# devcontainers (oci)
> This is an experiment!
### Login
```bash
make build-linux-amd64 && cd bin/linux/amd64
./devcontainer-oci login ghcr.io -u USERNAME -p
```### Resolve feature identifiers to tarballs & lockfile
```bash
$ ./devcontainer-oci resolve ghcr.io/codspace/features/ruby:1,ghcr.io/codspace/features/go:1.0,ghcr.io/codspace/features/python:1.0.10Fetching reference: ghcr.io/codspace/features/ruby:1
Downloaded c33008d0dc12 ruby.tgz
Pulled ghcr.io/codspace/features/ruby:1Fetching reference: ghcr.io/codspace/features/go:1.0
Downloaded b2006e764719 go.tgz
Pulled ghcr.io/codspace/features/go:1.0Fetching reference: ghcr.io/codspace/features/python:1.0.10
Downloaded ef1941092547 python.tgz
Pulled ghcr.io/codspace/features/python:1.0.10$ ls
devcontainer-oci devcontainers.lock go.tgz python.tgz ruby.tgz
$ cat devcontainers.lock
ghcr.io/codspace/features/ruby:1
1
ghcr.io
sha256:c33008d0dc12d0e631734082401bec692da809eae2ac51e24f58c1cac68fc0c9
ruby.tgz
application/vnd.devcontainers.layer.v1+targhcr.io/codspace/features/go:1.0
1.0
ghcr.io
sha256:b2006e7647191f7b47222ae48df049c6e21a4c5a04acfad0c4ef614d819de4c5
go.tgz
application/vnd.devcontainers.layer.v1+targhcr.io/codspace/features/python:1.0.10
1.0.10
ghcr.io
sha256:ef1941092547ee21c7cedfead12604bcfdd5dc096589c5b7a5a8f49e96c8d5d1
python.tgz
application/vnd.devcontainers.layer.v1+tar$ cat go.tgz | sha256sum
b2006e7647191f7b47222ae48df049c6e21a4c5a04acfad0c4ef614d819de4c5 -
```
### Fetch metadata for all features under namespace
```bash
$ ./devcontainer-oci metadata ghcr.io/codspace/featuresSource Code: https://github.com/codspace/features
Commit: 06d028bfa680823ac1905d51ef0d3e6e626b452aAvailable Features:
go
1.0.9
1.0
1
1.0.10
powershell
1.0
1.0.10
1
1.0.11
python
1.0
1.0.9
1
1.0.10
ruby
1.0.13
1.0
1
1.0.14
rust
1.0
1
1.0.9
1.0.10```
## GitHub GHCR UX
See _https://github.com/orgs/codspace/packages?repo_name=features_