Changing builds to JRE, and moving Java8 to pinned version for forge (#1382)

This commit is contained in:
chblodg
2022-02-24 10:18:49 -08:00
committed by GitHub
parent 7ba6ef9ad8
commit 5f1d7c6d31
10 changed files with 65 additions and 37 deletions
+9 -2
View File
@@ -23,10 +23,17 @@ $env:IMAGE_TO_TEST="mc-dev"
docker build -t $env:IMAGE_TO_TEST .
pushd "tests/setuponlytests/$env:FOLDER_TO_TEST/"
docker-compose run mc
docker-compose down --remove-orphans
docker-compose down -v --remove-orphans
popd
```
PowerShell: Building different images of Java for testing
```powershell
$env:BASE_IMAGE='eclipse-temurin:8u312-b07-jre'
$env:IMAGE_TO_TEST="mc-dev"
docker build --build-arg BASE_IMAGE=$env:BASE_IMAGE -t $env:IMAGE_TO_TEST .
```
Bash: (Example of building and testing ForgeAPI)
```bash
export MODS_FORGEAPI_KEY='$2a$...'
@@ -35,7 +42,7 @@ export IMAGE_TO_TEST="mc-dev"
docker build -t $IMAGE_TO_TEST .
pushd tests/setuponlytests/$FOLDER_TO_TEST/
docker-compose run mc
docker-compose down --remove-orphans
docker-compose down -v --remove-orphans
popd
```