mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 04:30:10 +01:00
719521c307
* wip: init refactor of document processor to JS * add NodeJs PDF support * wip: partity with python processor feat: add pptx support * fix: forgot files * Remove python scripts totally * wip:update docker to boot new collector * add package.json support * update dockerfile for new build * update gitignore and linting * add more protections on file lookup * update package.json * test build * update docker commands to use cap-add=SYS_ADMIN so web scraper can run update all scripts to reflect this remove docker build for branch
45 lines
1.7 KiB
YAML
45 lines
1.7 KiB
YAML
resources:
|
|
- name: anything-llm-instance
|
|
type: compute.v1.instance
|
|
properties:
|
|
zone: us-central1-a
|
|
machineType: zones/us-central1-a/machineTypes/n1-standard-1
|
|
disks:
|
|
- deviceName: boot
|
|
type: PERSISTENT
|
|
boot: true
|
|
autoDelete: true
|
|
initializeParams:
|
|
sourceImage: projects/ubuntu-os-cloud/global/images/family/ubuntu-2004-lts
|
|
diskSizeGb: 10
|
|
networkInterfaces:
|
|
- network: global/networks/default
|
|
accessConfigs:
|
|
- name: External NAT
|
|
type: ONE_TO_ONE_NAT
|
|
metadata:
|
|
items:
|
|
- key: startup-script
|
|
value: |
|
|
#!/bin/bash
|
|
# check output of userdata script with sudo tail -f /var/log/cloud-init-output.log
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y docker.io
|
|
sudo usermod -a -G docker ubuntu
|
|
sudo systemctl enable docker
|
|
sudo systemctl start docker
|
|
|
|
mkdir -p /home/anythingllm
|
|
touch /home/anythingllm/.env
|
|
|
|
sudo docker pull mintplexlabs/anythingllm:master
|
|
sudo docker run -d -p 3001:3001 --cap-add SYS_ADMIN -v /home/anythingllm:/app/server/storage -v /home/anythingllm/.env:/app/server/.env -e STORAGE_DIR="/app/server/storage" mintplexlabs/anythingllm:master
|
|
echo "Container ID: $(sudo docker ps --latest --quiet)"
|
|
|
|
export ONLINE=$(curl -Is http://localhost:3001/api/ping | head -n 1|cut -d$' ' -f2)
|
|
echo "Health check: $ONLINE"
|
|
|
|
echo "Setup complete! AnythingLLM instance is now online!"
|
|
|