- Create layered container architecture: Base, Light, Full, Computational - Implement non-root user management with UID/GID mapping - Add Markwhen timeline tool to documentation stack - Create wrapper scripts for environment variable handling - Update documentation across all containers - Establish naming convention using RCEO-AIOS-Public-Tools- prefix - Add organizational rule to keep repository root clean - Remove old unorganized container files
58 lines
2.0 KiB
Bash
Executable File
58 lines
2.0 KiB
Bash
Executable File
#!/bin/bash
|
|
# build-containers.sh - Script to build all documentation containers
|
|
|
|
echo "Starting build of RCEO-AIOS-Public documentation containers..."
|
|
echo "This may take several minutes, especially for the Full and Computational containers due to LaTeX and other heavy packages."
|
|
echo ""
|
|
|
|
# Build the Base container first (foundation for others)
|
|
echo "Building Base container..."
|
|
cd /home/localuser/AIWorkspace/AIOS-Public/Docker/RCEO-AIOS-Public-Tools-DocMaker-Base
|
|
./docker-compose-wrapper.sh build
|
|
if [ $? -ne 0 ]; then
|
|
echo "Error building Base container. Exiting."
|
|
exit 1
|
|
fi
|
|
echo "Base container build complete"
|
|
echo ""
|
|
|
|
# Build the Light container
|
|
echo "Building Light container..."
|
|
cd /home/localuser/AIWorkspace/AIOS-Public/Docker/RCEO-AIOS-Public-Tools-DocMaker-Light
|
|
./docker-compose-wrapper.sh build
|
|
if [ $? -ne 0 ]; then
|
|
echo "Error building Light container. Exiting."
|
|
exit 1
|
|
fi
|
|
echo "Light container build complete"
|
|
echo ""
|
|
|
|
# Build the Full container (this will take longer due to LaTeX-full)
|
|
echo "Building Full container (this may take several minutes due to texlive-full)..."
|
|
cd /home/localuser/AIWorkspace/AIOS-Public/Docker/RCEO-AIOS-Public-Tools-DocMaker-Full
|
|
./docker-compose-wrapper.sh build
|
|
if [ $? -ne 0 ]; then
|
|
echo "Error building Full container. Exiting."
|
|
exit 1
|
|
fi
|
|
echo "Full container build complete"
|
|
echo ""
|
|
|
|
# Build the Computational container (this will also take some time)
|
|
echo "Building Computational container..."
|
|
cd /home/localuser/AIWorkspace/AIOS-Public/Docker/RCEO-AIOS-Public-Tools-DocMaker-Computational
|
|
./docker-compose-wrapper.sh build
|
|
if [ $? -ne 0 ]; then
|
|
echo "Error building Computational container. Exiting."
|
|
exit 1
|
|
fi
|
|
echo "Computational container build complete"
|
|
echo ""
|
|
|
|
echo "All containers built successfully!"
|
|
echo ""
|
|
echo "You can now run individual containers with:"
|
|
echo " cd /home/localuser/AIWorkspace/AIOS-Public/Docker/RCEO-AIOS-Public-Tools-DocMaker-[type]"
|
|
echo " ./docker-compose-wrapper.sh up"
|
|
echo ""
|
|
echo "Where [type] is: Base, Light, Full, or Computational" |