Skip to content

Commit fd76d6d

Browse files
committed
🐳 Docker setup
1 parent 6c336ab commit fd76d6d

File tree

7 files changed

+42
-3
lines changed

7 files changed

+42
-3
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./data

Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM python:3
2+
#ENV PYTHONUNBUFFERED 1
3+
#ENV LANG C.UTF-8
4+
#ENV LC_ALL C.UTF-8
5+
#RUN apt-get update && apt-get install -y \
6+
# python3 \
7+
# python3-pip \
8+
# git
9+
COPY ./ksweb /
10+
RUN pip3 install -e .
11+
RUN pip3 install --pre tg.devtools
12+
EXPOSE 8080
13+
ENTRYPOINT ["/serve"]

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Some example of Knowledge Bases are:
1616
<details>
1717
<summary><strong>:triangular_flag_on_post: Table of Contents</strong> (click to expand)</summary>
1818

19+
* [Getting started](#whale-getting-started)
1920
* [Installation](#floppy_disk-installation)
2021
* [Usage](#video_game-usage)
2122
* [Configuration](#wrench-configuration)
@@ -26,6 +27,14 @@ Some example of Knowledge Bases are:
2627
* [License](#briefcase-license)
2728
</details>
2829

30+
## :whale: Getting started
31+
32+
The easiest way to run ksweb is inside a docker container. just run
33+
34+
git clone --recursive https://github.com/puria/ksweb.git
35+
cd ksweb
36+
docker-container up
37+
2938
## :floppy_disk: Installation
3039

3140
Checkout the project
@@ -39,8 +48,6 @@ Before install KSweb you need to have an instance of **[:leaves:mongodb](https:/
3948
### Installer
4049
run the installer:
4150

42-
cd zenrule/zenrule/lib/zenroom
43-
4451
:apple: macosx
4552

4653
brew install python3

data/.empty

Whitespace-only changes.

docker-compose.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: "2"
2+
3+
services:
4+
db:
5+
image: mongo
6+
restart: always
7+
volumes:
8+
- ./data:/data/db
9+
web:
10+
build: .
11+
command: ./serve
12+
ports:
13+
- "8080:8080"
14+
depends_on:
15+
- db

ksweb/development.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ toscawidgets.framework.resource_variant=debug
8888
# pick the form for your database
8989
# %(here) may include a ':' character on Windows environments; this can
9090
# invalidate the URI when specifying a SQLite db via path name
91-
ming.url = mongodb://localhost:27017/
91+
ming.url = mongodb://db:27017/
9292
ming.db = ksweb
9393

9494
# This line ensures that Genshi will render xhtml when sending the

ksweb/serve

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
gearbox setup-app
3+
gearbox serve

0 commit comments

Comments
 (0)