mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 05:10:47 -05:00
Update Dockerfile.dotnet to include jq package and update README.md with build and push commands for Docker images
This commit is contained in:
parent
530edfff0d
commit
f3eb3fa77c
@ -3,6 +3,6 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0
|
|||||||
|
|
||||||
# Install necessary tools and dependencies (git, zstd, wget, and p7zip-full)
|
# Install necessary tools and dependencies (git, zstd, wget, and p7zip-full)
|
||||||
RUN apt-get update && \
|
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 && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
22
README.md
22
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.
|
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
|
# Build and push the spt-build-server Docker image to the Docker Hub
|
||||||
git clone https://dev.sp-tarkov.com/SPT-AKI/Build.git C:\Code\Build
|
docker build -t refringe/spt-build-server:0.0.0 -t refringe/spt-build-server:latest -f Dockerfile.server .
|
||||||
cd C:\Code\Build
|
docker push refringe/spt-build-server --all-tags
|
||||||
|
|
||||||
# Build the Docker container
|
# Build and push the spt-build-dotnet Docker image to the Docker Hub
|
||||||
docker build -t spt-build-environment .
|
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
|
||||||
# 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
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user