-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated migrate.py and docker-entrypoint.sh to be compatible with docker compose (input() causes error). Also updated docker-config.py. NOTE: Docker will overwrite docker-config with config.py if it already exists. This may be desired behavior, however, can cause failures. * Removing personal info. * Changed to use config.py-example over docker-config.py Also changed apt update && install per "https://docs.docker.com/develop/develop-images/ dockerfile_best-practices/#run". Noticed that the database variables are hardcoded throughout entrypoint.sh, Dockerfile, config.py, and docker-compose.yml. Unsure if I like using sed to update config file. Alternatives could be using a docker .env file; would need to make multiple updates and still would need to update config.py. The configparser python package is possibly a better solution to the config.py file in general, but that would require extensive updates to 4cat. COULD possibly create a seperate config file handled by configparser and import that into config.py. * Updates to docker config modifications. Moved docker variables to docker_config.ini, created docker_setup.py to better utilize configparser and avoid any accidental "sed" changes, and modified config.py (actually config.py-example) to use docker_config.ini if it has been specified in docker_config.ini. Also moved setup to Dockerfile instead of docker-entrypoint.sh so that it does not unnecessarily run every time docker containers are started. * 1. added paths to docker.ini file 2. handled paths in docker_setup.py (create directories if needed) 3. update config.py-example to use docker paths 3. trap SIGTERM in docker-entrypoint.sh for 4cat-daemon backend 4. update docker-compose to separate backend and frontend and use shared volume for data 5. add Dockerfile_frontend to set up frontend (could use pairing down) 6. rearranged Dockerfile so it doesn't rebuild python packages and download/install chrome every time I update the config file * Docker org updates to allow for rebuilding images/updating docker files. Shared admin password someplace noticable. * gitignore changes * update .gitignore (ignore venv & jupyter notebooks). Add 4444 port to docker. * add port for telegram. add modify api port to config for docker. * Update README.md * Update README.md * Update README.md * Update README.md * Adding dynamic localhost * Dynamic API host * temp logging * add test status button * Adding docker test * Update README.md * Add sessions path to config files; allow it to be shared by docker containers * Removed logging. Changed admin@admin.com to admin. * Updates to Docker: user database information is set in .env file which is then used by docker-compose.yml, passed to the Dockerfiles, docker-entrypoint.sh, and docker_setup.py which updates 4cat config files. * TCAT to 4CAT. Cause apparently I don't even know where I am anymore!
- Loading branch information
Showing
19 changed files
with
347 additions
and
220 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
POSTGRES_USER=fourcat | ||
POSTGRES_PASSWORD=supers3cr3t | ||
POSTGRES_DB=fourcat | ||
POSTGRES_HOST_AUTH_METHOD=trust |
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,14 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: dev | ||
pull_request: | ||
branches: master | ||
jobs : | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the stack | ||
run: docker-compose up -d |
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
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
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
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.