Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions hello-world/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ARG tag=latest
FROM ghcr.io/flux-framework/flux-restful-api:${tag}

# Just for demo!
ENV FLUX_REQUIRE_AUTH="true"

27 changes: 27 additions & 0 deletions hello-world/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Hello World

The most basic examplet o run hello world with flux!

```bash
$ docker build -t hello-world .
```

And run:

```bash
$ docker run -it -p 5000:5000 hello-world
```

The login should be `fluxuser` and "12345".
In the job submit interface, echo hello world:

```
echo hello world
```

![img/submit.png](img/submit.png)

And then browse to the table and click on the ID to see the log.

![img/log.png](img/log.png)

Binary file added hello-world/img/log.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hello-world/img/submit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions hello-world/uptodate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dockerbuild:

build_args:
tag:
key: "app"
versions:
- "latest"