Bedrock Server can be run either on Docker or on bare metal. In this guide we show how to install Bedrock Server using Docker
Docker can be installed on Windows, Linux, and Mac. In this guide we focus on Ubuntu Linux.
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
Verify that the output of the last command contains 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
Clone https://github.com/bedrock-py/bedrock-core/ to a local working directory. We will then build the Docker image out of this directory.
git clone https://github.com/Bedrock-py/bedrock-core.git
From the working directory, build the image. This may take up to 30 minutes and use 8G of RAM.
cd bedrock-core
docker build -t bedrock .
docker run -p 81:81 -d bedrock
Assuming no errors, you should be able to view the APIs at http://localhost:81/ . The automated Python tests can be run from the bedrock-core
directory by simply executing pytest
.
The default installation includes only a select few packages. We'll install two more with the following commands:
./bin/docker_install_opal.sh -g https://github.com/Bedrock-py/opal-analytics-logit2.git $ID
./bin/docker_install_opal.sh -g https://github.com/Bedrock-py/opal-analytics-summarize.git $ID