Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Switch to new hello world image
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Jellick <craig@acorn.io>
  • Loading branch information
cjellick committed Aug 12, 2023
1 parent 46a3228 commit 2f21475
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/docs/100-reference/01-command-line/acorn_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ acorn run [flags] IMAGE|DIRECTORY [acorn args]
acorn run .
# Run from an image
acorn run ghcr.io/acorn-io/library/hello-world
acorn run ghcr.io/acorn-io/hello-world
# Automatic upgrades
# Automatic upgrade for an app will be enabled if '#', '*', or '**' appears in the image's tag. Tags will be sorted according to the rules for these special characters described below. The newest tag will be selected for upgrade.
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/30-installation/02-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ When you install acorn, it will launch several workloads in your cluster, includ

When you launch an acorn and it has published ports, acorn will generate a unique URL for accessing it, like so:
```bash
$ acorn run -P ghcr.io/acorn-io/library/hello-world
$ acorn run -P ghcr.io/acorn-io/hello-world

$ acorn ps
NAME IMAGE HEALTHY UP-TO-DATE CREATED ENDPOINTS MESSAGE
black-sea ghcr.io/acorn-io/library/hello-world 1 1 6s ago http://webapp-black-sea-4232beae.qnrzq5.oss-acorn.io => webapp:80 OK
NAME IMAGE COMMIT HEALTHY UP-TO-DATE CREATED ENDPOINTS MESSAGE
little-snowflake ghcr.io/acorn-io/hello-world eab5f8c77bd6 1 1 6m2s ago https://webapp-little-snowflake-2b3b4c8d.3gjv35.dev-on-acorn.io => webapp:80 OK
```
By default, endpoints are `http`. To have acorn automatically generate a [Let's Encrypt](https://letsencrypt.org/) certificate and secure your endpoints, you can enable acorn's Let's Encrypt integration like this:
```bash
Expand Down Expand Up @@ -148,4 +148,4 @@ When you are installing Acorn, you can specify a profile to use. A profile is a

:::note
Once a profile is set, this will set new default values based on the profile. Any default values previously used will be switched to the new profile defaults. However, any install flags that were or are specified will still be respected.
:::
:::
2 changes: 1 addition & 1 deletion docs/docs/38-authoring/31-nested-acorns.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Acorns are defined under the `acorns` toplevel key in the Acornfile.
//...
acorns: {
"my-acorn": {
image: "ghcr.io/acorn-io/library/hello-world:latest"
image: "ghcr.io/acorn-io/hello-world:latest"
}
}
//...
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/50-running/50-namespaces-and-service-accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ kubectl label namespaces <pre-created-namespace> acorn.io/app-namespace=acorn
```
#### To verify :
```shell
acorn run --target-namespace <pre-created-namespace> -n <test-app> -P ghcr.io/acorn-io/library/hello-world
acorn run --target-namespace <pre-created-namespace> -n <test-app> -P ghcr.io/acorn-io/hello-world
acorn % kubectl get pods -n ns-test-app
NAME READY STATUS RESTARTS AGE
webapp-556947c87d-gt97r 1/1 Running 0 3m54s
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/50-running/60-projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ This will cause the project and all related resources to be deleted.
### Temporarily specifying a different project
All acorn commands now support the `--project` (or `-j`) flag for specifying the project just for that command. So, for example, the following command would create an application in the `development` project, regardless of which project you were currently using:
```bash
acorn -j development run ghcr.io/acorn-io/library/hello-world
```
acorn -j development run ghcr.io/acorn-io/hello-world
```
6 changes: 3 additions & 3 deletions docs/docs/50-running/80-alpha-image-allow-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ $ acorn install --features image-allow-rules=true
...

# 2. Pull some Acorn image and push it to another registry that you have push access to (Alternatively, build it from an Acornfile)
$ acorn pull ghcr.io/acorn-io/library/hello-world:latest
$ acorn tag ghcr.io/acorn-io/library/hello-world:latest my.registry.local/acorn/hello-world:latest
$ acorn pull ghcr.io/acorn-io/hello-world:latest
$ acorn tag ghcr.io/acorn-io/hello-world:latest my.registry.local/acorn/hello-world:latest
$ acorn push my.registry.local/acorn/hello-world:latest

# 2.1 Faster using crane:
$ crane copy ghcr.io/acorn-io/library/hello-world:latest my.registry.local/acorn/hello-world:latest
$ crane copy ghcr.io/acorn-io/hello-world:latest my.registry.local/acorn/hello-world:latest
...

# 3. Get the digest
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewRun(c CommandContext) *cobra.Command {
acorn run .
# Run from an image
acorn run ghcr.io/acorn-io/library/hello-world
acorn run ghcr.io/acorn-io/hello-world
# Automatic upgrades
# Automatic upgrade for an app will be enabled if '#', '*', or '**' appears in the image's tag. Tags will be sorted according to the rules for these special characters described below. The newest tag will be selected for upgrade.
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/testdata/run/acorn_run_help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Examples:
acorn run .

# Run from an image
acorn run ghcr.io/acorn-io/library/hello-world
acorn run ghcr.io/acorn-io/hello-world

# Automatic upgrades
# Automatic upgrade for an app will be enabled if '#', '*', or '**' appears in the image's tag. Tags will be sorted according to the rules for these special characters described below. The newest tag will be selected for upgrade.
Expand Down
4 changes: 2 additions & 2 deletions pkg/server/registry/apigroups/acorn/images/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ func TestFindMatchingImage(t *testing.T) {
assert.Equal(t, "foo/bar", ref)

// err: not found by full digest reference
_, _, err = findImageMatch(il, "ghcr.io/acorn-io/library/hello-world@sha256:1a6c64d2ccd0bb035f9c8196d3bfe72a7fdbddc4530dfcb3ab2a0ab8afb57eeb")
_, _, err = findImageMatch(il, "ghcr.io/acorn-io/hello-world@sha256:1a6c64d2ccd0bb035f9c8196d3bfe72a7fdbddc4530dfcb3ab2a0ab8afb57eeb")
assert.Error(t, err)
assert.Equal(t, "images.api.acorn.io \"ghcr.io/acorn-io/library/hello-world@sha256:1a6c64d2ccd0bb035f9c8196d3bfe72a7fdbddc4530dfcb3ab2a0ab8afb57eeb\" not found", err.Error())
assert.Equal(t, "images.api.acorn.io \"ghcr.io/acorn-io/hello-world@sha256:1a6c64d2ccd0bb035f9c8196d3bfe72a7fdbddc4530dfcb3ab2a0ab8afb57eeb\" not found", err.Error())

// err: ambiguous reg/repo reference
_, _, err = findImageMatch(il, "foo/bar")
Expand Down

0 comments on commit 2f21475

Please sign in to comment.