-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'fame/master'
- Loading branch information
Showing
31 changed files
with
1,008 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,3 +77,7 @@ vendor/* | |
|
||
# Agent | ||
agent/module.py | ||
|
||
# Editors | ||
.vscode | ||
.mypy_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
FROM debian:stretch | ||
|
||
WORKDIR /opt | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
git \ | ||
python-dev \ | ||
python-pip \ | ||
screen \ | ||
p7zip-full \ | ||
libjpeg-dev \ | ||
zlib1g-dev \ | ||
apt-transport-https \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg2 \ | ||
software-properties-common | ||
|
||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \ | ||
--recv 9DA31620334BD75D9DCB49F368818C72E52529D4 | ||
RUN echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | tee /etc/apt/sources.list.d/mongodb-org-4.0.list | ||
|
||
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \ | ||
add-apt-repository \ | ||
"deb [arch=amd64] https://download.docker.com/linux/debian \ | ||
$(lsb_release -cs) \ | ||
stable" | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
docker-ce \ | ||
docker-ce-cli \ | ||
containerd.io | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
mongodb-org | ||
|
||
|
||
RUN pip install virtualenv && \ | ||
git clone https://github.com/certsocietegenerale/fame | ||
|
||
ENTRYPOINT ["/opt/fame/docker/launch.sh"] | ||
EXPOSE 4200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Docker support | ||
|
||
This is probably the quickest way to spawn a Fame dev instance. | ||
|
||
## Install docker | ||
|
||
Follow the [official instructions](https://www.docker.com/community-edition). | ||
|
||
## Clone the repo | ||
|
||
$ git clone https://github.com/certsocietegenerale/fame/ | ||
$ cd fame/docker | ||
|
||
## Build docker image | ||
|
||
$ docker build -t famedev:latest . | ||
|
||
## Run docker image | ||
|
||
To run container based on famedev image with docker inception (bind docker socket and bind fame temp dir). | ||
So chose a temp directory on your system and use the following command. | ||
|
||
$ docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v <FIXME local temp dir path>:/opt/fame/temp --name famedev -p 4200:4200 famedev:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
cd /opt/fame | ||
service docker start | ||
mongod -f /etc/mongod.conf & | ||
utils/run.sh utils/install.py | ||
screen -dmS "web" bash -c "utils/run.sh webserver.py" | ||
screen -dmS "worker" bash -c "utils/run.sh worker.py" | ||
/bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.