diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh index 5a6cfc3d..8b6312d6 100755 --- a/.devcontainer/setup.sh +++ b/.devcontainer/setup.sh @@ -15,4 +15,9 @@ echo "export CODESPACE_WDS_SOCKET_PORT=443" >> ~/.bashrc echo "printf \"\n\n☁️☁️☁️️ Anythink: Develop in the Cloud ☁️☁️☁️\n\"" >> ~/.bashrc echo "printf \"\n\x1b[31m \x1b[1m👉 Type: \\\`docker compose up\\\` to run the project. 👈\n\n\"" >> ~/.bashrc -nohup bash -c "cd /wilco-agent && node agent.js &" >> /tmp/agent.log 2>&1 +nohup bash -c "cd /wilco-agent && node agent.js &" >> /tmp/agent.log 2>&1 + +if command -v docker-compose &> /dev/null +then + docker compose pull +fi diff --git a/.framework/java/docker-compose.yml b/.framework/java/docker-compose.yml index 7206992a..d55ba0fa 100644 --- a/.framework/java/docker-compose.yml +++ b/.framework/java/docker-compose.yml @@ -1,6 +1,6 @@ services: anythink-backend-java: - build: ./backend + image: public.ecr.aws/v0a2l7y2/wilco/anythink-backend-java:latest container_name: anythink-backend-java command: sh -c "cd backend && /wait-for-it.sh postgres-java:5432 -q -t 60 && ./start.sh" @@ -17,9 +17,9 @@ services: - "postgres-java" anythink-frontend-react: - build: ./frontend + image: public.ecr.aws/v0a2l7y2/wilco/anythink-frontend-react:latest container_name: anythink-frontend-react - command: sh -c "cd frontend && yarn install && /wait-for-it.sh anythink-backend-java:3000 -t 120 --strict -- curl --head -X GET --retry 30 --retry-connrefused --retry-delay 1 anythink-backend-java:3000/api/ping && yarn start" + command: sh -c "cd frontend && /wait-for-it.sh anythink-backend-java:3000 -t 120 --strict -- curl --head -X GET --retry 30 --retry-connrefused --retry-delay 1 anythink-backend-java:3000/api/ping && yarn start" environment: - NODE_ENV=development - PORT=3001 diff --git a/.framework/node/docker-compose.yml b/.framework/node/docker-compose.yml index 162046a2..da550a36 100644 --- a/.framework/node/docker-compose.yml +++ b/.framework/node/docker-compose.yml @@ -1,8 +1,8 @@ services: anythink-backend-node: - build: ./backend + image: public.ecr.aws/v0a2l7y2/wilco/anythink-backend-node:latest container_name: anythink-backend-node - command: sh -c "cd backend && yarn install && /wait-for-it.sh mongodb-node:27017 -q -t 60 && yarn dev" + command: sh -c "cd backend && /wait-for-it.sh mongodb-node:27017 -q -t 60 && yarn dev" environment: - NODE_ENV=development @@ -19,9 +19,9 @@ services: - "mongodb-node" anythink-frontend-react: - build: ./frontend + image: public.ecr.aws/v0a2l7y2/wilco/anythink-frontend-react:latest container_name: anythink-frontend-react - command: sh -c "cd frontend && yarn install && /wait-for-it.sh anythink-backend-node:3000 -t 120 --strict -- curl --head -X GET --retry 30 --retry-connrefused --retry-delay 1 anythink-backend-node:3000/api/ping && yarn start" + command: sh -c "cd frontend && /wait-for-it.sh anythink-backend-node:3000 -t 120 --strict -- curl --head -X GET --retry 30 --retry-connrefused --retry-delay 1 anythink-backend-node:3000/api/ping && yarn start" environment: - NODE_ENV=development - PORT=3001 diff --git a/.framework/python/docker-compose.yml b/.framework/python/docker-compose.yml index 4c743ae1..01b4a825 100644 --- a/.framework/python/docker-compose.yml +++ b/.framework/python/docker-compose.yml @@ -1,6 +1,7 @@ services: anythink-backend-python: build: ./backend + image: public.ecr.aws/v0a2l7y2/wilco/anythink-backend-python:latest container_name: anythink-backend-python command: > sh -c "cd backend && @@ -24,9 +25,9 @@ services: - "postgres-python" anythink-frontend-react: - build: ./frontend + image: public.ecr.aws/v0a2l7y2/wilco/anythink-frontend-react:latest container_name: anythink-frontend-react - command: sh -c "cd frontend && yarn install && /wait-for-it.sh anythink-backend-python:3000 -t 120 --strict -- curl --head -X GET --retry 30 --retry-connrefused --retry-delay 1 anythink-backend-python:3000/api/ping && yarn start" + command: sh -c "cd frontend && /wait-for-it.sh anythink-backend-python:3000 -t 120 --strict -- curl --head -X GET --retry 30 --retry-connrefused --retry-delay 1 anythink-backend-python:3000/api/ping && yarn start" environment: - NODE_ENV=development - PORT=3001 diff --git a/.framework/rails/docker-compose.yml b/.framework/rails/docker-compose.yml index 52823e0b..9712c19b 100644 --- a/.framework/rails/docker-compose.yml +++ b/.framework/rails/docker-compose.yml @@ -1,6 +1,6 @@ services: anythink-backend-rails: - build: ./backend + image: public.ecr.aws/v0a2l7y2/wilco/anythink-backend-rails:latest container_name: anythink-backend-rails command: sh -c "cd backend && bundle install && /wait-for-it.sh postgres-rails:5432 -q -t 60 && ./start_rails.sh" @@ -18,9 +18,9 @@ services: - "postgres-rails" anythink-frontend-react: - build: ./frontend + image: public.ecr.aws/v0a2l7y2/wilco/anythink-frontend-react:latest container_name: anythink-frontend-react - command: sh -c "cd frontend && yarn install && /wait-for-it.sh anythink-backend-rails:3000 -t 120 --strict -- curl --head -X GET --retry 30 --retry-connrefused --retry-delay 1 anythink-backend-rails:3000/api/ping && yarn start" + command: sh -c "cd frontend && /wait-for-it.sh anythink-backend-rails:3000 -t 120 --strict -- curl --head -X GET --retry 30 --retry-connrefused --retry-delay 1 anythink-backend-rails:3000/api/ping && yarn start" environment: - NODE_ENV=development - PORT=3001