Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
HORSE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iulisloi Zacarias
HORSE
Commits
7b2c873d
Commit
7b2c873d
authored
11 months ago
by
Iulisloi Zacarias
Browse files
Options
Downloads
Patches
Plain Diff
New instreuctions to run IBI in docler.
parent
8221143b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+36
-0
36 additions, 0 deletions
README.md
with
36 additions
and
0 deletions
README.md
+
36
−
0
View file @
7b2c873d
...
...
@@ -31,4 +31,40 @@
sudo docker run --network host ibi_horse
```
# Run Development Environment with Docker
1.
Pull the Python Image from Docker Hub
```
docker pull python:3.8.10
docker pull docker.elastic.co/elasticsearch/elasticsearch:8.13.2
```
2.
Create a dedicated Docker Network for ElasticSearch
```
docker network create elastic
```
3.
Run ElastiSearch container (no need to run it locally)
```
docker run --name es01 --rm -it --net elastic -p 9200:9200 -p 9300:9300 -m 1GB -e "discovery.type=single-node" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:8.13.2
```
4.
Run HORSE IBI Software
4.
1. One-line command
```
sudo docker run --name horse-ibi --rm -it --net elastic -p 7777:7777 --mount src=`pwd`,target=/code,type=bind -w /code python:3.8.10 sh -c "pip install -r requirements.txt && python app/main.py"
```
4.2. For debugging and info
```
sudo docker run --name horse-ibi --rm -it --net elastic -p 7777:7777 --mount src=`pwd`,target=/code,type=bind -w /code python:3.8.10 sh
```
From inside the container
```
pip install -r requirements.txt
python app/main.py
```
# Dockerfile
TODO: Update docker file
TODO: Create a docker file for development (Dockerfile.dev)
TODO: Create a docker file for deploy (Dockerfile.prod)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment