mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-21 22:43:19 +00:00
Adding support for crafting tweaks and resource packs (#1336)
Co-authored-by: christopher blodgett <christopher.blodgett@gmail.com> Co-authored-by: Geoff Bourne <itzgeoff@gmail.com> Co-authored-by: Floyd Everest <me@floydeverest.com>
This commit is contained in:
co-authored by
christopher blodgett
Geoff Bourne
Floyd Everest
parent
eb6c7c98f0
commit
aa7b997697
+19
-3
@@ -15,8 +15,24 @@ Individual scripts can be iteratively developed, debugged, and tested using the
|
||||
|
||||
First, build a baseline of the image to include the packages needed by existing or new scripts:
|
||||
|
||||
```shell script
|
||||
docker build -t mc-dev .
|
||||
PowerShell:
|
||||
```powershell
|
||||
$env:IMAGE_TO_TEST="mc-dev"
|
||||
docker build -t $env:IMAGE_TO_TEST .
|
||||
pushd tests/setuponlytests/vanillatweaks_file/
|
||||
docker-compose run mc
|
||||
docker-compose down --remove-orphans
|
||||
popd
|
||||
```
|
||||
|
||||
Bash:
|
||||
```bash
|
||||
export IMAGE_TO_TEST=mc-dev
|
||||
docker build -t $IMAGE_TO_TEST .
|
||||
pushd tests/setuponlytests/vanillatweaks_file/
|
||||
docker-compose run mc
|
||||
docker-compose down --remove-orphans
|
||||
popd
|
||||
```
|
||||
|
||||
Using the baseline image, an interactive container can be started to iteratively run the scripts to be developed. By attaching the current workspace directory, you can use the local editor of your choice to iteratively modify scripts while using the container to run them.
|
||||
@@ -116,4 +132,4 @@ for b in "${branches[@]}"; do
|
||||
git merge -s ours -m "Track latest from master" master
|
||||
git push origin
|
||||
done
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user