Sign inSign up

bitcoinquantum/btq

By bitcoinquantum

•Updated about 2 years ago

BTQ is a state-of-the-art cryptocurrency.

Image
Security
0

397

bitcoinquantum/btq repository overview

BTQ is a state-of-the-art cryptocurrency that combines Bitcoin's trusted economic framework with advanced quantum-resistant security measures. It maintains a total supply of 21 million units, mirroring Bitcoin's limited availability. BTQ distinguishes itself by utilizing a dual-mining approach: it supports CPU-friendly RandomX algorithm and extends to GPU mining with Cryptonight cn/0. This combination democratizes mining and minimizes the risk of hardware centralization. BTQ features a unique emission schedule spread over approximately 1000 years, with a 5% decrease in block rewards every 525,600 blocks, aiming for long-term sustainability and market stability. Moreover, BTQ is advancing its technology with the development of a Proof-of-Stake system, ensuring it remains resilient and efficient amidst the evolving blockchain technology landscape and quantum computing advancements.

⁠BTQ Docker Image

This Dockerfile creates a Docker image based on Ubuntu 22.04, specifically designed for running applications related to Bitcoin Quantum (BTQ). It includes Python 3.10 and other necessary packages to support the execution of BTQ-related tasks.

⁠Features

  • Base Image: Utilizes Ubuntu 22.04 for compatibility and stability.
  • Python 3.10: Includes the installation of Python 3.10 to support modern Python applications.
  • Pre-installed Packages: Contains essential build tools and libraries necessary for most BTQ-related applications.

⁠Installation

To use this Docker image, you need to have Docker installed on your system. Once Docker is installed, you can build the image using the following command:

docker build -t btq_image .

This command builds the Docker image with the tag btq_image using the Dockerfile in the current directory.

⁠Usage

To run the Docker container from the built image, use:

docker run -it --name btq_container btq_image

This command starts a container named btq_container using the btq_image image and provides an interactive terminal.

To run the Docker container from the built image, you can use the following command which also maps the container ports to the host machine. This allows the containerized application to communicate with external networks through specified ports.

docker run -it --name btq_container -p 19007:19007 -p 19008:19008 -p 19009:19009 -p 19010:19010 -p 19090:19090 -p 19091:19091 -p 52134:52134 btq_image
⁠Explanation of Parameters:
  • -it: Runs the container in interactive mode with a tty, allowing you to interact with the command line inside the container.
  • --name btq_container: Assigns the name btq_container to the new container instance.
  • -p <host_port>:<container_port>: Maps a port on the host machine to a port on the container. This is done for multiple ports as per the requirements of the BTQ application to ensure all necessary communications are possible.

⁠Configuration

The Dockerfile configures the container to:

  • Avoid interactive prompts during package installations.
  • Set up a working directory /app inside the container.
  • Expose multiple ports that are commonly used by BTQ applications for network communication.

⁠Entry Point

The entrypoint.sh script is set as the entry point of the container. Make sure this script contains the necessary commands to start your BTQ application.

⁠Persistent Storage

If you require persistent storage, consider using Docker volumes or bind mounts to persist data beyond the lifecycle of a single container instance.

⁠Additional Information

For more advanced Docker configurations and commands, refer to the official Docker documentation. This setup is optimized for development and testing purposes. For production environments, further optimizations and security measures are recommended.

Tag summary

Content type

Image

Digest

sha256:8f5ce8a09…

Size

388 MB

Last updated

about 2 years ago

docker pull bitcoinquantum/btq