diff --git a/.balena/balena.yml b/.balena/balena.yml index d9e642c..9859183 100644 --- a/.balena/balena.yml +++ b/.balena/balena.yml @@ -1,4 +1,25 @@ name: Minecraft Server +description: >- + A Portable Minecraft Server Minecraft server that you can easily run on your Raspberry Pi. +type: sw.application +fleetcta: A Portable Minecraft Server +post-provisioning: >- + For usage instructions check out the [readme here](https://github.com/grey-cat-1908/portable-mc-server). +assets: + repository: + type: blob.asset + data: + url: 'https://github.com/grey-cat-1908/portable-mc-server' + logo: + type: blob.asset + data: + url: >- + https://raw.githubusercontent.com/grey-cat-1908/portable-mc-server/master/static/logo.png data: applicationEnvironmentVariables: - - RAM: 1G \ No newline at end of file + - RAM: 1G + defaultDeviceType: raspberrypi4-64 + supportedDeviceTypes: + - raspberrypi4-64 + - raspberrypi5 + version: 1.0.0 \ No newline at end of file diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..179e50a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.git +.github +static \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..62c8935 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ \ No newline at end of file diff --git a/README.md b/README.md index 95f0944..2416f51 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ This is a project that allows you to easily install and configure a minecraft se ## Setup +![wifi connect](https://raw.githubusercontent.com/balena-os/wifi-connect/master/docs/images/how-it-works.png) + ... ToDo...? ## Connect to the server diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..afaf360 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.0.0 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 56372fc..dc69f32 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: '2' +version: '2.1' services: minecraft: network_mode: host @@ -29,6 +29,14 @@ services: ports: - "22:22/tcp" - "22:22/udp" + wifi-connect: + build: ./wifi-connect + restart: always + network_mode: host + privileged: true + labels: + io.balena.features.dbus: "1" + io.balena.features.firmware: "1" volumes: mcfiles: localcache: \ No newline at end of file diff --git a/repo.yml b/repo.yml new file mode 100644 index 0000000..81673e9 --- /dev/null +++ b/repo.yml @@ -0,0 +1,4 @@ +type: generic +upstream: + - repo: portable-mc-server + url: https://github.com/grey-cat-1908/portable-mc-server \ No newline at end of file diff --git a/static/logo.png b/static/logo.png new file mode 100644 index 0000000..1e83d6f Binary files /dev/null and b/static/logo.png differ diff --git a/wifi-connect/Dockerfile.template b/wifi-connect/Dockerfile.template new file mode 100644 index 0000000..9a44ecc --- /dev/null +++ b/wifi-connect/Dockerfile.template @@ -0,0 +1,4 @@ +FROM bh.cr/balenalabs/wifi-connect-%%BALENA_ARCH%% + +ENV PORTAL_SSID="MinecraftServerSetup" +ENV PORTAL_PASSPHRASE="yourportablemcserver" \ No newline at end of file