Skip to content

Commit

Permalink
removes Protractor and adds Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderZellober committed Feb 28, 2023
1 parent c210795 commit 66a9e48
Show file tree
Hide file tree
Showing 12 changed files with 479 additions and 982 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ testem.log
.DS_Store
Thumbs.db
*.xml
/.angular/
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Build stage
FROM node:16-alpine AS build-stage
WORKDIR /app

COPY package.json ./
COPY package-lock.json ./
RUN npm ci

COPY . .

RUN npm run bundle


# Runtime stage
FROM nginx:1.22-alpine
COPY --from=build-stage /app/dist_build/egon /usr/share/nginx/html
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ Run `ng build` to build the project. The build artifacts will be stored in the `

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

### Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## License

The Domain Story Modeler is licensed under GPLv3.0.
Expand Down
12 changes: 0 additions & 12 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,6 @@
"scripts": []
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "egon:serve"
},
"configurations": {
"production": {
"devServerTarget": "egon:serve:production"
}
}
}
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3.9"

services:
site:
build: .
image: egon.io
ports:
- "9080:80"
37 changes: 0 additions & 37 deletions e2e/protractor.conf.js

This file was deleted.

25 changes: 0 additions & 25 deletions e2e/src/app.e2e-spec.ts

This file was deleted.

11 changes: 0 additions & 11 deletions e2e/src/app.po.ts

This file was deleted.

10 changes: 0 additions & 10 deletions e2e/tsconfig.json

This file was deleted.

Loading

0 comments on commit 66a9e48

Please sign in to comment.