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/open ports on anythink ack #39

Merged
merged 3 commits into from
Jan 17, 2024
Merged

Conversation

darmalovan
Copy link
Contributor

Description

Change the ports visibility to public to avoid CORS issues, when the anythink services are ready.
It seems that changing the ports before the services start doesn't always work, but do work when the services are listening to a port.
Added also missing AWS image on the java folder.

container_name: anythink-ack
command: sh -c "/wait-for-it.sh anythink-frontend-react:3001 -q -t 1000 && ./anythink_ack.sh"
environment:
- GITHUB_TOKEN=$GITHUB_TOKEN
- CODESPACE_NAME=$CODESPACE_NAME
working_dir: /usr/src
volumes:
- ./:/usr/src/
Copy link
Contributor

Choose a reason for hiding this comment

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

just wondering now, does it actually requires the whole file tree? would it work if it had only the open_port.sh script?
Also maybe we don't care about it having the while tree if it loads quickly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can move the anythink_ack and open ports scripts to be inside the image... and then remove the volume, I can do it after if

Copy link
Contributor

@NivRichter NivRichter Jan 17, 2024

Choose a reason for hiding this comment

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

No biggy just a thought I had. No real opinion about wether it worth it

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it'll just be nicer to have everything in the image, but that can wait

Copy link
Contributor Author

@darmalovan darmalovan Jan 17, 2024

Choose a reason for hiding this comment

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

I did it here - https://github.com/trywilco/Anythink-Market-Docker-Images/pull/11 i'll change this PR accordingly

COPY backend ./backend
COPY .wilco ./.wilco

# Pre-install npm packages
Copy link
Contributor

Choose a reason for hiding this comment

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

gradle, but ok =)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixing :)

@darmalovan darmalovan merged commit a017c85 into main Jan 17, 2024
6 checks passed
@darmalovan darmalovan deleted the feat/open-ports-on-anythink-ack branch January 17, 2024 14:13
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.

3 participants