Skip to content

Commit 77206e1

Browse files
committed
Merge branch 'golang'
2 parents 32c9fe6 + 13ee5e7 commit 77206e1

File tree

330 files changed

+14171
-6426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

330 files changed

+14171
-6426
lines changed

.dockerignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.git/**
2+
dist/**
3+
node_modules/**
4+
5+
.gitignore
6+
LICENSE
7+
README

.gitignore

+23-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
1-
/nbproject/
2-
/vendor/
3-
composer.phar
4-
config/config.json
5-
.idea/
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

CNAME

-1
This file was deleted.

Dockerfile

+41-39
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,44 @@
1-
FROM php:7-fpm-alpine
2-
3-
RUN apk add --no-cache --virtual .composer-rundeps git subversion openssh-client mercurial tini bash patch make zip unzip coreutils \
4-
&& apk add --no-cache --virtual .build-deps zlib-dev libzip-dev \
5-
&& docker-php-ext-configure zip --with-libzip=/usr/include \
6-
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip opcache \
7-
&& docker-php-ext-install pdo_mysql \
8-
&& runDeps="$( \
9-
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
10-
| tr ',' '\n' \
11-
| sort -u \
12-
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
13-
)" \
14-
&& apk add --no-cache --virtual .composer-phpext-rundeps $runDeps \
15-
&& apk del .build-deps \
16-
&& printf "# composer php cli ini settings\n\
17-
date.timezone=UTC\n\
18-
memory_limit=-1\n\
19-
opcache.enable_cli=1\n\
20-
" > $PHP_INI_DIR/php-cli.ini
21-
22-
ENV COMPOSER_ALLOW_SUPERUSER 1
23-
ENV COMPOSER_HOME /tmp
24-
ENV COMPOSER_VERSION 1.9.0
25-
26-
RUN curl --silent --fail --location --retry 3 --output /tmp/installer.php --url https://raw.githubusercontent.com/composer/getcomposer.org/cb19f2aa3aeaa2006c0cd69a7ef011eb31463067/web/installer \
27-
&& php -r " \
28-
\$signature = '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5'; \
29-
\$hash = hash('sha384', file_get_contents('/tmp/installer.php')); \
30-
if (!hash_equals(\$signature, \$hash)) { \
31-
unlink('/tmp/installer.php'); \
32-
echo 'Integrity check failed, installer is either corrupt or worse.' . PHP_EOL; \
33-
exit(1); \
34-
}" \
35-
&& php /tmp/installer.php --no-ansi --install-dir=/usr/bin --filename=composer --version=${COMPOSER_VERSION} \
36-
&& composer --ansi --version --no-interaction \
37-
&& rm -f /tmp/installer.php \
38-
&& find /tmp -type d -exec chmod -v 1777 {} +
1+
###
2+
# Builder to compile our golang code
3+
###
4+
FROM golang:alpine AS builder
395

6+
ARG tags=none
7+
8+
ENV CGOENABLED=1
9+
10+
RUN go version && \
11+
apk add --update --no-cache git curl nodejs nodejs-npm && \
12+
mkdir /panel
13+
14+
WORKDIR /build
4015
COPY . .
16+
RUN go build -v -tags $tags -o /panel/panel -v github.com/MinecraftHopper/panel && \
17+
npm install && \
18+
npm run-script build && \
19+
mv dist/* /panel
20+
21+
###
22+
# Now generate our smaller image
23+
###
24+
FROM alpine
25+
26+
COPY --from=builder /panel /panel
27+
28+
ENV DISCORD.CLIENTID=
29+
ENV DISCORD.CLIENTSECRET=
30+
ENV DB.USERNAME=panel
31+
ENV DB.PASSWORD=panel
32+
ENV DB.HOST=127.0.0.1
33+
ENV DB.DATABASE=panel
34+
ENV SECRET.NAME=panel
35+
ENV SESSION.SECRET=secret
36+
ENV WEB.HOST=http://localhost:8080
37+
ENV WEB.ROOT=/panel
38+
39+
WORKDIR /panel
40+
41+
EXPOSE 8080
4142

42-
RUN composer install
43+
ENTRYPOINT ["/panel/panel"]
44+
CMD []

README.md

+24-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
# Installation
2-
3-
1) Place the assets, config, error, and html into your web server folder.
4-
5-
2) Configure your web server to use html as the root folder
6-
7-
3) Configure your web server to send /assets/ to the assets folder
8-
9-
4) Configure your web server to send all php requests to /index.php
10-
11-
5) Execute the initialDatabase.sql file
12-
13-
6) Create a mysql user which has access to the authentication and factoid databases.
14-
15-
7) Set the mysql information in the config/config.php file. An example file is provided as defaultconfig.php.
16-
17-
8) Run the composer install and place /vendor at assets/php/
18-
19-
9) Execute the initialDatabase.sql in your database
1+
# cp.ae97.net
2+
3+
## Project setup
4+
```
5+
npm install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
npm run serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
npm run build
16+
```
17+
18+
### Lints and fixes files
19+
```
20+
npm run lint
21+
```
22+
23+
### Customize configuration
24+
See [Configuration Reference](https://cli.vuejs.org/config/).

assets/css/bootstrap-markdown.min.css

-1
This file was deleted.

assets/css/bootstrap.min.css

-5
This file was deleted.

assets/css/custom.min.css

-1
This file was deleted.

assets/css/dashboard.min.css

-1
This file was deleted.

assets/css/register.min.css

-1
This file was deleted.

assets/css/signin.min.css

-1
This file was deleted.

assets/css/theme.min.css

-1
This file was deleted.
-19.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)