Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Kerzmann committed Nov 12, 2023
2 parents d389589 + e1db360 commit 3be5b2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
8 changes: 2 additions & 6 deletions vaadin-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ Note: Command should be run from the directory, where this README.md is located!

OR:
You can pull our pre buitld image with the following command:
```docker pull ghcr.io/sebivenlo/esd-2023-vaadin-flow/esde--vaadin:latest```

or

```docker pull ghcr.io/sebivenlo/esd-2023-vaadin-flow/esde--vaadin:latest```
```docker pull apavlitschenko/esde-vaadin```

Now the image will be created, this might take a few seconds.

Expand All @@ -38,4 +34,4 @@ Once The docker Container is running, and you have changes, which you want to ru
This will compile the changed source files, and will cause vaadin to perform a live reload

After vaadin has automatically restarted, you can refresh your browser and the changes will be visible
Note: This might take a minute
Note: This might take a minute
22 changes: 4 additions & 18 deletions vaadin-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,22 @@ Do this by running the following command:\

Note: Command should be run from the directory, where this README.md is located!

```docker build -t esde-vaadin:latest .```
```docker build -t esde-vaadin-demo:latest .```

OR:
You can pull our pre buitld image with the following command:
```docker pull ghcr.io/sebivenlo/esd-2023-vaadin-flow/esde--vaadin:latest```
```docker pull apavlitschenko/esde-vaadin-demo```

or

```docker pull ghcr.io/sebivenlo/esd-2023-vaadin-flow/esde--vaadin:latest```

Now the image will be created, this might take a few seconds.

## 2. Start the Docker container
Now that the image is ready to be used, you can run a new container with it by typing:\
Windows:

```docker run -p 8080:8080 -v .:/usr/app --name esde-vaadin esde-vaadin:latest```

Linux:
```docker run -p 8081:8080 --name esde-vaadin-demo esde-vaadin-demo:latest```

```docker run -p 8080:8080 -v <PATH TO vaadin-app>:/usr/app --name esde-vaadin esde-vaadin:latest```

This will download all maven dependencies automatically and eventually run the vaadin app.
Now your container called ``esde-vaadin`` is up and running and you can access the website by accessing [localhost:8080](http://localhost:8080) in your browser.

## 3. Bring your Changes to the Docker Environment
Once The docker Container is running, and you have changes, which you want to run you can use the following command:
```docker exec esde-vaadin mvn compile```

This will compile the changed source files, and will cause vaadin to perform a live reload
Now your container called ``esde-vaadin-demo`` is up and running and you can access the website by accessing [localhost:8081](http://localhost:8081) in your browser.

After vaadin has automatically restarted, you can refresh your browser and the changes will be visible
Note: This might take a minute

0 comments on commit 3be5b2e

Please sign in to comment.