Skip to content

Commit

Permalink
Merge dev onto master
Browse files Browse the repository at this point in the history
Mergation
  • Loading branch information
schlusslicht authored Sep 16, 2019
2 parents e7f2dc8 + c9aec11 commit b185b84
Show file tree
Hide file tree
Showing 722 changed files with 37,867 additions and 17,092 deletions.
81 changes: 32 additions & 49 deletions .deployment
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,35 @@ DOCKERFILE<<'EOF'
# codeschluss/wupportal
FROM alpine:latest
LABEL maintainer [email protected]
COPY backend /tmp/backend
COPY frontend /tmp/frontend
COPY client /tmp/client
COPY server /tmp/server
RUN \
#
# packages
apk --no-cache add \
nginx \
php7 \
php7-ctype \
php7-curl \
php7-dom \
php7-fpm \
php7-gd \
php7-intl \
php7-json \
php7-mbstring \
php7-pdo \
php7-pdo_mysql \
php7-simplexml \
php7-session \
php7-tokenizer \
php7-xml \
php7-xmlreader \
php7-xmlwriter \
php7-zlib && \
openjdk8-jre && \
apk --no-cache --virtual build add \
bash \
curl \
maven \
ncurses \
nodejs-npm \
php7-phar && \
openjdk8 && \
#
# composer
cd $(mktemp -d) && \
curl -sS https://getcomposer.org/installer | php && \
export COMPOSER_BIN=$(pwd)/composer.phar && \
#
# frontend
cd /tmp/frontend && \
# client
cd /tmp/client && \
npm install && \
npm run strip && \
#
# backend
cd /tmp/backend && \
${COMPOSER_BIN} install --no-dev --optimize-autoloader && \
# server
cd /tmp/server && \
mvn -B install -DskipTests=true \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn && \
#
# deploy
mkdir -p /usr/share/webapps && \
mv /tmp/backend /usr/share/webapps/wupportal && \
ln -fs /conf/app.php /usr/share/webapps/wupportal/config/app.php && \
mkdir -p /usr/share/webapps/wupportal && \
mv /tmp/client/target /usr/share/webapps/wupportal/client && \
mv /tmp/server/target/*.jar /usr/share/webapps/wupportal/server.jar && \
ln -fs /conf/application-default.properties /usr/share/webapps/wupportal && \
#
# cleanup
apk del --purge build && \
Expand All @@ -62,8 +42,9 @@ EXPOSE 80
#
# runtime
CMD \
php-fpm7 -R -c /conf/php-fpm.ini -y /conf/php-fpm.conf && \
nginx -c /conf/nginx.conf -g 'daemon off;'
nginx -c /conf/nginx.conf && \
cd /usr/share/webapps/wupportal && \
java -jar server.jar
EOF

DOCKERIGNORE<<'EOF'
Expand All @@ -72,16 +53,18 @@ DOCKERIGNORE<<'EOF'
.dockerignore
Dockerfile

backend/bin
backend/config/app.php
backend/composer.lock
backend/logs/*.log
backend/tests
backend/tmp
backend/vendor
backend/webroot/js
client/node_modules
client/package-lock.json
client/target

frontend/node_modules
frontend/npm-debug.log
frontend/package-lock.json
server/.gitignore
server/.metadata
server/.recommenders
server/.settings
server/bin
server/src/main/resources/application-credentials.properties
server/src/main/resources/application-existing.properties
server/src/main/resources/db/output/*.yaml
server/src/main/resources/db/output/*.xml
server/target
EOF
22 changes: 11 additions & 11 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# Editor configuration, see http://editorconfig.org
root = true

[frontend/**]
[*]
charset = utf-8
indent_style = tab
tab_width = 2
end_of_line = lf
indent_brace_style = K&R
insert_final_newline = true
spaces_around_brackets = none
spaces_around_operators = true
trim_trailing_whitespace = true

[frontend/**/*.html]
max_line_length = 30

[backend/**]
indent_style = tab
[client/**]
indent_style = space
quote_type = single
tab_width = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[server/**]
indent_style = space
tab_width = 4

[*.md]
max_line_length = off
Expand Down
28 changes: 13 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
backend/bin
backend/config/app.php
backend/composer.lock
backend/logs/*.log*
backend/tests
backend/tmp
backend/vendor
backend/webroot/js
client/node_modules
client/package-lock.json
client/target

frontend/node_modules
frontend/npm-debug.log
frontend/package-lock.json
server/.gitignore
server/.metadata
server/.recommenders
server/.settings
server/bin
server/src/main/resources/application-credentials.properties
server/src/main/resources/application-existing.properties
server/src/main/resources/db/output/*.yaml
server/src/main/resources/db/output/*.xml
server/target

server/.metadata/*
server/.recommenders/
server/wupportal/target/*
server/RemoteSystemsTempFiles/*
50 changes: 0 additions & 50 deletions backend/composer.json

This file was deleted.

30 changes: 0 additions & 30 deletions backend/config/.env.default

This file was deleted.

Loading

0 comments on commit b185b84

Please sign in to comment.