mirror of
https://github.com/sschum/froscon-2023-demo.git
synced 2024-11-25 09:13:18 +01:00
basic start page
This commit is contained in:
commit
03ea81dfc9
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.idea
|
||||||
|
|
||||||
|
next
|
||||||
|
vorbereitung.txt
|
||||||
|
slides.pdf
|
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
COPY ./src/ /usr/share/nginx/html/
|
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2023 sschum
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
13
README.md
Normal file
13
README.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# froscon-2023-demo
|
||||||
|
|
||||||
|
## start - with docker
|
||||||
|
|
||||||
|
You can start the application like this:
|
||||||
|
```shell
|
||||||
|
./start.sh
|
||||||
|
```
|
||||||
|
This will build a docker image and run a container. After that you can watch the result: **http://localhost:1312**
|
||||||
|
|
||||||
|
## start - without docker
|
||||||
|
|
||||||
|
If you dont have or you dont want to use docker, you can open the index.html in your browser: **file://PROJECT_DIR/index.html**
|
6
src/css/bootstrap.min.css
vendored
Normal file
6
src/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
12
src/index.html
Normal file
12
src/index.html
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>FrOSCon - 2023 - Demo</title>
|
||||||
|
|
||||||
|
<link href="./css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
</head>
|
||||||
|
<body class="container">
|
||||||
|
<h1>Hello World</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
13
start.sh
Executable file
13
start.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT_PATH=$(realpath "$0")
|
||||||
|
SCRIPT_HOME=$(dirname "$SCRIPT_PATH")
|
||||||
|
|
||||||
|
CONTAINER_NAME=froscon-2023-demo
|
||||||
|
|
||||||
|
docker rm -f ${CONTAINER_NAME} > /dev/null 2>&1
|
||||||
|
docker run -d --name ${CONTAINER_NAME} -v ${SCRIPT_HOME}/src:/usr/share/nginx/html/ -p 1312:80 nginx:alpine > /dev/null
|
||||||
|
|
||||||
|
read -rsp $'Open your browser: http://localhost:1312\nPress any key to shutdown the application!\n' -n1 key
|
||||||
|
|
||||||
|
docker rm -f ${CONTAINER_NAME} > /dev/null
|
Loading…
Reference in New Issue
Block a user