Spaces:
Running
Running
metadata
title: Ambhtmx.crud
emoji: π
colorFrom: pink
colorTo: pink
sdk: docker
pinned: false
Runing the example in Docker
You may need to set some environment variables in the .Renviron file:
GITHUB_PAT=<an optional token to install github repos safely>
AMBHTMX_USER=<your user>
AMBHTMX_PASSWORD=<your password>
AMBHTMX_SECRET=<a secret key to make cookies safer>
AMBHTMX_PROTOCOL=http
AMBHTMX_HOST=0.0.0.0
AMBHTMX_PORT=7860
Then, you can create the ambhtmx-image and run the ambhtmx-container in Docker:
If you have GNU Make installed in your Linux system, just run:
make
If you prefer, you can do it step by step.
- Building the ambhtmx-image:
docker build -f Dockerfile -t ambhtmx-image .
- Runing the ambhtmx-container:
docker run --env-file=.Renviron -p 7860:7860 --name ambhtmx-container --rm ambhtmx-image
Check the app on http://127.0.0.1:3000 or http://AMBHTMX_HOST:AMBHTMX_PORT :)
Stoping and removing the ambhtmx-container:
docker container rm -f ambhtmx-container
- Removing the image
docker images 'ambhtmx-image' -a -q
docker rmi ID
## Troubleshooting
If you want to see the logs:
docker build -f Dockerfile --no-cache --progress=plain -t ambhtmx-image . 2>&1 | tee build.log
Check the [known issues](https://github.com/jrosell/ambhtmx/issues), and if you have another issue? Please, [let me know](https://github.com/jrosell/ambhtmx/issues).