Build docker images
This page describes how to build the Altair Docker images and is provided for reference only. You don't need to build the Docker images to use the Altair emulator.
Altair on ARM64 and AMD64
Change to the Docker folder
cd Docker
Switch Docker driver
docker buildx create --use
Clear the Docker Buildx cache
docker buildx prune -a
Build the Docker image
docker buildx build . --platform linux/arm64,linux/amd64 --tag YOUR_DOCKER_ID/altair8800:latest --push
Altair on Raspberry Pi OS 64 bit (ARM64) with Pi Sense HAT
Change to the Docker folder
cd Docker
Edit and uncomment the following line in the dockerfile to enable PI Sense HAT image build.
#<REMOVE_THIS_COMMENT_TO_ENABLE_PI_SENSE_HAT>RUN cd /Altair8800/AltairHL_emulator && sed -i 's/# set(ALTAIR_FRONT_PI_SENSE_HAT/set(ALTAIR_FRONT_PI_SENSE_HAT/g' CMakeLists.txt
Clear the Docker Buildx cache
docker buildx prune -a
Build the Docker image
docker buildx build . --platform linux/arm64 --tag YOUR_DOCKER_ID/altair8800-pisense:latest --push
Altair as a shared service
Change to the Docker folder
cd Docker
Edit and uncomment the following line in the dockerfile to enable cloud image build.
#<REMOVE_THIS_COMMENT_TO_ENABLE_CLOUD>RUN cd /Altair8800/AltairHL_emulator && sed -i 's/# set(ALTAIR_CLOUD/set(ALTAIR_CLOUD/g' CMakeLists.txt
Clear the Docker Buildx cache
docker buildx prune -a
Build the Docker image
docker buildx build . --platform linux/arm64,linux/amd64 --tag YOUR_DOCKER_ID/altair8800-cloud:latest --push
Clean up
After building the Docker images:
Clear the Docker Buildx cache
docker buildx prune -a
Switch back to the default Docker context.
docker buildx use default && docker context use default