diff --git a/Dockerfile.dotnet b/Dockerfile.dotnet index 27e577c..1f1208c 100644 --- a/Dockerfile.dotnet +++ b/Dockerfile.dotnet @@ -3,6 +3,6 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0 # Install necessary tools and dependencies (git, zstd, wget, and p7zip-full) RUN apt-get update && \ - apt-get install -y git zstd wget p7zip-full && \ + apt-get install -y git zstd wget jq p7zip-full && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* diff --git a/README.md b/README.md index ff45f70..b322779 100644 --- a/README.md +++ b/README.md @@ -69,18 +69,16 @@ docker run --detach --volume=//./pipe/docker_engine://./pipe/docker_engine --env To build the Modules project, a link to a private repository is required for the build process. The link is stored as a secret in the Drone CI/CD environment. The secret is named `MODULE_DOMAIN` and is used to download files from the private repository. -## Testing Build Process +## Building the Docker Images -To test the build process, the following commands can be used to build the Docker image and run the container on the Windows Server 2022 host. Be sure to replace the `MODULE_DOMAIN` environment variable with a valid value. +Be sure to update the version number to the next available version before building and pushing the Docker images. you must be logged into Docker Desktop to push the images. -```powershell -# Clone the repository and move inside the project directory -git clone https://dev.sp-tarkov.com/SPT-AKI/Build.git C:\Code\Build -cd C:\Code\Build - -# Build the Docker container -docker build -t spt-build-environment . - -# Run the build script -docker run --rm -v "C:\Code\Build:C:\Code" -e MODULE_DOMAIN="https://example.com" spt-build-environment powershell -File C:\Code\project\build.ps1 +``` +# Build and push the spt-build-server Docker image to the Docker Hub +docker build -t refringe/spt-build-server:0.0.0 -t refringe/spt-build-server:latest -f Dockerfile.server . +docker push refringe/spt-build-server --all-tags + +# Build and push the spt-build-dotnet Docker image to the Docker Hub +docker build -t refringe/spt-build-dotnet:0.0.0 -t refringe/spt-build-dotnet:latest -f Dockerfile.dotnet . +docker push refringe/spt-build-dotnet --all-tags ```