Skip to content

Commit

Permalink
Don't be so Docker-centric; use GH images
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Feb 18, 2024
1 parent c1fb002 commit 55fe08a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
11 changes: 0 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,6 @@ server: venv
cli: venv
PYTHONPATH=.:$(VENV) $(VENV)/python redbot/cli.py $(filter-out $@,$(MAKECMDGOALS))

#############################################################################
## Docker

.PHONY: docker-image
docker-image:
docker build -t redbot .

.PHONY: docker
docker: docker-image
docker run --rm --name redbot -p 8000:8000 redbot

#############################################################################
## Assets

Expand Down
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,15 @@ By default, REDbot will listen on localhost port 8000. This can be adjusted in `
If you want to allow people to save test results, create the directory referenced by the 'save_dir' configuration variable, and make sure that it's writable to the REDbot process.


### Running REDbot with Docker
### Running REDbot in a Container

If you wish to run REDbot using [Docker](https://www.docker.com), get a local copy of the repository, then:
[OCI](https://opencontainers.org)-compliant containers are [available on Github](https://github.com/mnot/redbot/pkgs/container/redbot), and it's easy to run REDbot one using a tool like [Docker](https://www.docker.com) or [Podman](https://podman.io). For example:

> make docker-image
> docker run --rm -p 8000:8000 ghcr.io/mnot/redbot
Start the webserver:
or

> docker run -p 8000:8000 redbot
Or, just:

> make docker
to run REDbot on port 8000.
> podman run --rm -p 8000:8000 ghcr.io/mnot/redbot

## Credits
Expand Down

0 comments on commit 55fe08a

Please sign in to comment.