Skip to content

Commit

Permalink
fix(images) use remote image json file for images, for ubuntu update …
Browse files Browse the repository at this point in the history
…local json file
  • Loading branch information
edlerd committed Aug 31, 2023
1 parent 20b94c6 commit 643c2b7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/assets/data/canonical-images.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/assets/data/linuxcontainers-images.json

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/update-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ then
fi


curl https://images.linuxcontainers.org/streams/v1/images.json | jq -c . > public/assets/data/linuxcontainers-images.json

curl http://cloud-images.ubuntu.com/releases/streams/v1/com.ubuntu.cloud:released:download.json | jq -c . > public/assets/data/canonical-images.json
3 changes: 2 additions & 1 deletion src/pages/images/ImageSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ interface Props {

const canonicalJson = "/ui/assets/data/canonical-images.json";
const canonicalServer = "https://cloud-images.ubuntu.com/releases";
const linuxContainersJson = "/ui/assets/data/linuxcontainers-images.json";
const linuxContainersJson =
"https://images.linuxcontainers.org/streams/v1/images.json";
const linuxContainersServer = "https://images.linuxcontainers.org";

const ANY = "any";
Expand Down

0 comments on commit 643c2b7

Please sign in to comment.