Skip to content

Commit

Permalink
added a combined startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
njfio committed Aug 22, 2024
1 parent 35ec825 commit 9ef218e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 7 additions & 3 deletions fluent-env/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ RUN cp ~/.cargo/git/checkouts/fluent_cli-*/*/amber.yaml /.fluent/
RUN cp ~/.cargo/git/checkouts/fluent_cli-*/*/fluent-env/start-neo4j.sh /.fluent/
RUN chmod +x /.fluent/start-neo4j.sh
RUN cp ~/.cargo/git/checkouts/fluent_cli-*/*/fluent-env/start-flask.sh /.fluent/
RUN chmod +x /.fluent/start-flash.sh
RUN chmod +x /.fluent/start-flask.sh
RUN cp ~/.cargo/git/checkouts/fluent_cli-*/*/fluent-env/start-combined.sh /.fluent/
RUN chmod +x /.fluent/start-combined.sh

RUN cp ~/.cargo/git/checkouts/fluent_cli-*/*/example_configurations/*.json /.fluent/example_configurations

Expand All @@ -57,8 +59,10 @@ RUN echo "dbms.default_listen_address=0.0.0.0" >> /etc/neo4j/neo4j.conf

RUN neo4j-admin set-default-admin neo4j
RUN neo4j-admin set-initial-password system2024!
CMD ["/.fluent/start-neo4j.sh"]
CMD ["/.fluent/start-flask.sh"]

#CMD ["/.fluent/start-neo4j.sh"]
#CMD ["/.fluent/start-flask.sh"]
CMD ["/.fluent/start-combined.sh"]
#CMD ["python", "app.py", "&"]
#RUN python -m flask run --host=0.0.0.0 --port=5000 &
#CMD ["python3", "app.py"]
Expand Down
8 changes: 8 additions & 0 deletions fluent-env/start-combined.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# Start Neo4j in the background
neo4j start &

screen -d -m flask python /app/app.py

echo "started neo4j and web server"

0 comments on commit 9ef218e

Please sign in to comment.