diff --git a/docker/Dockerfile b/docker/Dockerfile index acac5fa..f243208 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -34,7 +34,7 @@ EXPOSE 443 COPY docker/rootfs / ADD backend /app ADD frontend/dist /app/frontend -COPY global /app/global +COPY global /app/global WORKDIR /app RUN yarn install diff --git a/docker/docker-compose.ci.yml b/docker/docker-compose.ci.yml index 89c3857..771b829 100644 --- a/docker/docker-compose.ci.yml +++ b/docker/docker-compose.ci.yml @@ -47,8 +47,8 @@ services: cypress-mysql: image: ${IMAGE}-cypress:ci-${BUILD_NUMBER} build: - context: ../ - dockerfile: test/cypress/Dockerfile + context: ../test/ + dockerfile: cypress/Dockerfile environment: CYPRESS_baseUrl: "http://fullstack-mysql:81" volumes: @@ -58,8 +58,8 @@ services: cypress-sqlite: image: ${IMAGE}-cypress:ci-${BUILD_NUMBER} build: - context: ../ - dockerfile: test/cypress/Dockerfile + context: ../test/ + dockerfile: cypress/Dockerfile environment: CYPRESS_baseUrl: "http://fullstack-sqlite:81" volumes: diff --git a/test/.dockerignore b/test/.dockerignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/test/.dockerignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/test/cypress/Dockerfile b/test/cypress/Dockerfile index 107fa96..be04748 100644 --- a/test/cypress/Dockerfile +++ b/test/cypress/Dockerfile @@ -1,6 +1,11 @@ -FROM cypress/included:4.12.1 +FROM cypress/included:5.6.0 -COPY --chown=1000 ./test /test +COPY --chown=1000 ./ /test + +# mkcert +ENV MKCERT=1.4.2 +RUN wget -O /usr/bin/mkcert "https://github.com/FiloSottile/mkcert/releases/download/v${MKCERT}/mkcert-v${MKCERT}-linux-amd64" \ + && chmod +x /usr/bin/mkcert WORKDIR /test RUN yarn install diff --git a/test/package.json b/test/package.json index 4dd0224..781597b 100644 --- a/test/package.json +++ b/test/package.json @@ -7,7 +7,7 @@ "@jc21/cypress-swagger-validation": "^0.0.9", "@jc21/restler": "^3.4.0", "chalk": "^4.1.0", - "cypress": "^4.12.1", + "cypress": "^5.6.0", "cypress-multi-reporters": "^1.4.0", "cypress-plugin-retries": "^1.5.2", "eslint": "^7.6.0",