diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 08ecc0379..9f34c7f5e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -106,45 +106,6 @@ jobs: name: docker-database-production_up path: /tmp/database_up.tar - ############################################################################## - # JOB: DOCKER BUILD PRODUCTION LOGIN SERVER ################################## - ############################################################################## - build_production_login_server: - name: Docker Build Production - Login Server - runs-on: ubuntu-latest - #needs: [nothing] - steps: - ########################################################################## - # CHECKOUT CODE ########################################################## - ########################################################################## - - name: Checkout code - uses: actions/checkout@v2 - with: - submodules: recursive - ########################################################################## - # SET ENVS ############################################################### - ########################################################################## - - name: ENV - VERSION - run: echo "VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV - - name: ENV - BUILD_DATE - run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV - - name: ENV - BUILD_VERSION - run: echo "BUILD_VERSION=${VERSION}.${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV - - name: ENV - BUILD_COMMIT - run: echo "BUILD_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV - ########################################################################## - # LOGIN SERVER ########################################################### - ########################################################################## - - name: Login Server | Build `production` image - run: | - docker build -t "gradido/login_server:latest" -t "gradido/login_server:production" -t "gradido/login_server:${VERSION}" -t "gradido/login_server:${BUILD_VERSION}" login_server/ - docker save "gradido/login_server" > /tmp/login_server.tar - - name: Upload Artifact - uses: actions/upload-artifact@v2 - with: - name: docker-login-server-production - path: /tmp/login_server.tar - ############################################################################## # JOB: DOCKER BUILD PRODUCTION COMMUNITY SERVER ############################## ############################################################################## @@ -262,7 +223,7 @@ jobs: upload_to_dockerhub: name: Upload to Dockerhub runs-on: ubuntu-latest - needs: [build_production_frontend, build_production_backend, build_production_database_up, build_production_login_server, build_production_community_server, build_production_mariadb, build_production_nginx] + needs: [build_production_frontend, build_production_backend, build_production_database_up, build_production_community_server, build_production_mariadb, build_production_nginx] env: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} @@ -296,13 +257,6 @@ jobs: path: /tmp - name: Load Docker Image run: docker load < /tmp/database_up.tar - - name: Download Docker Image (Login Server) - uses: actions/download-artifact@v2 - with: - name: docker-login-server-production - path: /tmp - - name: Load Docker Image - run: docker load < /tmp/login_server.tar - name: Download Docker Image (Community Server) uses: actions/download-artifact@v2 with: @@ -335,8 +289,6 @@ jobs: run: docker push --all-tags gradido/backend - name: Push database run: docker push --all-tags gradido/database - - name: Push login_server - run: docker push --all-tags gradido/login_server - name: Push community_server run: docker push --all-tags gradido/community_server - name: Push MariaDB diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b21d0d355..9a87d27cb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -107,28 +107,6 @@ jobs: name: docker-database-test_up path: /tmp/database_up.tar - ############################################################################## - # JOB: DOCKER BUILD TEST LOGIN SERVER ######################################## - ############################################################################## - build_test_login_server: - name: Docker Build Test - Login Server - runs-on: ubuntu-latest - #needs: [nothing] - steps: - ########################################################################## - # CHECKOUT CODE ########################################################## - ########################################################################## - - name: Checkout code - uses: actions/checkout@v2 - with: - submodules: true - ########################################################################## - # BUILD LOGIN SERVER DOCKER IMAGE ######################################## - ########################################################################## - - name: login server | Build `release` image - run: | - docker build -t "gradido/login_server:release" -f ./login_server/Dockerfile login_server/ - ############################################################################## # JOB: DOCKER BUILD TEST COMMUNITY SERVER #################################### ############################################################################## @@ -531,73 +509,6 @@ jobs: min_coverage: 38 token: ${{ github.token }} - ############################################################################## - # JOB: UNIT TEST LOGIN-SERVER ############################################### - ############################################################################## - unit_test_login_server: - name: Unit tests - Login-Server - runs-on: ubuntu-latest - needs: [] - services: - mariadb: - image: gradido/mariadb:test - env: - MARIADB_ALLOW_EMPTY_PASSWORD: 1 - MARIADB_USER: root - ports: - - 3306:3306 - options: --health-cmd="mysqladmin ping" - --health-interval=6s - --health-timeout=3s - --health-retries=4 - steps: - # - name: Debug service - # run: echo "$(docker ps)" - #- name: Debug container choosing script - # run: echo "$(docker container ls | grep mariadb | awk '{ print $1 }')" - - name: get mariadb container id - run: echo "::set-output name=id::$(docker container ls | grep mariadb | awk '{ print $1 }')" - id: mariadb_container - - name: get automatic created network - run: echo "::set-output name=id::$(docker network ls | grep github_network | awk '{ print $1 }')" - id: network - ########################################################################## - # CHECKOUT CODE ########################################################## - ########################################################################## - - name: Checkout code - uses: actions/checkout@v2 - with: - submodules: true - # Database migration - - name: Start database migration - run: | - docker build --target production_up -t "gradido/database:production_up" database/ - docker run --network ${{ steps.network.outputs.id }} --name=database --env NODE_ENV=production --env DB_HOST=mariadb --env DB_DATABASE=gradido_community_test -d gradido/database:production_up - ########################################################################## - # Build Login-Server Test Docker image ################################### - ########################################################################## - - name: login server | Build `test` image - run: | - docker build -t "gradido/login_server:test" -f ./login_server/Dockerfiles/ubuntu/Dockerfile.test login_server/ - ########################################################################## - # UNIT TESTS BACKEND LOGIN-SERVER ####################################### - ########################################################################## - - name: Login-Server | Unit tests - run: | - docker run --network container:$(docker container ls | grep mariadb | awk '{ print $1 }') -v ~/coverage:/code/build_cov/coverage -v $(pwd)/configs/login_server:/etc/grd_login gradido/login_server:test - cp -r ~/coverage ./coverage - ########################################################################## - # COVERAGE CHECK BACKEND LOGIN-SERVER #################################### - ########################################################################## - - name: backend login | Coverage check - uses: webcraftmedia/coverage-check-action@master - with: - report_name: Coverage Backend Login - type: lcov - result_path: ./coverage/coverage.info - min_coverage: 34 - token: ${{ github.token }} - ############################################################################## # JOB: UNIT TEST COMMUNITY-SERVER ########################################### ############################################################################## @@ -627,11 +538,6 @@ jobs: - name: get database migration container id run: echo "::set-output name=id::$(docker container ls | grep database | awk '{ print $1 }')" id: database_container - - name: Start Login-Server - run: docker run --network ${{ steps.network.outputs.id }} --name=login-server -d gradido/login_server:with-config - - name: get login-server container id - run: echo "::set-output name=id::$(docker container ls | grep login_server | awk '{ print $1 }')" - id: login_server_container ########################################################################## # CHECKOUT CODE ########################################################## ########################################################################## diff --git a/.gitmodules b/.gitmodules index 22790ccc7..e884aaf3e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,34 +3,6 @@ url = https://github.com/gradido/gn.git branch = master -[submodule "login_server/dependencies/tinf"] - path = login_server/dependencies/tinf - url = https://github.com/jibsen/tinf.git -[submodule "login_server/dependencies/mariadb-connector-c"] - path = login_server/dependencies/mariadb-connector-c - url = https://github.com/MariaDB/mariadb-connector-c.git -[submodule "login_server/src/proto"] - path = login_server/src/proto - url = https://github.com/gradido/gradido_protocol.git -[submodule "login_server/dependencies/spirit-po"] - path = login_server/dependencies/spirit-po - url = https://github.com/cbeck88/spirit-po.git -[submodule "login_server/dependencies/poco"] - path = login_server/dependencies/poco - url = https://github.com/pocoproject/poco.git -[submodule "login_server/dependencies/cmake-modules"] - path = login_server/dependencies/cmake-modules - url = https://github.com/viaduck/cmake-modules.git - [submodule "community_server/src/protobuf"] path = community_server/src/protobuf url = https://github.com/gradido/gradido_protocol.git -[submodule "login_server/dependencies/libsodium"] - path = login_server/dependencies/libsodium - url = https://github.com/jedisct1/libsodium.git -[submodule "login_server/src/proto"] - path = login_server/src/proto - url = https://github.com/gradido/gradido_protocol.git -[submodule "login_server/dependencies/protobuf"] - path = login_server/dependencies/protobuf - url = https://github.com/protocolbuffers/protobuf.git