Skip to content

Commit 3d3812e

Browse files
authored
rm .s2i/ and OpenShift docs (and Bintray) (#269)
1 parent a52a96f commit 3d3812e

File tree

5 files changed

+4
-85
lines changed

5 files changed

+4
-85
lines changed

.s2i/environment

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,10 @@ This project has four parts, delivered separately:
1818

1919
## Get it
2020

21-
[Download the latest storeys-master-all.jar file from Bintray](https://bintray.com/vorburger/minecraft/minecraft-storeys-maker#files).
22-
23-
Place it into your [spongepowered.org](https://www.spongepowered.org) Minecraft, typically the `mods/` directory of a Vanilla server.
21+
Place the `storeys-master-all.jar` into your [spongepowered.org](https://www.spongepowered.org) Minecraft, typically the `mods/` directory of a Vanilla server.
2422

2523
Tested on Sponge Vanilla 7.0.0 (Minecraft 1.12.1) and Sponge Vanilla 5.1.0 (Minecraft 1.10.2). Likely works on Sponge Forge as well.
2624

27-
2825
## Use it
2926

3027
Write your own .story file, e.g. see [hello.story](storeys/src/main/resources/hello.story).
@@ -77,65 +74,16 @@ You can obviously mix the order and repeat titles, comments, chats, narrations,
7774

7875
#### Dockerfile
7976

80-
cd ../s2i-minecraft-server
81-
docker build -t minecraft-server .
82-
83-
cd ../minecraft-storeys-maker
8477
docker build -t minecraft-storeys-maker .
8578

8679
docker run --rm -p 25565:25565 -p 8080:8080 -p 7070:7070 minecraft-storeys-maker
8780

88-
#### S2I
89-
90-
With S2I, and with git reset and clean due to #28 and #71:
91-
92-
cd ../s2i-minecraft-server
93-
s2i build --copy . fabric8/s2i-java s2i-minecraft-server
94-
95-
cd ../minecraft-storeys-maker
96-
git reset --hard; git clean -d -f -x
97-
s2i build --copy . s2i-minecraft-server minecraft-storeys-maker
98-
99-
docker run --rm -p 25565:25565 -p 8080:8080 -p 7070:7070 minecraft-storeys-maker
100-
101-
### OpenShift simple
102-
103-
oc new-build fabric8/s2i-java~https://github.com/vorburger/s2i-minecraft-server
104-
105-
oc new-app s2i-minecraft-server~https://github.com/vorburger/minecraft-storeys-maker.git
106-
107-
This may fail if Builds have memory constraints; if so, Edit YAML to change `resources: {}` to `resources:\n limits:\n memory: 2Gi`.
108-
109-
Now expose the [Minecraft server port 25565 via a LoadBalancer service](https://github.com/vorburger/s2i-minecraft-server/),
110-
and similarly also (specific to this plugin) expose our JS web site code and Vert.x EventBus port, for now via Edit YAML
111-
on the minecraft-storeys-maker(-server) Service, and adding 7070 and 8080 just like 25565. NB that you do not set the
112-
`nodePort:` when editing the YAML; it will get automatically added. We then have to set Environment variables
113-
on the minecraft-storeys-maker(-server) Deployment:
114-
115-
oc get services
81+
We also have to set Environment variables on the minecraft-storeys-maker(-server) Deployment:
11682

11783
storeys_jsURL = http://<EXTERNAL-IP>:7070/minecraft.scratchx.js
11884
storeys_eventBusURL = http://<EXTERNAL-IP>:8080/eventbus
11985

12086

121-
### OpenShift development
122-
123-
It helps to Edit YAML to add `incremental: true` to the `strategy:` / `sourceStrategy:` (This may not work on OpenShift Online, yet).
124-
125-
To use an un-published S2I Java builder image you have to first:
126-
127-
oc new-build https://github.com/fabric8io-images/s2i --context-dir=java/images/centos
128-
129-
and then:
130-
131-
oc new-build s2i~https://github.com/vorburger/s2i-minecraft-server
132-
133-
If have this project's source code locally, then (the `rm .../node_modules` is because of [issue 28](https://github.com/vorburger/minecraft-storeys-maker/issues/28)):
134-
135-
rm -rf scratch/.gradle/ scratch/node_modules
136-
oc start-build minecraft-storeys-maker --from-dir=. --follow
137-
138-
13987
## FAQ
14088

14189
**Seriously, "storeys" (not _"stories"_) Maker, are you mental?** Yeah.. just to avoid any possible confusion with Minecraft Story Mode! ;-)

bintray.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

scratch/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# minecraft-storeys-maker Scratch integration
22

3-
## For end-users on OpenShift
4-
5-
See [../README.md](../README.md).
6-
7-
83
## For developers
94

105
Build the entire project (not just the `scratch/` or `web/`) via `./gradlew build`.

scratch3-server/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ module.exports = (async (minecraft) => {
1717
```
1818

1919
This will register a listener for when an entity named "joe" gets right clicked and let him say: "hello my little friend".
20-
The [minecraft object](api/src/main/typescript/observable-wrapper.ts) has all the functions that the scratch has, this is what scratch uses as well.
21-
These scripts get started run when the server starts.
20+
The [minecraft object](../api/src/main/typescript/observable-wrapper.ts) has all the functions that the scratch has, this is what scratch uses as well.
21+
These scripts get started run when the server starts.

0 commit comments

Comments
 (0)