Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve codespace init time & experience #55

Merged
merged 4 commits into from
Oct 20, 2024

Conversation

darmalovan
Copy link
Contributor

Description

Improvements to make docker compose run faster.

@darmalovan darmalovan requested a review from shem8 October 15, 2024 13:59
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does it mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if docker compose exists

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yarn install is when users add packages

@@ -1,6 +1,7 @@
services:
anythink-backend-python:
build: ./backend
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't need to remove build?

@@ -1,6 +1,6 @@
services:
anythink-backend-java:
build: ./backend
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we do it, remove the Docker file from each directory

@darmalovan darmalovan requested a review from shem8 October 20, 2024 08:27
@shem8
Copy link
Contributor

shem8 commented Oct 20, 2024

Remove the Dockerfile files, now that we don't need it

@darmalovan
Copy link
Contributor Author

Remove the Dockerfile files, now that we don't need it

@shem8 removed

@darmalovan darmalovan merged commit d809d19 into main Oct 20, 2024
6 checks passed
@darmalovan darmalovan deleted the feat/CU-86c0du89c-improve-codespace-boot-time branch October 20, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants