docker run --rm -it -P --network host --name=oae ghcr.io/oaeproject/oae-demo:master
You'll still need to set up the dns entries, as follows:
# As root or with sudo
echo "127.0.0.1 admin.oae.com" > /etc/hosts
echo "127.0.0.1 guest.oae.com" > /etc/hosts
As soon as the container boot, you may go to admin.oae.com
(admin interface) or guest.oae.com
(test tenant).
# Build the image
docker build --rm -t oae-demo:latest -f Dockerfile .
# Run the container (all servers)
docker run --rm -it -P --network host --name=oae oae-demo:latest
This is intended to work on linux alone.
After building the image locally, try running the container with bin/bash
like this:
docker run --rm -it -P --network host --name=oae oae-demo:latest /bin/bash # you'll be root
# if you need to run something as another user, try the `runuser` command like this: runuser -l node -c 'ls -la'