Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/base'
Browse files Browse the repository at this point in the history
  • Loading branch information
hmy2001 committed Jan 4, 2021
2 parents c624dda + 1998abd commit a9ee8ad
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 6 deletions.
13 changes: 12 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{
"image": "ghcr.io/bigbrotherteam/bigbrother/php"
"dockerComposeFile": "../docker-compose.yml",
"workspaceFolder": "/usr/local/src/BigBrother",
"service": "vscode",
"shutdownAction": "stopCompose",
"postCreateCommand": "apt-get -y install docker docker-compose",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"extensions": [
"editorconfig.editorconfig",
"felixfbecker.php-intellisense"
]
}
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
docker:
name: build docker image
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'BigBrotherTeam' }}
if: ${{ github.repository_owner == 'BigBrotherTeam' && github.ref == 'refs/head/base' }}
strategy:
matrix:
php:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
- name: upload artifact
uses: actions/upload-artifact@v2
if: ${{ matrix.php == '7.4.13' }}
if: ${{ matrix.php == '7.4.13' && github.ref != 'refs/heads/base' }}
with:
name: BigBrother.phar
path: build/BigBrother.phar
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

data/
plugins/

build/
vendor/
resources/revision

composer.lock
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"files.exclude": {
".git": true,
"data": true,
"plugins": true,
"build": true,
"vendor": true
}
}
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"label": "build",
"type": "shell",
"command": "composer build",
"command": "composer build && cp -f build/BigBrother.phar plugins/BigBrother.phar && docker-compose restart pmmp",
"group": {
"kind": "build",
"isDefault": true
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
FROM php:7-zts

RUN apt update
RUN apt-get install -y git curl libyaml-dev libzip-dev
RUN apt-get install -y git curl unzip libyaml-dev

RUN docker-php-ext-install sockets
RUN docker-php-ext-install bcmath
RUN docker-php-ext-install zip

RUN pecl install channel://pecl.php.net/yaml-2.0.4
RUN docker-php-ext-enable yaml
Expand Down
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: '3'
services:
vscode:
image: ghcr.io/bigbrotherteam/bigbrother/php
command: sleep infinity
working_dir: /usr/local/src/BigBrother
volumes:
- .:/usr/local/src/BigBrother
- /var/run/docker.sock:/var/run/docker.sock

pmmp:
image: pmmp/pocketmine-mp
user: root
volumes:
- ./data:/data
- ./plugins:/plugins
ports:
- 19132:19132/tcp
- 19132:19132/udp
- 25565:25565/tcp

0 comments on commit a9ee8ad

Please sign in to comment.