Skip to content

Commit

Permalink
Merge pull request #13 from julianfl0w/main
Browse files Browse the repository at this point in the history
Adds conditions necessary to keep arkavo.org from filling up its memory with Ollama
  • Loading branch information
julianfl0w authored Jan 2, 2025
2 parents 1210a26 + 811dcc7 commit 946ce9b
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 57,580 deletions.
57,398 changes: 0 additions & 57,398 deletions bluesky/tree.txt

This file was deleted.

File renamed without changes.
62 changes: 0 additions & 62 deletions keycloak/run_keycloak.sh

This file was deleted.

19 changes: 0 additions & 19 deletions keycloak/run_keycloak_db.sh

This file was deleted.

16 changes: 0 additions & 16 deletions keycloak/start.sh

This file was deleted.

42 changes: 0 additions & 42 deletions nginx/all-ca-certificates.crt

This file was deleted.

2 changes: 1 addition & 1 deletion nginx/refreshConf.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# this doesn't seem to work
docker exec -it nginx-proxy nginx -s reload

17 changes: 0 additions & 17 deletions nginx/start.sh

This file was deleted.

62 changes: 37 additions & 25 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,42 +37,54 @@

# --- WEB APP ---
# theoretically has no dependencies
utils_docker.run_container(env.webapp)
if "webapp" in env.SERVICES_TO_RUN:
utils_docker.run_container(env.webapp)

# --- KEYCLOAK ---
utils_docker.run_container(env.keycloakdb)
utils_docker.wait_for_db(network=env.NETWORK_NAME, db_url="keycloakdb:5432")
utils_docker.run_container(env.keycloak)
if "keycloak" in env.SERVICES_TO_RUN:
utils_docker.run_container(env.keycloakdb)
utils_docker.wait_for_db(network=env.NETWORK_NAME, db_url="keycloakdb:5432")
utils_docker.run_container(env.keycloak)

# --- NGINX ---
if not os.path.isfile("certs/ca.crt"):
if env.USER_WEBSITE == "localhost":
utils_docker.generateDevKeys(outdir=env.certs_dir)
else:
pass
#utils_docker.generateProdKeys(outdir=env.certs_dir, website=env.USER_WEBSITE)
utils_docker.run_container(env.nginx)
if "nginx" in env.SERVICES_TO_RUN:
if not os.path.isfile("certs/ca.crt"):
if env.USER_WEBSITE == "localhost":
utils_docker.generateDevKeys(outdir=env.certs_dir)
else:
pass
#utils_docker.generateProdKeys(outdir=env.certs_dir, website=env.USER_WEBSITE)
utils_docker.run_container(env.nginx)

# --- OPENTDF ---
utils_docker.run_container(env.opentdfdb)
utils_docker.wait_for_db(network=env.NETWORK_NAME, db_url="opentdfdb:5432")
utils_docker.wait_for_url(env.KEYCLOAK_INTERNAL_AUTH_URL, network=env.NETWORK_NAME)
utils_docker.run_container(env.opentdf)
if "opentdf" in env.SERVICES_TO_RUN:
utils_docker.run_container(env.opentdfdb)
utils_docker.wait_for_db(network=env.NETWORK_NAME, db_url="opentdfdb:5432")
utils_docker.wait_for_url(env.KEYCLOAK_INTERNAL_AUTH_URL, network=env.NETWORK_NAME)
utils_docker.run_container(env.opentdf)

# --- ORG ---
utils_docker.run_container(env.org)
if "org" in env.SERVICES_TO_RUN:
utils_docker.run_container(env.org)

# --- MATRIX SYNAPSE ---
utils_docker.run_container(env.synapsedb)
utils_docker.wait_for_db(network=env.NETWORK_NAME, db_url="synapsedb:5432")
utils_docker.run_container(env.synapse)

# --- Element web app ---
utils_docker.run_container(env.element)
if "synapse" in env.SERVICES_TO_RUN:
utils_docker.run_container(env.synapsedb)
utils_docker.wait_for_db(network=env.NETWORK_NAME, db_url="synapsedb:5432")
utils_docker.run_container(env.synapse)
if "element" in env.SERVICES_TO_RUN:
# --- Element web app ---
utils_docker.run_container(env.element)

# --- Discourse ---
if "discourse" in env.SERVICES_TO_RUN:
utils_docker.run_container(env.discourse)

# --- OLLAMA !!! ---
utils_docker.run_container(env.ollama)
utils_docker.pullModels(["llama3.2", "ALIENTELLIGENCE/sigmundfreud"])
if "ollama" in env.SERVICES_TO_RUN:
utils_docker.run_container(env.ollama)
utils_docker.pullModels(["llama3.2", "ALIENTELLIGENCE/sigmundfreud"])

# --- BLUESKY PDS ---
utils_docker.run_container(env.bluesky)
if "bluesky" in env.SERVICES_TO_RUN:
utils_docker.run_container(env.bluesky)

0 comments on commit 946ce9b

Please sign in to comment.